feat(desktop): add /copy session transcript command#15574
Open
anduimagui wants to merge 4 commits intoanomalyco:devfrom
Open
feat(desktop): add /copy session transcript command#15574anduimagui wants to merge 4 commits intoanomalyco:devfrom
anduimagui wants to merge 4 commits intoanomalyco:devfrom
Conversation
0e14edc to
8873f81
Compare
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
This was referenced Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Desktop did not support the
/copysession transcript command that exists in TUI, so users could not copy full transcripts from the desktop command flow.This PR adds desktop parity by introducing
session.copyin app commands, wiring native desktop clipboard write, and adding the required desktop capability permission. It also moves transcript formatting to@opencode-ai/utilso the app imports a shared formatter as a first step toward unifying Desktop/TUI copy behavior in a follow-up.Type of change
How did you verify your code works?
bun --cwd packages/util run typecheckbun --cwd packages/app run buildbun --cwd packages/desktop tauri dev/copyin a session and verified transcript content was copied to clipboarddevresolved priorpackages/desktop/src/menu.tsconflict and PR is mergeableChecklist
clipboard-manager:allow-write-text)Screenshots
Issue for this PR
Closes #12545
File-level summary
packages/app/src/pages/session/use-session-commands.tsx: addsession.copyslash command and use shared transcript formatterpackages/util/src/session-transcript.ts: shared transcript formatting utility (app now imports this)packages/desktop/src/index.tsx: native clipboard write via Tauri clipboard managerpackages/desktop/src-tauri/capabilities/default.json: addclipboard-manager:allow-write-textpackages/desktop/src/menu.ts: add menu action forsession.copyFollow-up (separate PR): migrate TUI to this shared formatter path for a single unified copy implementation across TUI/Desktop.