-
Notifications
You must be signed in to change notification settings - Fork 62
feat: update support for codex cli #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
lib/msgfmt/testdata/format/codex/confirmation_box/expected.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
Shell Command | ||
~/Documents/work/agentapi$ git rev-parse --show-toplevel | ||
> You are running Codex in /Users/jkmr | ||
|
||
Allow command? | ||
Since this folder is not version controlled, we recommend requiring | ||
approval of all edits and commands. | ||
|
||
▶ Yes (y) | ||
Yes, always approve this exact command for this session (a) | ||
Edit or give feedback (e) | ||
No, and keep going (n) | ||
No, and stop for now (esc) | ||
1. Allow Codex to work in this folder without asking for approval | ||
> 2. Require approval of edits and commands | ||
|
||
Press Enter to continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,9 @@ | ||
╭Messages (tab to focus)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│OpenAI Codex v0.10.0 (research preview) │ | ||
│ │ | ||
│codex session 790ba389-ab4d-47be-bb16-9cc7f36bcf2b │ | ||
│workdir: /Users/jkmr/Documents/work/agentapi │ | ||
│model: codex-mini-latest │ | ||
│provider: openai │ | ||
│approval: untrusted │ | ||
│sandbox: read-only │ | ||
│reasoning effort: medium │ | ||
│reasoning summaries: auto │ | ||
│ │ | ||
│user │ | ||
│what repository are you in? │ | ||
│ │ | ||
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
╭Review───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│Shell Command │ | ||
│~/Documents/work/agentapi$ git rev-parse --show-toplevel │ | ||
│ │ | ||
│Allow command? │ | ||
│ │ | ||
│ ▶ Yes (y) │ | ||
│ Yes, always approve this exact command for this session (a) │ | ||
│ Edit or give feedback (e) │ | ||
│ No, and keep going (n) │ | ||
│ No, and stop for now (esc) │ | ||
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
> You are running Codex in /Users/jkmr | ||
|
||
Since this folder is not version controlled, we recommend requiring | ||
approval of all edits and commands. | ||
|
||
1. Allow Codex to work in this folder without asking for approval | ||
> 2. Require approval of edits and commands | ||
|
||
Press Enter to continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
what repository are you in? | ||
18 changes: 9 additions & 9 deletions
18
lib/msgfmt/testdata/format/codex/first_message/expected.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
OpenAI Codex v0.10.0 (research preview) | ||
>_ You are using OpenAI Codex in ~ | ||
|
||
codex session 56576d81-529d-42f3-843b-78d870054a75 | ||
workdir: /Users/jkmr/Documents/work/agentapi | ||
model: codex-mini-latest | ||
provider: openai | ||
approval: untrusted | ||
sandbox: read-only | ||
reasoning effort: medium | ||
reasoning summaries: auto | ||
To get started, describe a task or try one of these commands: | ||
|
||
/init - create an AGENTS.md file with instructions for Codex | ||
/status - show current session configuration and token usage | ||
/diff - show git diff (including untracked files) | ||
/prompts - show example prompts | ||
|
||
⏎ send Shift+⏎ newline Ctrl+C quit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,11 @@ | ||
╭Messages (tab to focus)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│OpenAI Codex v0.10.0 (research preview) │ | ||
│ │ | ||
│codex session 56576d81-529d-42f3-843b-78d870054a75 │ | ||
│workdir: /Users/jkmr/Documents/work/agentapi │ | ||
│model: codex-mini-latest │ | ||
│provider: openai │ | ||
│approval: untrusted │ | ||
│sandbox: read-only │ | ||
│reasoning effort: medium │ | ||
│reasoning summaries: auto │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│ send a message │ | ||
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Enter to send | Ctrl+D to quit | Ctrl+J for newline╯ | ||
>_ You are using OpenAI Codex in ~ | ||
|
||
To get started, describe a task or try one of these commands: | ||
|
||
/init - create an AGENTS.md file with instructions for Codex | ||
/status - show current session configuration and token usage | ||
/diff - show git diff (including untracked files) | ||
/prompts - show example prompts | ||
|
||
▌ Ask Codex to do anything | ||
⏎ send Shift+⏎ newline Ctrl+C quit |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.