fix(tui): delegate unknown /tools subcommand to slash.exec#13595
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes /tools behavior in the TUI so non-enable/disable subcommands (e.g. /tools list) are executed via the existing slash.exec backend path instead of silently doing nothing.
Changes:
- Route
/tools <subcommand>toslash.execunless the subcommand isenableordisable. - Preserve the client-local
enable/disableflow to keep session history reset behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b64f8a1 to
41e42fd
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
/tools' local handler silently returned for anything other than enable or disable, so /tools list and friends looked broken even though the Python CLI already implements them (hermes_cli/main.py registers tools_sub for list/enable/disable). Keep the client-owned enable/disable path (which has to run session.setSessionStartedAt + resetVisibleHistory locally) and route every other sub through slash.exec, matching createSlashHandler's page/sys split for long vs short output.
158b5f9 to
83c1d4e
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 22 out of 22 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…unknown-subcommand fix(tui): delegate unknown /tools subcommand to slash.exec
…unknown-subcommand fix(tui): delegate unknown /tools subcommand to slash.exec
…unknown-subcommand fix(tui): delegate unknown /tools subcommand to slash.exec
…unknown-subcommand fix(tui): delegate unknown /tools subcommand to slash.exec
…unknown-subcommand fix(tui): delegate unknown /tools subcommand to slash.exec
…unknown-subcommand fix(tui): delegate unknown /tools subcommand to slash.exec
From TUI blitz-test feedback: "
/tools listseems not to show anything."Summary
/tools's local handler silently returned for any subcommand other thanenable/disable, so/tools listlooked broken even though the Python CLI already implements it (hermes_cli/main.pyregisterstools_subfor list/enable/disable).session.setSessionStartedAt+resetVisibleHistorylocally) and route every other sub throughslash.exec, mirroringcreateSlashHandler's page/sys split for long vs short output.Test plan
npm run type-checkcleannpm test— 152/152 pass/tools list— expect the enabled/disabled table/tools enable web//tools disable web— still hits local path and resets visible history