Skip to content

Commit f0865dc

Browse files
authored
chore(tui): remove unimplemented commands from TUI menus (#2570)
* chore(tui): remove unimplemented commands from TUI menus * chore(tui): remove information create TUI dead ends
1 parent 8ba5df1 commit f0865dc

35 files changed

Lines changed: 161 additions & 873 deletions

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Before finishing a change run `bun test`, `bun run typecheck`, `bun run lint:che
4949
`DEFAULT_GLOBAL_CONFIG`, and `applyOverrides` in `src/globalConfig/`. Retired keys in an existing
5050
`~/.agentcore/config.json` are dropped on read (the zod schema strips unknown keys).
5151
- **TUI support is opt-in per top-level command** via the root's `.supportedTuiCommands(...)`.
52-
Handler registration order is `--help` and menu order, but the menu moves commands without a
53-
screen under a "cli" divider unless the router names them in `.listInMenu(...)`.
52+
Handler registration order is `--help` and menu order. Commands without TUI support
53+
are omitted from the TUI menu.
5454
`.menuSection(title)` draws a menu divider above the next registered handler (menu only).
5555
- **Terminal size: use `useWindowSize` from `src/components/ui/useWindowSize.tsx`, not Ink's.**
5656
Ink's hook adds a stdout `resize` listener per call (every `Divider` calls it), so busy screens

‎src/components/CliOnlyScreen.test.tsx‎

Lines changed: 0 additions & 334 deletions
This file was deleted.

0 commit comments

Comments
 (0)