Skip to content

Conversation

@dylan-hurd-oai
Copy link
Collaborator

Summary

When resuming a session, we should append a new environment context message, to ensure the model is aware of the current settings, which might change (e.g. running codex resume --yolo)

Testing

  • Tested locally
  • Added integration test

state.set_token_info(Some(info));
}

if append_env_context {
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is similar code when creating a new session. Is there a place where we can unify?

let input = body["input"]
.as_array()
.expect("resume request input is an array");
let env_texts: Vec<&str> = input
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we have a helper on single_request for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants