Skip to content

feat(desktop): add duplicate session command#18115

Open
anduimagui wants to merge 5 commits intoanomalyco:devfrom
anduimagui:opencode/desktop-duplicate-session
Open

feat(desktop): add duplicate session command#18115
anduimagui wants to merge 5 commits intoanomalyco:devfrom
anduimagui:opencode/desktop-duplicate-session

Conversation

@anduimagui
Copy link

@anduimagui anduimagui commented Mar 18, 2026

Issue for this PR

Closes #18118

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds the desktop-only /duplicate command, wires it into the session-scoped app providers so it can fork the current chat and carry the draft prompt into the new session, and documents the command in the app copy and commands docs. This is the desktop follow-up to the related TUI work in #12079.

How did you verify your code works?

Ran bun typecheck in packages/desktop and packages/app, and the original desktop commit also passed the repo typecheck hook during commit.

Screenshots / recordings

N/A

Checklist

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

@github-actions github-actions bot added needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Mar 18, 2026
@github-actions
Copy link
Contributor

Hey! Your PR title desktop: add duplicate session command doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

Register the desktop duplicate command in the command list and add the dependencies it needs.
Add the duplicate session label copy and mention the desktop-only slash command in the commands docs.
Mount desktop session commands inside the session providers, export the hooks they need, and restore the prompt after navigating to the duplicated session.
@anduimagui anduimagui changed the title desktop: add duplicate session command desktop: add /duplicate session command Mar 18, 2026
@anduimagui anduimagui force-pushed the opencode/desktop-duplicate-session branch from 2c83d45 to aa92343 Compare March 18, 2026 17:51
@anduimagui anduimagui changed the title desktop: add /duplicate session command feat(desktop): add duplicate session command Mar 18, 2026
@github-actions github-actions bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Mar 18, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

1 similar comment
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

[FEATURE]: add duplicate session command to desktop

1 participant