Skip to content

core: snapshot fork startup context injection#15443

Merged
charley-oai merged 8 commits intomainfrom
cc/fork-startup-context-snapshot
Mar 23, 2026
Merged

core: snapshot fork startup context injection#15443
charley-oai merged 8 commits intomainfrom
cc/fork-startup-context-snapshot

Conversation

@charley-oai
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
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
@charley-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@charley-oai charley-oai enabled auto-merge (squash) March 23, 2026 00:32
@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🚀

ℹ️ 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 disabled auto-merge March 23, 2026 01:24
@charley-oai charley-oai merged commit 85065ea into main Mar 23, 2026
33 of 36 checks passed
@charley-oai charley-oai deleted the cc/fork-startup-context-snapshot branch March 23, 2026 01:24
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants