Skip to content

fix(tui): delegate unknown /tools subcommand to slash.exec#13595

Merged
OutThisLife merged 1 commit into
mainfrom
bb/tui-tools-unknown-subcommand
Apr 21, 2026
Merged

fix(tui): delegate unknown /tools subcommand to slash.exec#13595
OutThisLife merged 1 commit into
mainfrom
bb/tui-tools-unknown-subcommand

Conversation

@OutThisLife

@OutThisLife OutThisLife commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

From TUI blitz-test feedback: "/tools list seems not to show anything."

Summary

  • /tools's local handler silently returned for any subcommand other than enable/disable, so /tools list looked broken even though the Python CLI already implements it (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, mirroring createSlashHandler's page/sys split for long vs short output.

Test plan

  • npm run type-check clean
  • npm test — 152/152 pass
  • Manual: /tools list — expect the enabled/disabled table
  • Manual: /tools enable web / /tools disable web — still hits local path and resets visible history

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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> to slash.exec unless the subcommand is enable or disable.
  • Preserve the client-local enable/disable flow to keep session history reset behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ui-tui/src/app/slash/commands/ops.ts Outdated
Comment thread ui-tui/src/app/slash/commands/ops.ts Outdated
@OutThisLife OutThisLife force-pushed the bb/tui-tools-unknown-subcommand branch 3 times, most recently from b64f8a1 to 41e42fd Compare April 21, 2026 16:44
@OutThisLife OutThisLife requested a review from Copilot April 21, 2026 17:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ui-tui/src/app/slash/commands/ops.ts
Comment thread ui-tui/src/app/slash/commands/ops.ts
/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.
@OutThisLife OutThisLife force-pushed the bb/tui-tools-unknown-subcommand branch from 158b5f9 to 83c1d4e Compare April 21, 2026 19:30
@OutThisLife OutThisLife requested a review from Copilot April 21, 2026 19:40
@alt-glitch alt-glitch added type/bug Something isn't working comp/tui Terminal UI (ui-tui/ + tui_gateway/) comp/tools Tool registry, model_tools, toolsets labels Apr 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ui-tui/src/app/slash/commands/ops.ts
@OutThisLife OutThisLife merged commit c641d14 into main Apr 21, 2026
13 of 14 checks passed
@OutThisLife OutThisLife deleted the bb/tui-tools-unknown-subcommand branch April 21, 2026 20:50
ulasbilgen pushed a commit to ulasbilgen/hermes-adhd-agent that referenced this pull request May 1, 2026
…unknown-subcommand

fix(tui): delegate unknown /tools subcommand to slash.exec
aj-nt pushed a commit to aj-nt/hermes-agent that referenced this pull request May 1, 2026
…unknown-subcommand

fix(tui): delegate unknown /tools subcommand to slash.exec
Luminet2023 pushed a commit to Luminet2023/hermes-agent that referenced this pull request May 1, 2026
…unknown-subcommand

fix(tui): delegate unknown /tools subcommand to slash.exec
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…unknown-subcommand

fix(tui): delegate unknown /tools subcommand to slash.exec
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…unknown-subcommand

fix(tui): delegate unknown /tools subcommand to slash.exec
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…unknown-subcommand

fix(tui): delegate unknown /tools subcommand to slash.exec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets comp/tui Terminal UI (ui-tui/ + tui_gateway/) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants