From f913a4f1b8cc4a891f381c277be372535aa3f9d9 Mon Sep 17 00:00:00 2001 From: Dotta <34892728+cryppadotta@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:41:25 -0600 Subject: [PATCH] Drop the stale external-chat refusal from the control-plane port test (#22854) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path - Core master's Cloud readiness has failed `server (9/10)` on every commit since 23:30Z, which blocks the master Docker image and every production rollout. - The failing test is `paperclip-control-plane-port.test.ts` › "persists a delayed final answer and replay…". It fails deterministically, including when run alone. - #22807 intentionally changed recovery so that an ordinary task woken by an external chat gets its accepted final reply posted, as on the live path. This test still asserted the old rule (`externalChatContinuation` → recovery refuses). - It went unnoticed because the suite ran only nightly until #22831 moved it into regular CI. ## What Changed - Removed the stale `externalChatContinuation` refusal step. #22807's `agent-chat-response-recovery.test.ts` cases already cover external-chat recovery (`done` and `needs_review`). - The test still checks that recovery refuses while the issue comment is skipped, and that the presentation worker posts the final reply exactly once. ## Verification - `paperclip-control-plane-port.test.ts`: 1 failed / 108 before, all pass after. - Together with `agent-chat-response-recovery.test.ts`: 181 passed. - Reproduced the CI failure locally first with `pnpm test:run:general -- --group general-server-without-chat-or-native-runner --shard-index 8 --shard-count 10` (same assertion). ## Risks - Test-only. No product change. ## Checklist - [x] I have searched GitHub for duplicate or related PRs and linked them above (related: #22807, #22831; companion master fix #22852) ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 --- .../native-runtime/paperclip-control-plane-port.test.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/src/services/native-runtime/paperclip-control-plane-port.test.ts b/server/src/services/native-runtime/paperclip-control-plane-port.test.ts index 406070043ad..db22598f245 100644 --- a/server/src/services/native-runtime/paperclip-control-plane-port.test.ts +++ b/server/src/services/native-runtime/paperclip-control-plane-port.test.ts @@ -2000,9 +2000,6 @@ describe("PaperclipControlPlanePort conformance", () => { companyId: identity.companyId, issueId: taskIssueId, runId: taskRunId, }); expect(await repair()).toBe(false); - await db.update(heartbeatRuns).set({ contextSnapshot: { externalChatContinuation: true } }) - .where(eq(heartbeatRuns.id, taskRunId)); - expect(await repair()).toBe(false); await db.update(heartbeatRuns).set({ contextSnapshot: {} }).where(eq(heartbeatRuns.id, taskRunId)); const work = nativeResponsePresentationWork(db); const [entry] = await work.load({ companyId: identity.companyId, runId: taskRunId });