8000 Fix tab+enter regression on slash commands by dedrisian-oai · Pull Request #4639 · openai/codex · GitHub
[go: up one dir, main page]

Skip to content

Conversation

dedrisian-oai
Copy link
Collaborator

Before when you would enter /di, hit tab on /diff, and then hit enter, it would execute /diff. But now it's just sending it as a text. This fixes the issue.

Comment on lines +907 to +910
&& rest.is_empty()
&& let Some((_n, cmd)) = built_in_slash_commands()
.into_iter()
.find(|(n, _)| *n == name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel like '/foo ...' should give an error if it doesn't exist...? rather than sending it to the model.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, agreed. For now this fixes the regression but can add that later.

@dedrisian-oai dedrisian-oai merged commit 1e4541b into main Oct 3, 2025
20 checks passed
@dedrisian-oai dedrisian-oai deleted the daniel/fix-tab-slash-commands branch October 3, 2025 03:14
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0