GeezerVison is showing github.com — fork seams: announce the stored-delivery worker's keep line (#719) by scuttletoby · Pull Request #742 · scuttletoby/t3code
Conversation
scuttletoby
commented
Nov 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Part of #719 (step 1 of "Adding a seam line" in docs/fork/updates.md: the list only).
The fix for #719's lost webhook delivery needs one upstream line in ScheduledTaskService.ts. This PR announces it. The fix PR #743 is built on this branch and moves the line from announced to added. Merge this first.
apps/server/src/scheduledTasks/ScheduledTaskService.ts (new announced block): if (yield* runSlots.keepStored(taskId)) continue; // Fork: a delivery saved while it waited runs again on the task as saved.
- It goes in the stored-delivery worker, right after
if (!(yield* runWebhookDelivery(task, entry.delivery_id, rendered.prompt))) return;.
- When the fork's slot wait saw the task saved while the delivery waited, it ends that run unstarted. The worker then keeps the stored row instead of deleting it, and takes it again at once. It reads the task again (upstream's own prompt swap for
dispatching rows) and renders the prompt again.
- Why a seam is needed:
runWebhookDelivery returns false (keep the row) only on a path that has already called markDeliveryFailed. Every other result makes the worker delete the row. The fork's slot hook (runSlots.admit) sits inside runTask and cannot reach the worker's remove. So with no line here, the delivery is either dropped or run on the copy from before the save.
- The
why text of the entry now also covers this.
since is 2026-11-21. If this merges on a later day, refresh it.
General vs project
General: a seam-list entry for a fork feature (agent slots and MCP profiles on scheduled webhook tasks) that any user of a T3 fork can run. Nothing in it is specific to one project.
Checks
node .github/scripts/fork-seam-check.cjs --config-ref origin/main origin/main HEAD: green, and no upstream file changed.
node --test .github/scripts/fork-seam-check.test.cjs: 100 pass.
vp fmt and vp lint on the list: pass.
- State: an announcement lasts 14 days. If the fix PR does not land in that time, fork-follow refuses it, and the line has to be announced again with a new
since.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Announces one line in ScheduledTaskService.ts's stored-delivery worker:
`if (yield* runSlots.keepStored(taskId)) continue;` right after its
`runWebhookDelivery` call. With it, a webhook delivery whose task was
saved while it waited for an agent slot is not removed: the worker
reads the task again and runs the delivery on the task as saved.
Part of #719.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
)
Announces one line in ScheduledTaskService.ts's stored-delivery worker:
`if (yield* runSlots.keepStored(taskId)) continue;` right after its
`runWebhookDelivery` call. With it, a webhook delivery whose task was
saved while it waited for an agent slot is not removed: the worker
reads the task again and runs the delivery on the task as saved.
Part of #719.
Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
)
Announces one line in ScheduledTaskService.ts's stored-delivery worker:
`if (yield* runSlots.keepStored(taskId)) continue;` right after its
`runWebhookDelivery` call. With it, a webhook delivery whose task was
saved while it waited for an agent slot is not removed: the worker
reads the task again and runs the delivery on the task as saved.
Part of #719.
Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
)
Announces one line in ScheduledTaskService.ts's stored-delivery worker:
`if (yield* runSlots.keepStored(taskId)) continue;` right after its
`runWebhookDelivery` call. With it, a webhook delivery whose task was
saved while it waited for an agent slot is not removed: the worker
reads the task again and runs the delivery on the task as saved.
Part of #719.
Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
Nov 28, 2026
)
Announces one line in ScheduledTaskService.ts's stored-delivery worker:
`if (yield* runSlots.keepStored(taskId)) continue;` right after its
`runWebhookDelivery` call. With it, a webhook delivery whose task was
saved while it waited for an agent slot is not removed: the worker
reads the task again and runs the delivery on the task as saved.
Part of #719.
Co-authored-by: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.