Skip to content

fix: migrate clawdbot CLI to gateway RPC, improve session labels#407

Merged
0xNyk merged 1 commit intomainfrom
fix/outstanding-issues
Mar 16, 2026
Merged

fix: migrate clawdbot CLI to gateway RPC, improve session labels#407
0xNyk merged 1 commit intomainfrom
fix/outstanding-issues

Conversation

@0xNyk
Copy link
Member

@0xNyk 0xNyk commented Mar 16, 2026

Summary

  • Replaces all runClawdbot(['-c', ...]) calls with callOpenClawGateway() structured RPC in:
    • src/app/api/sessions/route.ts (POST: set-thinking/verbose/reasoning/label; DELETE: session_delete)
    • src/app/api/sessions/[id]/control/route.ts (terminate → sessions_kill, monitor/pause → sessions_send)
    • src/app/api/spawn/route.ts (sessions_spawn with tools.profile fallback)
  • Adds formatSessionLabel() and useAgentSessions() hook to task-board-panel for better session dropdown labels in Create/Edit task modals

Closes #401, closes #406

Test plan

  • pnpm typecheck — no errors
  • pnpm test — 710/710 pass
  • pnpm lint — 0 new errors (8 pre-existing warnings)

…bels

Replace all `runClawdbot(['-c', ...])` invocations with
`callOpenClawGateway()` RPC calls in session control, spawn, and delete
routes. This eliminates the deprecated CLI dependency and uses the
structured gateway protocol instead.

Also add `formatSessionLabel()` helper and `useAgentSessions()` hook to
task-board-panel for better session dropdown display labels.

Closes #401, closes #406
@github-actions github-actions bot added the screenshot-drift UI changed — README screenshots may need updating label Mar 16, 2026
@github-actions
Copy link

📸 Screenshot Drift Check

This PR modifies UI source files. Please verify whether the README screenshots need refreshing:

  • docs/mission-control-overview.png — main dashboard
  • docs/mission-control-agents.png — agents panel
  • docs/mission-control-memory-graph.png — memory graph
Changed UI files
src/app/api/sessions/[id]/control/route.ts
src/app/api/sessions/route.ts
src/app/api/spawn/route.ts
src/components/panels/task-board-panel.tsx

See docs/SCREENSHOT-GUIDE.md for instructions on capturing and optimising screenshots.

This comment is posted automatically and can be dismissed if no visual changes occurred.

@0xNyk 0xNyk merged commit 17bf076 into main Mar 16, 2026
1 of 2 checks passed
@0xNyk 0xNyk deleted the fix/outstanding-issues branch March 16, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

screenshot-drift UI changed — README screenshots may need updating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UX Issue] Task session labels should show DM vs group distinction (#395 follow-up) [Bug] sessions_spawn API has changed

1 participant