-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Handle resuming/forking after compact #3533
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
|
@codex review this |
|
Codex Review: Didn't find any major issues. Keep them coming! About Codex in GitHubYour 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, or 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 "@codex fix this CI failure" or "@codex address that feedback". |
| // --- Test helpers ----------------------------------------------------------- | ||
|
|
||
| /// Build an SSE stream body from a list of JSON events. | ||
| fn sse(events: Vec<serde_json::Value>) -> String { |
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.
You can import these helpers from /codex-rs/core/tests/suite/compact.rs since they're the same
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.
makes sense
codex-rs/core/src/codex.rs
Outdated
| (session, turn_context) | ||
| } | ||
|
|
||
| fn sample_rollout( |
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.
As mentioned elsewhere, we should put helper functions under tests.
dedrisian-oai
left a comment
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.
Other than the small comments on tests, looks good!
|
@codex code by fixing tests that are failing on windows because of the new line. see the tests in this PR and make them different OS compatible. example of failing part: |
|
Summary
Testing
|
We need to construct the history different when compact happens. For this, we need to just consider the history after compact and convert compact to a response item.
This needs to change and use
build_compact_historywhen this #3446 is merged.