feat(tui): enrich /status card with runtime context and colorized fields#673
feat(tui): enrich /status card with runtime context and colorized fields#673grandmaster451 wants to merge 1 commit into
Conversation
Extends the `/status` report with additional runtime context and visual polish while keeping the existing panel layout. - Add swarm mode, provider/model counts, MCP server summary, and active goal to the status report. - Colorize permission and plan-mode values for quicker scanning. - Surface session title and goal status when available. - Update unit tests to cover the new rows.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bbbe543cdd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| { label: 'Plan mode', value: planMode ? 'on' : 'off' }, | ||
| { label: 'Permissions', value: formatPermissionMode(permission, value, errorStyle) }, | ||
| { label: 'Plan mode', value: formatPlanMode(planMode, value, muted) }, | ||
| { label: 'Swarm', value: formatSwarmMode(options.swarmMode, value, muted) }, |
There was a problem hiding this comment.
Read swarm mode from runtime status
When /status successfully loads runtime status it uses that snapshot for permissions, plan mode, model, and context, but the new Swarm row always reads the cached app state. In contexts where app state is stale while session.getStatus() has the current value (the SDK status includes swarmMode in packages/node-sdk/src/rpc.ts), the status card can report Swarm off even though the active session is in swarm mode. Please derive this row from options.status?.swarmMode ?? options.swarmMode, matching the other runtime-backed fields.
Useful? React with 👍 / 👎.
Extends the
/statusreport with additional runtime context and visual polish while keeping the existing panel layout.Changes
Testing
pnpm vitest run apps/kimi-code/test/tui/components/messages/status-panel.test.tspnpm run typecheckinapps/kimi-code