Skip to content

core: snapshot fork startup context injection#15443

Open
charley-oai wants to merge 5 commits intomainfrom
cc/fork-startup-context-snapshot
Open

core: snapshot fork startup context injection#15443
charley-oai wants to merge 5 commits intomainfrom
cc/fork-startup-context-snapshot

Conversation

@charley-oai
Copy link
Collaborator

Summary

  • add a snapshot-style core test for fork startup context injection followed by first-turn diff injection
  • capture the current duplicated startup-plus-turn context behavior without changing runtime logic

Testing

  • not run locally; relying on CI
  • just fmt

@charley-oai
Copy link
Collaborator Author

@codex review

03:message/developer:<permissions instructions>\nFilesystem sandboxing defines which files can be read or written. `sandbox_mode` is `read-only`: The sandbox only permits reading files. Network access is restricted.\n Approvals are your mechanism to get user consent to run shell commands without the sandbox. `approval_policy` is `unless-trusted`: The harness will escalate most commands for user approval, apart from a limited allowlist of safe "read" commands.\n</permissions instructions>
04:message/user:<environment_context>\n <cwd><CWD></cwd>\n <shell><SHELL></shell>\n <current_date><CURRENT_DATE></current_date>\n <timezone><TIMEZONE></timezone>\n</environment_context>
05:message/developer[2]:
[01] <permissions instructions>\nFilesystem sandboxing defines which files can be read or written. `sandbox_mode` is `read-only`: The sandbox only permits reading files. Network access is restricted.\nApproval policy is currently never. Do not provide the `sandbox_permissions` for any reason, commands will be rejected.\n</permissions instructions>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the bug we will fix in followup PR

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ 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 "@codex address that feedback".

@charley-oai charley-oai force-pushed the cc/fork-startup-context-snapshot branch from 320a845 to 7464ec0 Compare March 22, 2026 20:18
@charley-oai charley-oai changed the base branch from cc/reference-turn-context-state to main March 22, 2026 20:18
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.

1 participant