Skip to content

feat(frontend): move kill session control to topbar beside Open orchestrator#298

Merged
harshitsinghbhandari merged 2 commits into
mainfrom
session/aa-113
Jun 17, 2026
Merged

feat(frontend): move kill session control to topbar beside Open orchestrator#298
harshitsinghbhandari merged 2 commits into
mainfrom
session/aa-113

Conversation

@harshitsinghbhandari

Copy link
Copy Markdown
Collaborator

What

Moves the worker Kill session control out of the inspector's Summary Danger zone section and into the app topbar actions row, rendering it as a small danger-tinted icon button right beside Open orchestrator.

Why

The kill control was buried in the Summary tab. Placing it alongside the existing topbar action makes it reachable in one click from any inspector view, without scrolling the Summary panel.

Details

  • SessionInspector.tsx: removed the Danger zone section and KillSessionButton.
  • ShellTopbar.tsx: added TopbarKillButton, rendered only for active worker sessions (sessionIsActive) next to "Open orchestrator". Keeps the same arm → confirm flow and POST /sessions/{id}/kill behavior, with a compact icon-button resting state and inline Confirm/Cancel when armed.
  • styles.css: topbar kill button / confirm / cancel / error styles, using the existing --red token.
  • Tests: moved the kill-button tests from SessionInspector.test.tsx to new ShellTopbar.test.tsx.

Verification

  • pnpm exec vitest run — 138 passed (15 files)
  • pnpm exec tsc --noEmit — clean

🤖 Generated with Claude Code

harshitsinghbhandari and others added 2 commits June 17, 2026 22:13
…strator

Relocate the worker "Kill session" control out of the inspector's Summary
"Danger zone" section and into the app topbar actions row, as a small
danger-tinted icon button next to "Open orchestrator". It only renders for
active worker sessions and keeps the same arm-then-confirm flow and
POST /sessions/{id}/kill behavior.

Move the kill-button tests to ShellTopbar.test.tsx accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@harshitsinghbhandari harshitsinghbhandari merged commit b8fbbec into main Jun 17, 2026
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.

1 participant