Skip to content

Commit f807118

Browse files
wenshaoclaude
andcommitted
docs: use sh -c in troubleshooting test command
Inline shell snippets need sh -c to execute via pipe, matching how child_process.exec() runs the configured command. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f67c9c5 commit f807118

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/users/features/status-line.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ Then reference it in settings:
166166

167167
## Troubleshooting
168168

169-
| Problem | Cause | Fix |
170-
| ----------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
171-
| Status line not showing | Config at wrong path | Must be under `ui.statusLine`, not root-level `statusLine` |
172-
| Empty output | Command fails silently | Test manually: `echo '{"model":{"id":"test"},"cwd":"/tmp","context_window":{"context_window_size":1,"last_prompt_token_count":0}}' \| your_command` |
173-
| Stale data | No trigger fired | Send a message or switch models to trigger an update |
174-
| Command too slow | Complex script | Optimize the script or move heavy work to a background cache |
169+
| Problem | Cause | Fix |
170+
| ----------------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
171+
| Status line not showing | Config at wrong path | Must be under `ui.statusLine`, not root-level `statusLine` |
172+
| Empty output | Command fails silently | Test manually: `echo '{"model":{"id":"test"},"cwd":"/tmp","context_window":{"context_window_size":1,"last_prompt_token_count":0}}' \| sh -c 'your_command'` |
173+
| Stale data | No trigger fired | Send a message or switch models to trigger an update |
174+
| Command too slow | Complex script | Optimize the script or move heavy work to a background cache |

0 commit comments

Comments
 (0)