Uh oh!
There was an error while loading. Please reload this page.
feat(desktop): add /copy session transcript command - #15574
Conversation
0e14edc to
8873f81CompareThanks for updating your PR! It now meets our contributing guidelines. 👍 |
…-copy-transcript # Conflicts: # packages/app/src/pages/session/use-session-commands.tsx
rekram1-node
commented
May 15, 2026
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
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.