Skip to content

fix(terminal): add write-only OSC 52 clipboard and polish default Terminal UX - #1557

Merged
Juliusolsson05 merged 1 commit into
mainfrom
feat/onboarding-guide-and-terminal-ux
Nov 28, 2026
Merged

Juliusolsson05 merged 1 commit into
mainfrom
feat/onboarding-guide-and-terminal-ux

Conversation

@Juliusolsson05

@Juliusolsson05 Juliusolsson05 commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Polishes day-1 default Terminal mode UX (onboarding modal intentionally deferred to a later pass — zero onboarding UI added here):

  1. Write-only OSC 52 clipboard handler (osc52Clipboard.ts) — Wired into both TerminalLeaf and AgentTerminalLeaf so mouse-drag selection under tmux mouse on copies cleanly to the macOS clipboard. Strictly write-only (ignores ? read queries), enforces raw & decoded 1 MiB caps, and swallows clipboard denials.
  2. Clean AgentTerminalLeaf header labels — Replaces debug-sounding raw <provider> + redundant terminal view with the clean provider display name.
  3. Provider-accurate native-terminal copy — Branches on kind === 'opencode' vs generic <Provider> has no native terminal; it always uses Agent Code rendering. for Antigravity and Hermes in AgentViewModePickerModal and workspace/hook/index.ts.
  4. TerminalLeaf regionActive gating — Mirrors AgentTerminalLeaf so shell panes no longer steal paste/focus from Sidekick.
  5. Settings metadata & copy fixes — agent-view-mode inherits immediate apply + accurate provider list; auto-send-prompt-suggestion, worktree-badges, and dictation-enabled accurately describe default Terminal mode; removed duplicate antigravity keyword.

Linked Issues

Refs #1551 (onboarding wizard portion deferred; Terminal UX polish resolved here)

Verification

  • npm run typecheck: passed (0 errors).
  • npx vitest run src/renderer/src/workspace/terminal/osc52Clipboard.test.ts src/renderer/src/workspace/tile-tree/AgentTerminalLeaf.statusHeader.renderer.test.tsx src/renderer/src/workspace/tile-tree/TerminalLeaf.retention.renderer.test.tsx src/renderer/src/features/workspace/ui/AgentViewModePickerModal.renderer.test.tsx src/renderer/src/features/settings/lib/settingsRegistry.test.ts: 5/5 files, 24/24 tests passed.

@Juliusolsson05
Juliusolsson05 force-pushed the feat/onboarding-guide-and-terminal-ux branch from bc44f23 to 8928f82 Compare November 28, 2026 00:05
@Juliusolsson05 Juliusolsson05 changed the title feat(onboarding): add Getting Started modal and polish default Terminal UX fix(terminal): add write-only OSC 52 clipboard and polish default Terminal UX Nov 28, 2026
@Juliusolsson05
Juliusolsson05 merged commit 752caf8 into main Nov 28, 2026
2 checks passed
@Juliusolsson05
Juliusolsson05 deleted the feat/onboarding-guide-and-terminal-ux branch November 28, 2026 00:48
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.

1 participant