claude-code - 💡(How to fix) Fix [DOCS] External editor docs missing last-response commented context option [1 participants]

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…
GitHub stats
anthropics/claude-code#48855Fetched 2026-04-16 06:49:06
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/interactive-mode

Section/Topic

Ctrl+G / external editor behavior, plus the /config setting that controls whether Claude's last response is inserted as commented context.

Current Documentation

The docs currently say:

Claude Code offers a variety of settings to configure its behavior to meet your needs. You can configure Claude Code by running the /config command when using the interactive REPL, which opens a tabbed Settings interface where you can view status information and modify configuration options.

And in the keyboard shortcuts table:

Ctrl+G or Ctrl+X Ctrl+E | Open in default text editor | Edit your prompt or custom response in your default text editor. Ctrl+X Ctrl+E is the readline-native binding

And in keybindings:

chat:externalEditor | Ctrl+G, Ctrl+X Ctrl+E | Open in external editor

No page currently explains that the external editor can include Claude's last response as commented context, or that this behavior can be enabled via /config.

What's Wrong or Missing?

Changelog v2.1.110 adds a user-visible option to show Claude's last response as commented context in the Ctrl+G external editor.

That behavior is currently undocumented in the main places users would look:

  • the Ctrl+G shortcut description in Interactive mode
  • the chat:externalEditor action in Keybindings
  • the /config / settings documentation

Without this, users have no documentation for:

  • what the new option does
  • how the commented context appears in the editor buffer
  • where to enable or disable it in /config

Suggested Improvement

Document this feature in the external-editor docs and settings docs.

Suggested minimum additions:

  1. In interactive-mode, expand the Ctrl+G row or add a short subsection explaining that the external editor can optionally include Claude's most recent response as commented context.
  2. In settings, document the /config toggle for this behavior, including the exact toggle label and underlying setting key if one is exposed.
  3. In keybindings, clarify that chat:externalEditor opens the editor with optional commented context when that setting is enabled.

An example would help: show a prompt buffer with Claude's previous response inserted as commented lines so users can see how the context is formatted.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageContext
https://code.claude.com/docs/en/interactive-modePrimary Ctrl+G / external editor shortcut description
https://code.claude.com/docs/en/keybindingschat:externalEditor action reference
https://code.claude.com/docs/en/settings/config and settings catalog for the new toggle

Total scope: 3 pages affected

Source: Changelog v2.1.110

Exact changelog entry text:

Added option to show Claude's last response as commented context in the Ctrl+G external editor (enable via /config)

extent analysis

TL;DR

Update the documentation for Ctrl+G shortcut, chat:externalEditor action, and /config settings to include information about the new option to show Claude's last response as commented context in the external editor.

Guidance

  • Add a subsection to the interactive-mode documentation explaining the optional commented context feature for the Ctrl+G shortcut.
  • Document the /config toggle for this behavior in the settings documentation, including the exact toggle label and underlying setting key.
  • Clarify the chat:externalEditor action in the keybindings documentation to mention the optional commented context.
  • Consider adding an example to the documentation to show how the commented context is formatted in the editor buffer.

Example

An example of how the commented context could be formatted in the editor buffer could be:

# Claude's previous response:
# This is the previous response from Claude
# It will be inserted as commented lines above the prompt
Prompt:

Notes

The exact wording and formatting of the documentation updates will depend on the existing style and tone of the documentation. It's essential to ensure that the new information is clear, concise, and easy to understand for users.

Recommendation

Apply workaround by updating the documentation for the affected pages to include the missing information about the new option. This will help users understand the feature and its configuration options, making it easier for them to use the Ctrl+G shortcut and /config settings effectively.

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

claude-code - 💡(How to fix) Fix [DOCS] External editor docs missing last-response commented context option [1 participants]