Skip to content

fix(web): show Restore button for merged sessions in done strip#2990

Open
ronishrohan wants to merge 1 commit into
AgentWrapper:mainfrom
ronishrohan:fix/1907-restore-button-all-exit-states
Open

fix(web): show Restore button for merged sessions in done strip#2990
ronishrohan wants to merge 1 commit into
AgentWrapper:mainfrom
ronishrohan:fix/1907-restore-button-all-exit-states

Conversation

@ronishrohan

Copy link
Copy Markdown

Summary

Sessions with status === "merged" now show a Restore button in both the Kanban done strip and the terminal-ended banner, on par with terminated sessions.

Changes

  • SessionsBoard.tsx — extended restoreAction guard from status === "terminated" to also include status === "merged"
  • TerminalPane.tsx — extended canRestoreSession guard the same way
  • SessionsBoard.test.tsx — flipped the existing test that previously asserted the Restore button was absent for merged sessions; it now asserts the button is present and invokable

Testing

  • npm run frontend:typecheck
  • npx vitest run src/renderer/components/SessionsBoard.test.tsx — 17/17 pass ✓

Closes #1907

Sessions with status 'merged' now render the Restore action in both the
Kanban done strip (SessionsBoard) and the terminal-ended banner
(TerminalPane), on par with 'terminated' sessions. Updates the test
that previously asserted the button was absent for merged sessions.

Closes AgentWrapper#1907
@ronishrohan
ronishrohan force-pushed the fix/1907-restore-button-all-exit-states branch from 7007ec8 to 7bf25f0 Compare July 22, 2026 19:20
@somewherelostt

Copy link
Copy Markdown
Collaborator

Thanks for contributing to Agent Orchestrator.

This PR is being picked up by the current external contributor on-call pair:

If someone is already working on this, please continue as usual.
The on-call pair is added for visibility, tracking, and support, not to take over the work.
If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @Pulkit7070 here.

For faster context or live questions, you can also join the AO Discord.

Join the session here:
https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

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.

feat(web): Show Restore button for all session exit states (including pr_merged)

4 participants