Skip to content

Commit 4e762e2

Browse files
committed
test(plugin-approvals): re-judge the parked-node-gone decision refusal against the flow version pin
A republish that drops the parked approval node now resumes the run on the body it started on, so the decision is no longer refused there. The RESUME_TARGET_LOST refusal stays pinned for a body that is truly unrecoverable (withdrawn, never stored). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUs3BthE1wf1V6QZ6w17Wk
1 parent 337e86f commit 4e762e2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎packages/plugins/plugin-approvals/src/deleted-flow-decision-refusal.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,12 @@ describe('a decision on a run whose flow is gone is refused before it is recorde
194194
expect(await automation.hasSuspendedRun(runId), 'the run row is untouched by the refusal').toBe(true);
195195
});
196196

197-
it('parked node edited away: the same refusal, nothing recorded', async () => {
197+
it('parked node gone and the body the run started on unrecoverable: the same refusal, nothing recorded', async () => {
198+
// [#28405] A plain republish no longer reaches this refusal: the run
199+
// resumes on the flow body it started on. The parked node is lost only
200+
// when that body is gone too: withdrawn from the engine (which forgets the
201+
// bodies it held) and never stored in a metadata history.
202+
automation.withdrawFlow('scratch_approval');
198203
automation.registerFlow('scratch_approval', scratchFlow({ withApprovalNode: false }) as never);
199204

200205
const err = await approve();

0 commit comments

Comments
 (0)