feat(tui): add agents status command#1139
Conversation
🦋 Changeset detectedLatest commit: d14e8bc The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d14e8bce65
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| { name: '/permission', desc: 'commands.permission.desc' }, | ||
| { name: '/plan', desc: 'commands.plan.desc' }, | ||
| { name: '/swarm', desc: 'commands.swarm.desc', acceptsInput: true }, | ||
| { name: '/agents', desc: 'commands.agents.desc' }, |
There was a problem hiding this comment.
Do not advertise /agents before handling it
In the web UI, commands listed here are treated as known by Composer.vue and emitted to App.vue's handleCommand, but that switch has no /agents case; the default branch treats it as a skill and calls client.activateSkill('agents'). So selecting or typing /agents in the web slash menu will surface a skill-not-found warning instead of showing agent status. Add a web handler for /agents or keep it out of the web command list until supported.
Useful? React with 👍 / 👎.
Related Issue
No linked issue. This addresses a visibility gap for background subagents: users can start subagent work, but the TUI has no direct slash command that summarizes subagent status and resume hints.
Problem
Kimi Code already has background task and subagent infrastructure, but subagent status is not exposed as a focused TUI command. Users need a quick way to inspect completed, running, and failed background subagents without browsing the generic task list.
What changed
Added a /agents slash command, with /agent alias and optional status argument, that lists background subagents from SDK background tasks and shows status, subagent type, agent id, description, stop reason, and resume hints for failed agents. The command is wired into TUI dispatch, registry, command exports, web slash metadata, English/Chinese command descriptions, slash-command docs, tests, and a changeset.
Checklist