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 — feat(server): tell the parent when a delegated task pauses on a request by saphid · Pull Request #14423 · pingdotgg/t3code

Conversation

@saphid

@saphid saphid commented Sep 30, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

What changed

A delegated child can stay running while waiting for an approval or question, so its parent previously received no completion and could wait indefinitely. This change exposes that pause and notifies the parent:

  • task_status reports blocked_on_request and the pending request IDs and kinds.
  • delegate_task with mode: "wait" returns when the child pauses, without claiming a timeout, and hands later result delivery to the completion wake.
  • Async children notify their parent once per task for approvals and once per question. The existing notification row links to the child thread.

Notices tell the parent to check current task status before acting because a queued observation can be stale. Approvals still require a person in the child thread; a notice grants no broader permissions. The parent answers a question only when the delegation or the user's instructions settle the answer. Missing or closed owning-run cohorts suppress pause wakes, matching completion delivery: stopping the original delegating run prevents later child pauses from restarting it.

Pending-request reads use the existing thread/status index. The change adds no client renderer, permission bypass, or durable retry machinery. Web/Electron and React Native reuse their existing notification handling; actual client behavior remains unverified.

Verification

  • Final focused server checks: 36 tests across five files passed, including approval/question deduplication, wait/resume behavior, answered-request suppression, failed enqueue recovery, stopped-parent suppression, and idle-parent new-run creation.
  • The stopped-parent regression failed before the guard: a child pause created a notice and a new parent run. It passes after the repair. It seeds the state written by Stop and runs the real event listener; the actual Stop-button/provider flow has not been exercised.
  • The idle-parent test proves that the stored notice owns a distinct nonqueued run. It does not prove a live provider session opens.
  • Independent Claude Fable 5.1 review reran those 36 tests, five contract tests, server typechecking, and scoped lint/format/diff checks successfully. No blocking code findings on the frozen contribution. Lint retains one preexisting unused-variable warning. Local tests used Node 24.12.0, below the repository's declared 24.13.1 minimum.

Required live and UI proof is incomplete. No current before/after images or video are claimed. Still needed: real approval/question → idle-parent wake → response/resume; supervised mode: "wait"; Stop followed by a child pause; and notification links for multiple children in actual clients. This PR is not yet verified ready to merge.

Limits

  • A failed enqueue is retried only when another request arrives. A child blocked on a question may never emit one. task_status still reports the pending request.
  • A blocking wait that ends without upgrading its wake policy can lose a pause observed while the parent is active; that pause is not rechecked when the parent settles.
  • A wait that returned a pause can still be followed by one notice for the next approval. Historical pause events are not replayed after restart.
  • Stopping a run started by a pause notice does not close the original delegating run's cohort. A sibling approval or later question can therefore start the parent again. Closing that cohort would also discard later completion delivery; this narrower behavior is retained and disclosed.
  • A pause notice already queued when the user presses Stop is held under the existing queue rules, not cancelled. Notification rows retain the text of the original observation after the child resumes.

Readiness repairs: GPT-6 Astra, Codex harness in T3 Code. Independent review: Anthropic Claude Fable 5.1, high reasoning, Claude Code harness through T3 Code.

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions @claude
feat(server): tell the parent when a delegated task pauses on a request
33d7d72
A delegated child that stops on an approval or a question keeps its run
"running", so no completion ever reaches the parent. task_status reported the
task as running and working, mode=wait sat until its timeout, and an async
parent was never woken. In practice the parent ended its turn and the child
stayed paused for hours.

task_status now reports workState "blocked_on_request" with the pending
requests, and a mode=wait call returns as soon as the child pauses. The
orchestrator also wakes the parent with a notification: once per task for
approvals, which only a person can answer in the child's thread, and once per
question, which the parent can answer with t3_pending_request_respond. A parent
still blocked in mode=wait is not woken, since its call returns the paused
task.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Sep 30, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 30, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — The PR adds a cross-cutting delegated-task pause workflow that changes MCP results, wait semantics, parent notifications, and parent-run scheduling across the server. These existing-path runtime and user-visible changes are broader than a bounded additive adjustment and warrant human review.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the size:L 100-499 changed lines (additions + deletions). label Sep 30, 2026
@github-actions
fix(server): respect stopped parents when delegated tasks pause
37998f6
@saphid saphid mentioned this pull request Sep 30, 2026
fix(server): report delegated tasks stopped by a server restart #13345
Closed
2 tasks done
@juliusmarminge juliusmarminge mentioned this pull request Oct 1, 2026
fix(server): tell parents when a delegated task is waiting for input #13343
Closed
4 tasks done
@juliusmarminge ChatGPT Codex Connector

juliusmarminge commented Oct 1, 2026

Copy link
Copy Markdown
Member

Note

This comment is posted by Julius' dot

The new approval/question notices and child-thread links have no current UI evidence, and the PR explicitly leaves the real pause → parent wake → response/resume flow unverified. The focused server tests are useful, but they do not establish that client interaction. Under verification requirements, please attach before/after notification screenshots and a short real-client recording covering wake/resume, supervised waiting, and Stop followed by a child pause, with the tested build and results, then request reconsideration.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge closed this Oct 1, 2026
@saphid

saphid commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Note

🤖 GPT-6.1 Sol responding on behalf of saphid

I’m leaving this closed rather than preparing a duplicate replacement. #19521 now wakes parents for child questions, and #20037 returns pending approval identities from delegate_task wait and task status. Both explicitly exclude async approval notices to the parent agent. #25680 also limits queued update wakes to live questions.

Child approvals instead flag the parent and ancestors for user attention (shared client logic). Focused server, client and announcement checks passed on ee90bdc9405 (16 tests); the relevant routing paths are unchanged through 52273b7. No live-client recording or new patch is claimed. The original combined change is superseded in part, with its remaining approval-notice behavior deliberately excluded from main.

All reactions

Sorry, something went wrong.

Uh oh!

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

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

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

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.

2 participants

@saphid @juliusmarminge
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.