Skip to content

Commit b440c83

Browse files
committed
test: align exact-parent fixtures
1 parent 6021a17 commit b440c83

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

tests/e2e/codex-skills-e2e.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ test('synthetic continuation capture incorporates raw installed-hook Start/Stop
732732
...process.env, ZCODE_DATA_ROOT: dataRoot,
733733
CODEX_APP_SERVER_PATH: process.execPath,
734734
CODEX_APP_SERVER_ARGS_JSON: JSON.stringify([fakeCodex]),
735-
FAKE_CODEX_THREAD_LIST_RESULTS_JSON: JSON.stringify({ data: [unrelatedLegacyChild], nextCursor: null, backwardsCursor: null }),
735+
FAKE_CODEX_THREAD_SPAWN_GRAPH_JSON: JSON.stringify([unrelatedLegacyChild]),
736736
};
737737
const hook = async (script, input) => runChild(process.execPath, [join(installedHooks, script)], { cwd: workspace, env: hookEnv, ordinaryInput: true, input });
738738
assert.equal((await hook('session-lifecycle-hook.mjs', { session_id: parentSessionId, cwd: workspace, hook_event_name: 'SessionStart', transcript_path: null, model: 'gpt', permission_mode: 'acceptEdits', source: 'startup' })).code, 0);

tests/integration/two-session-hooks.test.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ test('real prompt hooks keep direct ambient-thread invocation exact in one works
173173
Object.assign(ctx.env, {
174174
CODEX_APP_SERVER_PATH: process.execPath,
175175
CODEX_APP_SERVER_ARGS_JSON: JSON.stringify([fakeCodex]),
176-
FAKE_CODEX_THREAD_LIST_RESULTS_JSON: JSON.stringify({
177-
data: [unrelatedLegacySpawnChild(ctx.workspace)], nextCursor: null, backwardsCursor: null,
178-
}),
176+
FAKE_CODEX_THREAD_SPAWN_GRAPH_JSON: JSON.stringify([unrelatedLegacySpawnChild(ctx.workspace)]),
179177
});
180178
for (const session of [
181179
{ id: 'session-a', child: 'child-a', turn: 'turn-a', task: 'repair alpha', prompt: '$zcode:rescue --fresh --wait repair alpha' },

0 commit comments

Comments
 (0)