Skip to content

feat: add in-place session restart via Quick Actions#990

Open
chaehyun2 wants to merge 3 commits intoslopus:mainfrom
chaehyun2:feat/in-place-session-restart
Open

feat: add in-place session restart via Quick Actions#990
chaehyun2 wants to merge 3 commits intoslopus:mainfrom
chaehyun2:feat/in-place-session-restart

Conversation

@chaehyun2
Copy link
Copy Markdown

Summary

  • Add "Restart Session" button to Quick Actions in session info page
  • Allows users to fork the current Claude session with full conversation history (equivalent to --resume)
  • Useful when a session has corrupted context (e.g. empty text blocks from image-only messages) or when the context window needs a fresh start
  • Includes loading spinner on the button during restart
  • Adds resumeSession RPC handler in CLI that aborts the current session and restarts with --resume
  • Also fixes markdown table row misalignment (column-first → row-first layout) and prevents empty text content blocks in buildContent

Changes

  • CLI: New registerResumeSessionHandler.ts, session resume state management in session.ts, resumeFromSessionId option in claudeRemote.ts
  • App: sessionResume RPC call in ops.ts, Quick Actions UI in info.tsx, useSessionQuickActions hook extension
  • Markdown: Table rendering fix in MarkdownView.tsx

Test plan

  • Open a connected session's info page → verify "Restart Session" appears in Quick Actions
  • Click "Restart Session" → verify loading spinner shows, session restarts with history preserved
  • Verify the button only appears for connected (online) sessions
  • Verify markdown tables with varying content lengths render with aligned rows
  • Send image-only message → verify no API error about empty text blocks

🤖 Generated with Claude Code
via Happy

Chaehyun Lee and others added 3 commits April 5, 2026 11:28
- Add "Restart Session" action to web UI popover (forks session with --resume, preserving full conversation history)
- Fix markdown table row misalignment by switching from column-first to row-first layout
- Add resumeSession RPC handler in CLI
- Add translations for all 10 languages

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
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