Skip to content

feat(app): add /restart session command#18499

Open
anduimagui wants to merge 5 commits intoanomalyco:devfrom
anduimagui:app-session-restart-command
Open

feat(app): add /restart session command#18499
anduimagui wants to merge 5 commits intoanomalyco:devfrom
anduimagui:app-session-restart-command

Conversation

@anduimagui
Copy link
Contributor

Issue for this PR

Closes #18495

Type of change

  • Bug fix
  • New feature
  • 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 test
  • bun typecheck
  • bun 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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: add /restart session command

1 participant