Skip to content

Commit 79716fc

Browse files
test(server): align replay fixtures with fork message labels
New upstream restart and provider-switch fixtures expected User message while the fork's context wrapper emits Current message to preserve sender attribution. Correct the three expected prefixes in two integration tests. Keep all command, history, provider, and completion assertions, UUID normalization, and production behavior unchanged. Both complete affected suites pass (118 tests). Implemented with GPT-6 Astra Pro in ChatGPT/Codex, with three parallel workers.
1 parent 21cb66a commit 79716fc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/server/src/orchestration-v2/testkit/OrchestratorReplayRestartBackgroundNote.integration.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ describe("restart-cancelled background work", () => {
301301
Effect.gen(function* () {
302302
const slashCommand = "/review the diff";
303303
const projection = yield* runRestart({
304-
resumedPrompts: [slashCommand, `${NOTE}\n\nUser message:\n${SECOND_AFTER_RESTART}`],
304+
resumedPrompts: [slashCommand, `${NOTE}\n\nCurrent message:\n${SECOND_AFTER_RESTART}`],
305305
userMessagesAfterRestart: [slashCommand, SECOND_AFTER_RESTART],
306306
continueThreadsAfterServerUpdate: false,
307307
});

‎apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,7 +3331,7 @@ describe("orchestration v2 provider switching", () => {
33313331
assert.equal(slashTurn.driver, GROK_DRIVER);
33323332
if (!verbatim) {
33333333
assert.include(slashTurn.text, originalPrompt);
3334-
assert.include(slashTurn.text, `User message:\n${firstMessage}`);
3334+
assert.include(slashTurn.text, `Current message:\n${firstMessage}`);
33353335
return;
33363336
}
33373337
assert.equal(
@@ -3345,7 +3345,7 @@ describe("orchestration v2 provider switching", () => {
33453345
const next = (yield* Ref.get(capturedTurns)).at(-1)!;
33463346
assert.include(next.text, originalPrompt);
33473347
assert.include(next.text, codexResponse);
3348-
assert.include(next.text, "User message:\nContinue");
3348+
assert.include(next.text, "Current message:\nContinue");
33493349
}).pipe(
33503350
Effect.provide(
33513351
ProviderReplayHarness.layerWithRegistry(

0 commit comments

Comments
 (0)