Files
PaperClipAI/server
Arthurandmnazirp-finity 2eea950c2e fix(heartbeat): stop carrying the in_review wait into later summaries (#15544)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - After each run, Paperclip refreshes the issue's continuation
summary. In review, its Next Action says to wait for reviewer feedback
> - Later refreshes copy that line into in-progress issues, so the
dispatcher cancels the queued continuation
> - This pull request stops that copy

## Linked Issues or Issue Description

Refs #14424. Agents on an issue that came back from review get their
queued continuation runs cancelled with
`issue_continuation_waiting_on_review`. Builds on the repro and check
from @mnazirp-finity. Related: #11614.

## What Changed

- `inferNextAction` no longer carries the Next Action it writes for an
in_review issue into another status.
- Tests: the issue's repro, a kept waiting Next Action, and a Postgres
test for the queued continuation.

## Verification

- `pnpm exec vitest run issue-continuation-summary.test.ts
run-dispatch/adapters/postgres.test.ts`

## Risks

Low. Stored summaries with the wait line change after the next run.

## Model Used

The AI assistance note is at the end.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [ ] I have specified the model used (with version and capability
details)
- [x] ROADMAP.md lists no planned core work that overlaps this PR
- [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
- [ ] I have updated relevant documentation to reflect my changes
- [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
- [ ] I will address all Greptile and reviewer comments before
requesting merge

Assisted by Claude/Codex.

Co-authored-by: mnazirp-finity
<317764857+mnazirp-finity@users.noreply.github.com>

Co-authored-by: mnazirp-finity <317764857+mnazirp-finity@users.noreply.github.com>
2026-12-04 21:23:21 -08:00
..