Files
PaperClipAI/server
DottaandClaude Opus 5.5 f913a4f1b8 Drop the stale external-chat refusal from the control-plane port test (#22854)
## 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 <noreply@anthropic.com>
2026-11-24 18:41:25 -06:00
..