APP-4878 TUI clipboard — Claude Code subagent
APP-4878 - fix TUI copy to use native clipboard is a Claude Code subagent that routes local TUI copies to the OS clipboard. SSH sessions use OSC 52.
AGPL-3.0 ★ 720 updated 2026-11-10
.claude/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.mdWhat APP-4878 - fix TUI copy to use native clipboard does
This subagent changes local selection copying and /export-to-clipboard to use the OS clipboard through arboard. Remote sessions keep OSC 52, with SSH detected from SSH_CONNECTION or SSH_TTY.
Copy results have three states: a confirmed native write, an OSC 52 send that the host may reject, or an actual error. Warp denies OSC 52 clipboard writes by default, so that route cannot complete a local copy there. When no local clipboard is available, the local run falls back to OSC 52.
What it helps with
- copy selected TUI text into the OS clipboard
- export conversation markdown through
/export-to-clipboard - separate local and SSH clipboard paths from environment variables
- show distinct feedback for native copy, OSC 52 delivery, and failure
Example prompts for the agent
- Implement APP-4878 so selection copy in
crates/warp_tuiwrites to the native OS clipboard locally. - Fix
/export-to-clipboardso local sessions copy the markdown through the OS clipboard and SSH sessions use OSC 52 with honest feedback.
How to install APP-4878 - fix TUI copy to use native clipboard
Manually: put the files in place
.claude/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about APP-4878 - fix TUI copy to use native clipboard
How do I install APP-4878 - fix TUI copy to use native clipboard in Claude Code?
Add the subagent file at .claude/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.md.
What does APP-4878 - fix TUI copy to use native clipboard do?
It routes local selection copies and /export-to-clipboard through the OS clipboard, while SSH sessions send the text with OSC 52. Feedback distinguishes a confirmed write, a best-effort terminal send, and an error.
How does the subagent tell local and SSH sessions apart?
It checks SSH_CONNECTION and SSH_TTY. SSH sessions use OSC 52, while local sessions try the native OS clipboard first.