GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@scuttletoby scuttletoby commented Nov 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

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.

All reactions
@scuttletoby @claude
fork seams: announce the stored-delivery worker's keep line (#719)
58f96c2
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 scuttletoby mentioned this pull request Nov 21, 2026
Scheduled tasks: a webhook delivery saved while it waits runs on the task as saved (#719) #743
Merged
@scuttletoby
Merge branch 'main' into seam/719-keep-stored-delivery
6da075c
@scuttletoby
scuttletoby merged commit 46f09e3 into main Nov 21, 2026
30 checks passed

Uh oh!

There was an error while loading. Please reload this page.

scuttletoby added a commit that referenced this pull request Nov 21, 2026
@scuttletoby @claude
fork seams: announce the stored-delivery worker's keep line (#719) (#742
43080b6
)

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
@scuttletoby @claude
fork seams: announce the stored-delivery worker's keep line (#719) (#742
c78ddde
)

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
@scuttletoby @claude
fork seams: announce the stored-delivery worker's keep line (#719) (#742
3759b56
)

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
@scuttletoby @claude @noreply
fork seams: announce the stored-delivery worker's keep line (#719) (#742
9e1f091
)

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@scuttletoby
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.