#18499 · @anduimagui · opened Mar 21, 2026 at 8:16 AM UTC · last updated Mar 21, 2026 at 8:18 AM UTC
feat(app): add /restart session command
Score breakdown
Impact
Clarity
Urgency
Ease Of Review
Guidelines
Readiness
Size
Trust
Traction
Summary
This PR adds a /restart session command to the app, which creates a new session seeded with the first user prompt. It includes a new e2e test for verification, but lacks screenshots.
Description
Issue for this PR
Closes #18495
Type of change
- [ ] Bug fix
- [x] New feature
- [x] Refactor / code improvement
- [ ] Documentation
What does this PR do?
Adds a /restart session command that opens a fresh session draft seeded with the first user message from the current session, making it clear that this action goes back to the user's initial query instead of starting a blank session.
/fork still branches from any selected earlier message, and its small helper now stays local to DialogFork so this PR only touches the app behavior needed for /restart.
How did you verify your code works?
I verified the app package locally:
bun testbun typecheckbun run build
I also added a restart e2e regression in packages/app/e2e/session/session-restart.spec.ts to cover seeding a new session draft from the first user prompt.
Screenshots / recordings
Not included.
Checklist
- [x] I have tested my changes locally
- [x] I have not included unrelated changes in this PR
Linked Issues
#18495 [FEATURE]: add /restart session command
View issueComments
No comments.
Changed Files
packages/app/e2e/session/session-restart.spec.ts
+87−0packages/app/src/components/dialog-fork.tsx
+45−21packages/app/src/i18n/en.ts
+2−0packages/app/src/pages/session/use-session-commands.tsx
+23−0