mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 11:47:42 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - Each master commit gets a Docker image. The image build first waits for the full test suite on that exact commit, and it stops if a test fails > - #23382 added a `claimTokenHash` column to issues. The issue service removes this column from the rows it returns, so that the hash never leaves the server > - Four tests in `issue-recovery-actions.test.ts` compare the row from `issuesSvc.update` with the full database row. The full row has `claimTokenHash`, so the comparison fails > - These tests fail on every master commit since #23382, so no master image was published after that commit > - This pull request removes `claimTokenHash` from the database row before the comparison > - The benefit is that master images build again, and the tests also make sure that the service row does not have the hash ## Linked Issues or Issue Description No public issue exists. **What happened?** After #23382 merged, the full server test suite fails on master in `issue-recovery-actions.test.ts`. The four "preserves a concurrent … decision when stale stranded recovery waits for the issue lock" tests fail with `expected { …(86) } to match object { …(83) }`, and the diff shows only `"claimTokenHash": null`. The master image build stops on this failure, so master commits after #23382 have no image. **Expected behavior** The tests pass. The service row and the database row agree on every column that the service returns. **Steps to reproduce** 1. Check out `master` at689bfd04ac. 2. In `server/`, run `npx vitest run src/__tests__/issue-recovery-actions.test.ts -t "stale stranded recovery waits for the issue lock"`. 3. See 4 tests fail on `claimTokenHash`. **Paperclip version or commit** `master` at689bfd04ac. The failure starts atce2e6ccc00(#23382). **Deployment mode** Not applicable. This is a test failure in CI. ## What Changed - In the four lock tests, the test removes `claimTokenHash` from the database row before it compares that row with the row from `issuesSvc.update`. - The tests also make sure that the row from `issuesSvc.update` does not have `claimTokenHash`. - No change to production code. ## Verification - Without the change, the 4 tests fail on master, as in the steps above. - With the change, `npx vitest run src/__tests__/issue-recovery-actions.test.ts` (in `server/`): 121 tests pass. - `pnpm --filter @paperclipai/server typecheck` passes. ## Risks - Low risk. The change is only in a test file. ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, with tool use (shell, file edits, and CI log reads). ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes (no documentation describes this test) - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge Co-authored-by: Paperclip <noreply@paperclip.ing>