Repository navigation
fix(app): surface delegated questions in the parent conversation - #4579
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Test evidence — a-parent-answers-its-real-child-question-without-settling-an-unrelated-root-ques — ✅ passedSHA c6fe518 · engine v2 ✅ 0/2 screenshots passed · 0 expectations passed · 0 failed · 0 pending
[world] desktop(daytona) · workspace(/tmp/openwork-workspace-spec-1788724673439) · session("New task") · [seed:raw] evalIn() · mock(mcp) · den(daytona) · desktop(as admin) · workspace(/tmp/openwork-delegated-question-handoff-1788724922294) · [seed:raw] evalIn() ×4 · session("Delegated question parent") · session("Unrelated question root") ⚪ UNVALIDATED — 1. a-parent-answers-its-real-child-question-without-settling-an-unrelated-root-ques artifact 1
⚪ UNVALIDATED — 2. a-parent-answers-its-real-child-question-without-settling-an-unrelated-root-ques artifact 2
Test run created 2026-09-06T19:56:07.967Z · Source: Test evidence — a-parent-task-surfaces-and-resolves-its-child-session-permission-request — ✅ passedSHA c6fe518 · engine v2 ✅ 0/1 screenshots passed · 0 expectations passed · 0 failed · 0 pending
[world] desktop(daytona) · workspace(/tmp/openwork-workspace-spec-1788724512974) · session("New task") · [seed:raw] evalIn() ⚪ UNVALIDATED — 1. a-parent-task-surfaces-and-resolves-its-child-session-permission-request artifact 1
Test run created 2026-09-06T19:53:31.913Z · Source: |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (c6fe518c14a069e0f704cece3a48903b243c60e7). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Summary
Restore the ability to answer a delegated session's question from its parent conversation, so the child and the waiting parent can continue.
What regressed
The working cross-session question handoff was introduced in #705. The React cutover in #1470 removed that store path. #1867 restored inline questions but subscribed only to the selected session's question cache. The descendant aggregation later restored for permissions in #4270 never reached questions.
There was a separate recent v2 transport omission in #4388: question listing was empty and native form events/replies were not bridged. #4550 fixed that transport path, but left the parent-only selector intact. A native child form could therefore be pending while the parent displayed no answer control. The parent waits for its child; the child waits for the unseen answer.
These findings are from source/history review and an isolated real-engine journey, not an inspection of any particular user's private session.
Verification — Incomplete overall; targeted v2 handoff Passed
Head:
c6fe518c14a069e0f704cece3a48903b243c60e7Base:
89933074f80ad68fbe3f0fad725ab1f9ff5f19a4Passed on the final head:
OPENWORK_EVAL_REF=c6fe518c14a069e0f704cece3a48903b243c60e7 OPENWORK_EVAL_ENGINE=v2 pnpm evals:e2e parent-child-permission-approval— exit 0; 2 passed, 0 failed, 0 skipped.placement: daytona (daytona CLI authenticated). Fresh desktop and Den resources checked out the exact head and were deleted after the run.bun test --isolate apps/app/tests/session-sync-permissions.test.ts— exit 0; 19 passed, 0 failed. Covers early child events, owner isolation, rejection, stale snapshots, and waiting-state preservation.pnpm --filter @openwork/app typecheck— exit 0.git diff --check origin/dev...HEAD— passed.Earlier attempts were repaired in the same Daytona lane: local collection first needed the existing world-package dependency links; the new test then needed sidebar navigation instead of a composer-readiness-gated control call, and a visible-title locator for restored session rows. Final runtime assertions pass without weakening question ownership or completion checks.
Incomplete tooling checks: the full
pnpm --dir evals run typecheckreturned missing dependency/build declarations and errors outside the edited files in the initially partial install. The repository-wide channel ratchet also reported failures in other specs; the chained boundary check consequently did not run. Neither broad check is claimed green or classified as pre-existing without a clean control. They were not expanded into unrelated repairs.Deferred: v1 runtime matrix, secondary-pane descendant discovery (especially cross-workspace), and stream-disconnect recovery. This PR fixes main-thread handoff; it does not change child-card presentation/navigation, engine permissions, or expose a new reject control. No merge, release, or deployment is included.