[PR #11938] feat: add /session-id command to copy session ID to clipboard #13993

Open
opened 2026-02-16 18:18:48 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11938

State: open
Merged: No


Summary

Adds /session-id slash command that copies the current session ID to the system clipboard with a toast confirmation.
Fixes #11937

Changes

  • Added new command in packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
  • Uses existing Clipboard.copy() utility
  • Shows success toast with the copied session ID
  • Only enabled when in an active session (props.sessionID exists)

Testing

  1. Open any session in TUI
  2. Type /session-id or find "Copy session ID" in command palette
  3. Session ID is copied to clipboard + toast confirms
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11938 **State:** open **Merged:** No --- ## Summary Adds `/session-id` slash command that copies the current session ID to the system clipboard with a toast confirmation. Fixes #11937 ## Changes - Added new command in `packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx` - Uses existing `Clipboard.copy()` utility - Shows success toast with the copied session ID - Only enabled when in an active session (`props.sessionID` exists) ## Testing 1. Open any session in TUI 2. Type `/session-id` or find "Copy session ID" in command palette 3. Session ID is copied to clipboard + toast confirms
yindo added the pull-request label 2026-02-16 18:18:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13993