Files
AgentHub/server/data/ai-tools
nntrivi2001 a6bd33bcff feat: workspaces own their sessions; desktop parity; sidebar and settings cleanup
Workspace sessions (docs/plans/desktop-parity, phases 1-5 and 7):
- sessions.lane_id: a workspace lists only the sessions its panes held,
  stamped by bindRunSession (first writer wins, nested `claude -p`
  excluded); GET /api/sessions?lane=&archived=
- session row state dot, double-click rename, archive (sessions.archived_at,
  hides only); the activity bar's duplicate Sessions tab removed
- Fork beside Resume (--fork-session, Claude only), Ctrl/Cmd+click a live
  session opens it in a second pane, a diff line's comment is pasted into
  the workspace's last-focused pane (lib/panePaste.ts)

dashboard_runs stability:
- a pane's previous run is archived as <pane>@<started_at> instead of being
  overwritten by INSERT OR REPLACE
- a run is flagged abandoned only once its tmux session is gone, at boot and
  on the run-heal beat (panes outlive a server restart)

UI:
- sidebar: no footer, language or theme block; small collapse button in the
  brand corner; version + update check in the connection details modal, a
  status-bar dot while a release is out; language in Settings -> General
- one Switch component for every switch, the themed Checkbox for every
  checkbox (no native checkboxes)

Also: AI Tools catalog trimmed to 10 built-ins (custom-file prompt modes
tested through fixtures), and the workspace plans under docs/plans/ (the
multi-user server plan lives in the AgentHub-Server repo).
2026-10-02 13:19:50 +07:00
..

AI Tools catalog

One JSON file per AI coding CLI AgentHub can run in a lane. Loaded by server/lib/ai-tools.js; the fields are described in docs/superpowers/specs/2026-09-28-ai-tools-a1-design.md § 1. A file in DASHBOARD_AI_TOOLS_DIR with the same id replaces the built-in one (it may not set launcher).

Install / update (A2)

Two optional fields, honoured only in built-in files and in the copy of the newest release's catalog that server/lib/ai-tools-sync.js keeps in <data dir>/runtime/ai-tools-remote/ — a file in DASHBOARD_AI_TOOLS_DIR carrying either is rejected, because an Install click would run what it names:

  • install: { "kind": "npm", "package": "<npm name>" } (runs npm install -g <package>@latest with the login shell's npm) or { "kind": "script", "url": "https://…" } (https, same site — last two host labels — as homepageUrl; downloaded by the server, run as bash <file>).
  • update: { "kind": "npm" } or { "kind": "script" } (reuse install), or { "kind": "self", "args": ["update"] } (the tool's own updater).

Before adding an npm package, check its owner (npm view <pkg> maintainers repository.url) and that its bin matches detect: a squatted name would install a stranger's code on every machine that clicks Install.

Attribution

The commands, prompt modes, permission-bypass flags and homepages of the tools other than Claude Code, Codex and Antigravity come from Orca (https://github.com/stablyai/orca, MIT License, Copyright (c) Stably AI): src/renderer/src/lib/agent-catalog.tsx, src/shared/tui-agent-config.ts and src/shared/tui-agent-permissions.ts.