Skip to content

gut(ui): remove dead Tools tab from Agents view (#2520)#2533

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/agents-tools-tab-2520
Apr 24, 2026
Merged

gut(ui): remove dead Tools tab from Agents view (#2520)#2533
alexey-pelykh merged 1 commit intomainfrom
gut/agents-tools-tab-2520

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Removes the Tools tab from the Agents view — the only user-visible dead control remaining from the post-#2336 audit. The panel body was already gutted by #2240 / #2245; only the tab button itself stayed behind, rendering empty when clicked.

Closes #2520.

Changes (5 files, +4/-12)

  • ui/src/ui/views/agents.ts: drop "tools" from AgentsPanel type union, delete { id: "tools", label: "Tools" } tab entry, delete the ${nothing /* tools panel removed */} placeholder.
  • ui/src/ui/app.ts, app-settings.ts, app-view-state.ts: narrow each agentsPanel literal union to drop "tools".
  • ui/src/ui/app-render.ts: delete two now-impossible panel === "tools" blocks that lazy-loaded the tools catalog on tab activation.

Out of scope (deferred)

  • Orphan onToolsProfileChange / onToolsOverridesChange props/handlers in views/agents.ts and app-render.ts — distinct dead-code pattern from the visible tab; warrants its own gut wave.
  • "skills" literal in AgentsPanel type union — no consumer, but AC silent.

Why this is safe

  • loadToolsCatalog and toolsCatalog* host state remain live via the gateway connect path (app-gateway.ts:216), settings apply path (app-settings.ts:213), and the refresh handler (app-render.ts:572).
  • app.smoke.test.ts:64-66 asserts the toolsCatalog* host fields exist — those fields are NOT removed.

Test plan

  • grep -rn '"tools"' ui/src/ui/views/agents.ts returns no matches
  • grep -rn 'id: "tools"' ui/src/ returns no matches
  • pnpm check green (oxfmt, tsgo, oxlint, no-random-messaging, no-remoteclaw-ai, css-class-drift)
  • pnpm test green (7,302 tests)
  • pnpm test:ui:smoke green (12 tests, browser-mode Chromium)
  • Visual: tab bar at agents.ts:267-272 = Overview / Files / Channels / Cron Jobs

🤖 Generated with Claude Code

…ead control after #2240/#2245 (#2520)

The Tools tab in the Agents view rendered in the tab bar but its panel
body was empty (placeholder `${nothing /* tools panel removed */}`).
Clicking Tools showed a highlighted tab with no content — only
user-visible dead control remaining from the post-#2336 audit sweep.

Changes:
- ui/src/ui/views/agents.ts: drop "tools" from `AgentsPanel` type
  union; delete `{ id: "tools", label: "Tools" }` tab entry; delete
  empty placeholder.
- ui/src/ui/app.ts, app-settings.ts, app-view-state.ts: narrow each
  `agentsPanel` literal union to drop "tools" (the only consumer was
  the deleted tab).
- ui/src/ui/app-render.ts: delete two now-impossible
  `panel === "tools"` blocks that lazy-loaded the tools catalog on
  tab activation. Eager `loadToolsCatalog` callers (gateway connect,
  settings apply, refresh handler) preserved — `toolsCatalog*` state
  is still live and asserted by the smoke suite.

Out-of-scope (deferred): orphan `onToolsProfileChange` /
`onToolsOverridesChange` props/handlers in `views/agents.ts` and
`app-render.ts` — distinct dead-code pattern from the visible tab,
warrants its own gut wave. `"skills"` literal in the type union also
preserved (no consumer, but AC silent).

AC verification:
- `grep -rn '"tools"' ui/src/ui/views/agents.ts` → no matches
- `grep -rn 'id: "tools"' ui/src/` → no matches
- `pnpm check` green (oxfmt, tsgo, oxlint, fork-integrity gates)
- `pnpm test` green (7014 + 288 tests)
- `pnpm test:ui:smoke` green (12 tests, browser-mode Chromium)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 24, 2026 11:46
@alexey-pelykh alexey-pelykh merged commit d65576b into main Apr 24, 2026
16 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/agents-tools-tab-2520 branch April 24, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gut(ui): remove dead Tools tab from Agents view

1 participant