Skip to content

feat(tui): copy observation content to clipboard via OSC 52#433

Merged
Alan-TheGentleman merged 1 commit into
mainfrom
feat/tui-clipboard-copy
May 27, 2026
Merged

feat(tui): copy observation content to clipboard via OSC 52#433
Alan-TheGentleman merged 1 commit into
mainfrom
feat/tui-clipboard-copy

Conversation

@Alan-TheGentleman
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a c keybinding to copy observation content to the clipboard on the Recent Observations, Search Results, Observation Detail, and Session Detail screens.
  • Uses the OSC 52 terminal escape sequence: works over SSH, no system deps (xclip/pbcopy), no new Go dependencies.
  • Shows a "✓ Copied!" feedback for ~2 seconds. Graceful no-op if the terminal ignores OSC 52.

Test plan

  • 18 new tests in internal/tui/clipboard_test.go (OSC52 encoding, command dispatch, 4 screen handlers, feedback view, help text)
  • go test ./... && go vet ./... && go build ./... clean

Closes #141

Press 'c' on Recent Observations, Search Results, Observation Detail,
and Session Detail screens to copy the selected observation content to
the system clipboard using the OSC 52 terminal escape sequence.

Visual feedback ("✓ Copied!") is shown for 2 seconds after each copy.
No new dependencies added — uses the existing go-osc52/v2 transitive dep.

Closes #141
Copilot AI review requested due to automatic review settings May 27, 2026 15:28
@Alan-TheGentleman Alan-TheGentleman added the type:feature New feature label May 27, 2026
@Alan-TheGentleman Alan-TheGentleman merged commit 6b56d7e into main May 27, 2026
8 of 9 checks passed
@Alan-TheGentleman Alan-TheGentleman deleted the feat/tui-clipboard-copy branch May 27, 2026 15:30
@Alan-TheGentleman Alan-TheGentleman review requested due to automatic review settings May 27, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tui): add clipboard copy support to observation screens

1 participant