CODE-1895-tui-lrc-typeahead-wiring — Claude Code subagent
CODE-1895-tui-lrc-typeahead-wiring is a Claude Code subagent that restores typed input in the TUI after a long-running command ends. It handles shell typeahead at the next prompt.
AGPL-3.0 ★ 720 updated 2026-11-10
.claude/agents/CODE-1895-tui-lrc-typeahead-wiring.mdWhat CODE-1895-tui-lrc-typeahead-wiring does
This subagent wires typeahead events into Warp's TUI input editor. Text entered while a command such as sleep 5 is running is placed into the next prompt after the command exits.
The shared terminal model keeps its existing detection and insertion policy. The TUI applies the result through replace_first_n_characters, then moves the cursor to the end, so successive partial events replace earlier text instead of appending duplicates.
Agent-requested commands are excluded from automatic insertion, and alt-screen applications keep their current behavior. The InputMatching path for bash 3.2 is best-effort and needs keystrokes forwarded through the TUI PTY; the reported fix targets ShellReported.
What it helps with
- restore text typed during a long-running shell command
- replace an earlier partial typeahead buffer
- exclude input from agent-requested commands
- preserve PTY delivery to the foreground process
- keep alt-screen applications out of typeahead handling
Example prompts for the agent
- Investigate CODE-1895 and wire typeahead into the Warp TUI input editor.
- Fix the case where
echo hiis typed duringsleep 5and should appear after the command finishes. - Verify that
ecfollowed byecho hileaves oneecho hibuffer, while agent-requested commands do not insert typeahead.
How to install CODE-1895-tui-lrc-typeahead-wiring
Manually: put the files in place
.claude/agents/CODE-1895-tui-lrc-typeahead-wiring.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/CODE-1895-tui-lrc-typeahead-wiring.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/CODE-1895-tui-lrc-typeahead-wiring.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 CODE-1895-tui-lrc-typeahead-wiring
How do I install CODE-1895-tui-lrc-typeahead-wiring in Claude Code?
Add the subagent file at .claude/agents/CODE-1895-tui-lrc-typeahead-wiring.md.
What does CODE-1895-tui-lrc-typeahead-wiring do?
It connects existing typeahead events to Warp's TUI editor. Input typed during a long-running shell command appears at the next prompt, with earlier partial text replaced.
How does CODE-1895-tui-lrc-typeahead-wiring handle bash 3.2?
The InputMatching path needs typed keystrokes forwarded through the TUI PTY. It is best-effort, while the main fix covers ShellReported shells.