mirror of
https://github.com/openai/codex.git
synced 2026-11-14 06:48:26 +00:00
core: snapshot fork startup context injection (#15443)
## 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 --------- Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
1 parent
e830000e41
commit
85065ea1b8
2 files changed
+136
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
---
|
||||
source: core/src/codex_tests.rs
|
||||
assertion_line: 1282
|
||||
expression: snapshot
|
||||
---
|
||||
Scenario: First request after fork when fork startup changes approval policy and the first forked turn changes approval policy again and enters plan mode.
|
||||
|
||||
## First Forked Turn Request
|
||||
00:message/developer:<PERMISSIONS_INSTRUCTIONS>
|
||||
01:message/user:<ENVIRONMENT_CONTEXT:cwd=<CWD>>
|
||||
02:message/user:fork seed
|
||||
03:message/developer:<PERMISSIONS_INSTRUCTIONS>
|
||||
04:message/user:<ENVIRONMENT_CONTEXT:cwd=<CWD>>
|
||||
05:message/developer[2]:
|
||||
[01] <PERMISSIONS_INSTRUCTIONS>
|
||||
[02] <collaboration_mode>Fork turn collaboration instructions.</collaboration_mode>
|
||||
06:message/user:after fork
|
||||
Reference in new issue
Block a user