Repository navigation
fix(app): show the Working treatment for a freshly delegated child task - #4723
Conversation
The eval.task_activity.seed hook rendered an in-flight child under a parent whose thread status stayed "ready": it only marked the activity store busy. Since #4635 MessageList reads that as a stopped parent and the unobserved child shows "Waiting for task result" instead of the Working shimmer, so task-activity-shimmer and parent-child-permission-approval lost their [data-subagent-activity="shimmer"] row. A delegating parent is mid-run; mark the eval thread streaming like the chat-loading seed already does.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (21 ms), confidentiality-review (75 ms), desktop-den-sync-review (78 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (14ad97df531626c709e85e5cf48080fe0d9f4f24). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 3/3 tests · 4/4 assertions · 2 images Commit |
Root cause
Triage:
reports/e2e-red-2026-09-09/triage.md→ Cluster 2 — Delegated-task activity rows (Brief C).task-activity-shimmerandparent-child-permission-approval("a parent task surfaces and resolves its child session permission request") both look for[data-subagent-activity="shimmer"]on the seeded in-flight child. Since #4635 (fc8c9852b)subagentRunActivityreturnswaiting-resultwhen the parent thread is not running and the child has no observed run (resultPending = … || (!parentActive && !child?.runActive)); #4642 (1396c591f) then started feeding the in-transcript row the realparentActivefromMessageList'srunActive(status === "submitted" | "streaming" | "retrying").The dev-only
eval.task_activity.seedhook only marked the activity store busy; theThreadStatusthatMessageListreads comes from the status query and stayed"ready". So the seed rendered "a delegated child under a parent that has stopped", and the product — correctly, and as unit-tested inmessage-list-loading.test.tsx("does not claim an unobserved child is running after its parent stops") — showed "Waiting for task result" instead of the Working shimmer.Decision: the product state is intentional and right — a live delegating parent is mid-run, so a freshly delegated child with no progress yet does get the
shimmer/ "Working" treatment in real use. The seed was misrepresenting the scenario. Neither spec's claim nor prose changes.What changed
apps/app/src/react-app/domains/session/surface/session-surface.tsx—eval.task_activity.seednow also callssetEvalThreadStatus("streaming"), exactly like the neighbouringeval.chat_loading.seedalready does. 4 lines, dev-only eval seam (import.meta.env.DEV), no production path touched.Proof (Daytona, sandbox
source verified 14ad97df531626c709e85e5cf48080fe0d9f4f24)The two remaining failures in that file are byte-identical to the
devbaseline (e2e-dev-baseline-61b41901c.log: same messages, same spec lines 138 and 354) and are out of this cluster's scope:Unit control:
apps/apppnpm typecheckclean;bun test tests/subagent-run-line.test.tsx5/5.tests/message-list-loading.test.tsxfails 10/16 with "Platform context is missing" both here and on a cleanorigin/dev@c744e2d7bcontrol worktree — pre-existing, untouched.Verdict for this cluster: Passed (both target tests green at
14ad97df5, 0 skips). All Daytona sandboxes from these runs were deleted.Noticed, not touched
subagent-run-line.tsxedits in the main worktree (row → details toggle, separate "Open sub-agent chat" arrow button) are orthogonal to this fix; they change layout, notsubagentRunActivity, so they will not reintroduce this red. They were read, not modified.parent-child-permission-approvaltest 4 failure above (not in the triage's clusters).message-list-loading.test.tsx"Platform context is missing" pre-existing unit red ondev.