Skip to content

Commit 0481b76

Browse files
fix(server): Codex plans offer Implement again (#13793)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 55cb2fc commit 0481b76

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4292,10 +4292,11 @@ export function makeCodexAdapterV2(adapterOptions: CodexAdapterV2Options): Provi
42924292
payload.item.text.length > 0
42934293
? payload.item.text
42944294
: (deltas.get(payload.item.id) ?? "");
4295+
// A finished proposal stays active until Implement consumes it.
42954296
const artifacts = yield* buildProposedPlanArtifacts({
42964297
context,
42974298
nativeItemId: payload.item.id,
4298-
status: "completed",
4299+
status: "active",
42994300
markdown,
43004301
completed: true,
43014302
});

‎apps/server/src/orchestration-v2/testkit/fixtures/proposed_plan/codex_output.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export function assertProposedPlanOutput(
3333
// The plan is the model's own; check it answers the prompt rather than its title.
3434
assert.match(proposedPlans.at(-1)?.markdown ?? "", /replay/iu);
3535
assert.match(proposedPlans.at(-1)?.markdown ?? "", /fixture/iu);
36+
// A finished proposal stays active until Implement consumes it; clients only
37+
// offer Implement for an active plan.
38+
assert.equal(proposedPlans.at(-1)?.status, "active");
3639

3740
const proposedPlanItems = projection.turnItems.filter((item) => item.type === "proposed_plan");
3841
assert.isAtLeast(proposedPlanItems.length, 1);

0 commit comments

Comments
 (0)