GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(client-runtime): delegated questions stay with their working parent by juliusmarminge · Pull Request #24768 · pingdotgg/t3code Conversation
|
| Before | After | Diff, contrast ×4 | Diff, per-channel >24 |
|---|---|---|---|
| c79ef8c454 | fa25715dd2 | Base → head | Base → head |
Same interaction: parent delegates an async A/B question, continues working, then answers through T3; open the child to inspect its pending card. Before recording · After recording. Blocking fallback/resume and idle wake controls.
Independent proof audit: sufficient for the core web/Codex bug; incomplete for the full matrix. It reproduces the per-channel threshold diffs and distinguishes persisted events from 100ms shell samples; timestamps in the capture report described as completion can be sampled receipt times. No independent rebuilt capture was produced.
Other visible differences are synthetic transcript/title, elapsed time, branch/diff counts, sidebar population and selection/scroll. These are live runtime captures rather than pixel-identical visual regression fixtures; no “nothing else changed” claim is made.
Unverified: native mobile (EAS artifact downloads returned HTTP 403); Electron shared-server behavior (real desktop launched, keyring blocked pairing); OS notification/badge/audio delivery; retained secret-card navigation; attention-driven snooze early wake/expiry. Narrow dark web was checked and is not native evidence. Older-server fallback is covered by state tests, not an actual old-server session. Other providers, relay/tunnel and multidevice were not exercised.
Models and harnesses: Claude Opus 5.5 through Claude Agent wrote the tests and fix; GPT-6.1-Sol through Codex led triage, evidence and proof audit; both models reviewed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A delegated child's question showed Input on its parent and the "Subagent needs input" banner while the parent agent was still running and could answer it. Ordinary questions now reach a person only once the direct parent is neither running nor queued; a waiting parent has ended its turn, so its child's blocking question escalates. Async questions from a still-working child stay quiet as on the child's own row. Approvals and secret requests always escalate: shell summaries gain an optional `secret` marker, and unmarked questions from older servers escalate as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused client-runtime bug fix that prevents ordinary delegated questions from incorrectly interrupting a parent agent that can still answer them, while preserving escalation for approvals, secrets, legacy data, and stopped parents. The protocol addition is optional and backward-compatible, with targeted tests covering the changed states. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Pending request summary metadata packages/contracts/src/orchestrationV2.ts, apps/server/src/orchestration-v2/ProjectionStore.ts, apps/server/src/orchestration-v2/ProjectionStore.test.ts |
The summary contract adds an optional secret field. The projection marks runtime requests as non-secret and secret-request summaries as secret. Tests assert both values. |
Parent-aware subagent request filtering packages/client-runtime/src/state/threadShell.ts, packages/client-runtime/src/state/threadShell.test.ts |
Subagent request filtering uses request kind, child activity, and parent state. Tests cover parent states, approval requests, and secret questions. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: t3dotgg, yash-singh1
fa257The change appears ready to merge after normal checks; no actionable merge-blocking risk is established.
Explanation
The title names the client-runtime scope and the behavior fixed: delegated questions remain with their working parent. It matches the threadShell.ts change and the objectives, which describe ordinary delegated questions staying with a running or queued parent turn. It is specific and follows the conventional commit form the template asks for, so it passes.
Explanation
The description follows the template sections: Problem, Change, Scope and approval, and Verification. The Problem section gives the reported defect and the expected behavior. The Change section explains the attention rules and the secret marker. The Scope section links issue #24096 and states it is a triaged bug. The Verification section gives a red test on main, passing test counts, typecheck and lint results, and real web app checks. It also lists unverified areas, including native mobile, Electron, and OS notifications, which the author states openly. Some items are thin. The Verification section relies on external links, and the Change section does not name the changed files. Those gaps do not make the description largely incomplete, so it passes.
Explanation
Directly linked issue #24096 has these coding requirements. (1) Do not flag a parent while its queued or running turn handles a delegated question. (2) Flag the parent again when that turn ends and the question is still pending. (3) Do not flag a still-working parent for nonblocking async questions. (4) Keep the conservative escalation when the server does not mark a question as non-secret.
The reviewed head meets these requirements in packages/client-runtime/src/state/threadShell.ts. subagentRequest now receives the thread index. It returns null for a nonblocking user_input request while the child agent turn is working (isAgentTurnWorking). For a user_input request with secret === false, it returns null while the immediate parent is queued or working. Otherwise it returns "user_input". Parent flags are derived from live thread state, so the flag returns when the parent turn ends. Older servers omit secret, so their blocking requests still escalate. Approvals still return "approval". Auth-refresh and null requests are ignored, as before.
apps/server/src/orchestration-v2/ProjectionStore.ts sets secret: false for runtime-request summaries and secret: true for waiting secret-request items. This gives the client the marker it needs. packages/contracts/src/orchestrationV2.ts adds the optional secret field. threadShell.test.ts adds a parameterized test for blocking and nonblocking cases across parent states, plus approval and secret cases. ProjectionStore.test.ts expects the new field values.
I did not inspect the test bodies. I did not re-run the tests. The runtime verification in the PR description is author-reported and was not independently confirmed here.
Explanation
The five changed files each support the #24096 objective. threadShell.ts holds the attention-derivation change. ProjectionStore.ts sets the new secret marker on summaries. orchestrationV2.ts adds the optional secret field to the summary contract. threadShell.test.ts and ProjectionStore.test.ts cover the new behavior. The diff adds no unrelated logic. The PR description's evidence images, recordings, and reproduction notes are not code changes. They are not counted as out-of-scope changes.
Comment @coderabbitai help to get the list of available commands.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note 🤖 Claude Opus 5.5 responding on behalf of Theo Closing: this is covered by #26367, which landed. Reopen if a needed part is still missing. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Parent thread shows "Awaiting Input" for delegated-task questions that the parent agent is answering
There was an error while loading. Please reload this page.