Skip to main content
subagent CX Codex

APP-4907 — Claude Code subagent: TUI focus

APP-4907 is a Claude Code subagent that keeps TUI input active while an agent prepares a tool call, then hands focus to an approval card when blocking begins.

AGPL-3.0 ★ 720 updated 2026-11-10

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/APP-4907---TUI-input-focus-during-agent-drafting.md
Open on GitHub

What APP-4907 - TUI input focus during agent drafting does

APP-4907 defines a fix for TUI input losing keyboard focus while an agent prepares a shell command, file change, or question. A selector may be created in the background, but it must not capture keys before a visible approval surface exists.

When the action reaches AIActionStatus::Blocked, approval cards remain interactive, including the shell-command editor and the AskUserQuestion selector. Once the block is resolved or dismissed, focus returns to the session input with its draft, cursor, and selection preserved. Installation requires placing the subagent file in the platform-specific agent directory.

What it helps with

  • keep session input usable during tool-call preparation
  • stop a hidden approval selector from consuming keystrokes
  • move focus to the shell-command approval editor after blocking
  • restore the draft and cursor after a permission prompt closes
  • keep AskUserQuestion interaction active while answers are awaited

Example prompts for the agent

  • Investigate APP-4907 and fix TUI input focus while a shell command is being prepared.
  • Test focus handoff from file-edit preparation to the approval card, including cursor preservation.
  • Add coverage for AskUserQuestion and focus restoration after a blocked action is dismissed.

How to install APP-4907 - TUI input focus during agent drafting

Manually: put the files in place

.claude/agents/APP-4907---TUI-input-focus-during-agent-drafting.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about APP-4907 - TUI input focus during agent drafting

How do I install APP-4907 in Claude Code?

Place the Claude Code subagent file at .claude/agents/APP-4907---TUI-input-focus-during-agent-drafting.md.

What does APP-4907 do?

The subagent specifies a TUI focus fix that leaves session input active until an actual approval card is shown. A blocked action then owns focus through its selector or editor, and the session input regains it when the action ends.

Which focus states does APP-4907 cover?

It covers shell-command preparation, file edits, questions, the AIActionStatus::Blocked state, the command editor, the file-edit approval card, and the AskUserQuestion selector.

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

From the same set62

The whole set →
CODE-1890-status-line-v2 CODE-1890-status-line-v2 is a Claude Code subagent that refactors the TUI footer in crates/warp_tui. Converts the split metadata view into a unified left-aligned status line. CX Codex ★ 720repo stars APP-4882 - fix misleading oversized-file read error APP-4882 - fix misleading oversized-file read error is a Claude Code subagent that gives large-file read failures the right reason. It applies to read_files, get_files, and search_codebase. CX Codex ★ 720repo stars CODE-1908 TUI default profile uses AgentDecides CODE-1908 TUI default profile uses AgentDecides is a Claude Code subagent that configures execution permissions in Warp's headless TUI. It applies the AgentDecides policy when no profiles are set. CX Codex ★ 720repo stars APP-4901-add-fast-forward-slash-command APP-4901-add-fast-forward-slash-command is a Claude Code subagent that adds /auto-approve to Warp's TUI and toggles approval for one conversation. CX Codex ★ 720repo stars CODE-1902 change TUI log storage CODE-1902 change TUI log storage is a Claude Code subagent that moves TUI logs into a frontend-specific directory while keeping GUI channel filenames. It also fixes /view-logs collection. CX Codex ★ 720repo stars APP-4880 - TUI view-logs slash command APP-4880 - TUI view-logs slash command is a Claude Code subagent that adds a /view-logs TUI command to pack logs into a zip. It prints the absolute path and opens the OS file manager. CX Codex ★ 720repo stars APP-4902 - window-scoped background focus suppression APP-4902 - window-scoped background focus suppression is a Claude Code subagent that narrows Warp focus blocking during background computer-use sessions. CX Codex ★ 720repo stars QUALITY-1169-richer-click-drag-annotations QUALITY-1169-richer-click-drag-annotations is a Claude Code subagent that adds click ripples and drag trails to computer-use video recordings on Linux. CX Codex ★ 720repo stars

Project sponsors

Companies that keep this analytics open