Skip to content

Surface child permission requests in parent tasks - #4270

Merged
reachjalil merged 2 commits into
devfrom
feature/parent-task-permission-requests
Sep 2, 2026
Merged

reachjalil merged 2 commits into
devfrom
feature/parent-task-permission-requests

Conversation

@reachjalil

Copy link
Copy Markdown
Member

Summary

  • aggregate pending permission requests from the selected task and all known descendant tasks
  • show a blocked delegated task with a shield, a clear permission state, and the requesting task name in the parent approval panel
  • route deny, allow-once, and allow-for-session responses to the originating child session and reconcile the parent and child caches

Why

A delegated task could stop for permission while its parent continued to look busy. Resolving the request required finding and opening the child task. The parent now exposes that blocked state and lets the user make the permission decision in context.

Testing

  • corepack pnpm --dir apps/app exec bun test --isolate tests/session-sync-permissions.test.ts tests/session-sidebar-utils.test.ts tests/permission-approval-modal.test.ts tests/subagent-run-line.test.tsx — 30 passed, 0 failed
  • corepack pnpm --dir apps/app typecheck — passed
  • corepack pnpm evals:e2e parent-child-permission-approval --daytona — 1 passed, 0 failed, 0 skipped on the PR head
  • git diff --check — passed

Exact-head testkit evidence is published in the PR verification comment.

@vercel

vercel Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 2, 2026 2:05am UTC
openwork-den Ready Ready Preview Sep 2, 2026 2:05am UTC
openwork-diagnostics Ready Ready Preview Sep 2, 2026 2:05am UTC
openwork-landing Ready Ready Preview, v0 Sep 2, 2026 2:05am UTC

@reachjalil

Copy link
Copy Markdown
Member Author

Test evidence — a-parent-task-surfaces-and-resolves-its-child-session-permission-request — 0/1 screenshots passed · 3 assertions

⚪ 0/1 screenshots passed · 3 assertions · 3 expectations passed · 0 failed · 0 pending

screenshots not uploaded (no BLOB_READ_WRITE_TOKEN)

ℹ️ ASSERTION — 1. The parent identifies the blocked child without making the user open its session

The delegated-task row showed a shield and “Build isolated Azure repro · Executor Deep agent Needs permission”, while the parent approval panel named “Requested by Investigate the deployment failure”.

  • ✅ PASS The parent identifies the blocked child without making the user open its session — The delegated-task row showed a shield and “Build isolated Azure repro · Executor Deep agent Needs permission”, while the parent approval panel named “Requested by Investigate the deployment failure”.

ℹ️ ASSERTION — 2. The parent exposes the child request and all decision controls

The approval panel showed the requested shell scope with Deny, Allow once, and Allow for session enabled.

  • ✅ PASS The parent exposes the child request and all decision controls — The approval panel showed the requested shell scope with Deny, Allow once, and Allow for session enabled.

ℹ️ ASSERTION — 3. Approving from the parent clears the child's blocked state

After Allow once, the parent approval panel and child shield both disappeared, and the same child row returned to its running treatment.

  • ✅ PASS Approving from the parent clears the child's blocked state — After Allow once, the parent approval panel and child shield both disappeared, and the same child row returned to its running treatment.

⚪ UNVALIDATED — 4. a-parent-task-surfaces-and-resolves-its-child-session-permission-request artifact 3

  • ⚪ UNVALIDATED — no visual expectations recorded.

Test run created 2026-09-01T05:02:28.193Z · Source: evals/results/test-runs/2026-09-01T05-02-28-193Z-a-parent-task-surfaces-and-resolves-its-child-session-permission-request/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4270 --test-run 2026-09-01T05-02-28-193Z-a-parent-task-surfaces-and-resolves-its-child-session-permission-request

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 1, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (5b48102e0e4139da0d0412757961bd4c43a7b67b). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (1d1f7cf5a98418df86e924e1b1a897016df8487e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@reachjalil
reachjalil merged commit bfc4b83 into dev Sep 2, 2026
24 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 1d1f7cf5 Deployed Sep 2, 2026 by vercel[bot]
Preview – openwork-den — 1d1f7cf5 Deployed Sep 2, 2026 by vercel[bot]
Preview – openwork-app — 1d1f7cf5 Deployed Sep 2, 2026 by vercel[bot]
Preview – openwork-diagnostics — 1d1f7cf5 Deployed Sep 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant