fix: exec cwd, output trimming, and status line alignment

- Set cwd to config.getTargetDir() so commands like pwd/git run in the
  correct workspace directory
- Strip only trailing newline instead of trim() to preserve intentional
  leading/trailing whitespace in command output
- Match footer's marginLeft/marginRight on the status line row so it
  aligns with the rest of the footer content

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
wenshao 2026-04-06 11:45:49 +08:00
parent 24251db4ef
commit 1a985bb02e
2 changed files with 6 additions and 4 deletions

View file

@ -128,9 +128,9 @@ export const Footer: React.FC = () => {
</Box>
</Box>
{/* Custom status line row */}
{/* Custom status line row — match footer's horizontal inset */}
{statusLineText && (
<Box paddingX={statusLinePadding}>
<Box marginLeft={2} marginRight={2} paddingX={statusLinePadding}>
<Text dimColor wrap="truncate">
{statusLineText}
</Text>