claude-code - 💡(How to fix) Fix [FEATURE] Open $EDITOR (Ctrl-G) from the subagent prompt editor before dispatch

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The main TUI input supports breaking out to $EDITOR (Ctrl-G) for long-form prompts. The subagent prompt input — shown after selecting an agent but before the agent is dispatched — does not. The only workaround is to start the agent with a short prompt and then continue, which defeats the purpose of authoring a long, considered prompt up front.

Root Cause

Subagent prompts are exactly where long-form authoring matters most: they have to be self-contained (the subagent has no prior context) and they often include file paths, line numbers, constraints, and acceptance criteria. The single-line-style box is too cramped for that, and pasting from an external editor loses the box-border characters (see #6151).

Fix Action

Fix / Workaround

The main TUI input supports breaking out to $EDITOR (Ctrl-G) for long-form prompts. The subagent prompt input — shown after selecting an agent but before the agent is dispatched — does not. The only workaround is to start the agent with a short prompt and then continue, which defeats the purpose of authoring a long, considered prompt up front.

Allow Ctrl-G (or the configured external-editor binding) to open the subagent prompt buffer in $EDITOR from the pre-dispatch input, mirroring the behavior already available in the main TUI prompt.

RAW_BUFFERClick to expand / collapse

Summary

The main TUI input supports breaking out to $EDITOR (Ctrl-G) for long-form prompts. The subagent prompt input — shown after selecting an agent but before the agent is dispatched — does not. The only workaround is to start the agent with a short prompt and then continue, which defeats the purpose of authoring a long, considered prompt up front.

Why this matters

Subagent prompts are exactly where long-form authoring matters most: they have to be self-contained (the subagent has no prior context) and they often include file paths, line numbers, constraints, and acceptance criteria. The single-line-style box is too cramped for that, and pasting from an external editor loses the box-border characters (see #6151).

Request

Allow Ctrl-G (or the configured external-editor binding) to open the subagent prompt buffer in $EDITOR from the pre-dispatch input, mirroring the behavior already available in the main TUI prompt.

Related

  • #6151 — closed bug about cursor navigation in the subagent prompt editor; the reporter also asked for $EDITOR support.
  • #18990 — request to make the external editor configurable (main prompt).

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING