codex - 💡(How to fix) Fix Run shell command without deleting prompt [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
openai/codex#17515Fetched 2026-04-12 13:27:15
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

CLI

What feature would you like to see?

I frequently like to add context by editing the code and running !git diff

However, once I have started writing the prompt it becomes very cumbersome do run a shell command. You have to copy the prompt, delete it, run the bang command, then paste back the prompt.

Can we just run a ! bang command anytime, rather than only before writing the prompt?

Additional information

No response

extent analysis

TL;DR

Allowing the execution of bang commands at any time, not just before writing the prompt, could simplify the workflow when using the CLI variant of Codex.

Guidance

  • Consider modifying the current implementation to accept bang commands at any point during the prompt editing process.
  • Investigate if there are existing shortcuts or features in the CLI that could be leveraged to simplify the process of running shell commands without having to copy, delete, and paste the prompt.
  • Evaluate the potential impact of introducing this feature on the overall user experience and workflow.
  • Look into whether other users have requested similar functionality to gauge the demand for this feature.

Notes

The feasibility of implementing this feature may depend on the underlying architecture of the Codex CLI and how it handles user input and bang commands.

Recommendation

Apply workaround: Until a native solution is available, users could explore using external tools or scripts to manage their workflow more efficiently, such as using a separate terminal window for running shell commands or finding a text editor that supports running commands directly.

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