Skip to content

Commit f67c9c5

Browse files
wenshaoclaude
andcommitted
fix: clarify footer comment and add Windows shell note to docs
- Footer comment now accurately states only the "? for shortcuts" hint is suppressed, not all left-section items - Docs now note that Windows uses cmd.exe by default and suggest wrapping commands with bash -c or using a bash script Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e4e3c21 commit f67c9c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/users/features/status-line.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ Then reference it in settings:
161161
- **Timeout**: Commands that take longer than 5 seconds are killed. The status line clears on failure.
162162
- **Output**: Only the first line of stdout is used. The text is rendered with dimmed colors and truncated to terminal width.
163163
- **Hot reload**: Changes to `ui.statusLine` in settings take effect immediately — no restart required.
164+
- **Shell**: Commands run via `/bin/sh` on macOS/Linux. On Windows, `cmd.exe` is used by default — wrap POSIX commands with `bash -c "..."` or point to a bash script (e.g. `bash ~/.qwen/statusline-command.sh`).
164165
- **Removal**: Delete the `ui.statusLine` key from settings to disable. The status line disappears and the "? for shortcuts" hint returns.
165166

166167
## Troubleshooting

packages/cli/src/ui/components/Footer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ export const Footer: React.FC = () => {
5050
const contextWindowSize =
5151
config.getContentGeneratorConfig()?.contextWindowSize;
5252

53-
// Left section shows one item in priority order, or nothing when a custom
54-
// status line is active (status line occupies its own row below).
53+
// Left section shows one item in priority order. When a custom status line
54+
// is active, only the default "? for shortcuts" hint is suppressed because
55+
// the status line occupies its own row below.
5556
const leftContent = uiState.ctrlCPressedOnce ? (
5657
<Text color={theme.status.warning}>{t('Press Ctrl+C again to exit.')}</Text>
5758
) : uiState.ctrlDPressedOnce ? (

0 commit comments

Comments
 (0)