Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(codex): full access answers command and file approvals again #37611

Closedmatthias-scale(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/37611/headopened View on GitHub

Showing 2 changed files with 63 additions and 10 deletions.

x
0 of 2 viewed, 2 left
39 additions and 10 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.tsModified
View file
@@ -3246,6 +3246,21 @@
turnEvent("turn/completed", turnIds[0]!),
...startTurn(1),
patchDecision!,
+ // Full access answers new prompts itself; only the earlier patch reached the user.
+ ...approval({
+ id: 105,
+ turnId: turnIds[1]!,
+ kind: "commandExecution",
+ itemId: "full-access-command",
+ decision: "accept",
+ }),
+ ...approval({
+ id: 106,
+ turnId: turnIds[1]!,
+ kind: "fileChange",
+ itemId: "full-access-patch",
+ decision: "accept",
+ }),
turnEvent("turn/completed", turnIds[1]!),
...startTurn(2),
...approval({
@@ -11691,22 +11706,36 @@
const harness = yield* makeCodexReplayHarness(
makeCodexReplayTranscript({
scenario,
- entries: [...codexReplayPreamble({ nativeThreadId, nativeTurnId, prompt }), ...entries],
+ entries: [
+ ...codexReplayPreamble({