-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add turn started/completed events and correct exit code on error #4309
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
Conversation
# Conflicts: # codex-rs/exec/src/exec_events.rs # codex-rs/exec/src/experimental_event_processor_with_json_output.rs # codex-rs/exec/tests/event_processor_with_json_output.rs
… list test Previously, the test only asserted ItemCompleted event. Update to also expect a SessionCompleted event with default usage, matching actual event sequence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
…ted event - Replace SessionCompletedEvent and session.completed with TurnCompletedEvent and turn.completed in exec_events and processor - Introduce TurnStartedEvent and turn.started variant in ConversationEvent - Propagate changes to experimental_event_processor_with_json_output and adjust handling for TaskStarted/TaskComplete - Update usage summaries and associated tests for turn semantics
if error_seen { | ||
std::process::exit(1); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to return a special type of Error
and handle std::process::exit()
higher up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but outside of this PR, there are many std::process::exits
in that file that I'd like to clean up.
Adds new event for session completed that includes usage. Also ensures we return 1 on failures.