mirror of
https://github.com/openai/codex.git
synced 2026-04-29 00:55:38 +00:00
Here's the logic: 1. If text is empty and selector is open: - Enter on a prompt without args should autosubmit the prompt - Enter on a prompt with numeric args should add `/prompts:name ` to the text input - Enter on a prompt with named args should add `/prompts:name ARG1="" ARG2=""` to the text input 2. If text is not empty but no args are passed: - For prompts with numeric args -> we allow it to submit (params are optional) - For prompts with named args -> we throw an error (all params should have values) <img width="454" height="246" alt="Screenshot 2025-09-23 at 2 23 21 PM" src="https://github.com/user-attachments/assets/fd180a1b-7d17-42ec-b231-8da48828b811" />