Allow `/goal` commands to be edited with Esc like standard prompts

Open
#36,780 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start by tracing the terminal input history/editor flow and the special handling for /goal commands. Compare it with the standard prompt Esc path, then verify that Esc opens a goal command for editing and that the edited command submits normally without requiring /goal edit.

Written by the indexing model from the issue text.

Description

CLI enhancement TUI
What feature or improvement would you like to see?

Treat /goal commands like standard prompts in the input history/editor so they can be edited with <Esc>. Users should not need to invoke a separate /goal edit command just to revise a goal command.

Why is this useful?

The current special handling makes goal commands feel inconsistent with other prompts and adds an extra command to remember. Allowing the normal <Esc> editing flow would make it easy to correct or refine a goal in place while preserving the standard prompt interaction model.

Proposed behavior
  • Pressing <Esc> on a /goal command opens it for editing just like a standard prompt.
  • The edited command can be submitted normally.
  • A separate /goal edit command is not required for this workflow.
Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.