Skip to content

fix(app): apply per-session bash 'ask' permission and withdraw orphaned permission requests after Stop - #4798

Merged
yomgui merged 25 commits into
devfrom
e2e/permission-ask-and-orphans-after-abort
Sep 11, 2026
Merged

yomgui merged 25 commits into
devfrom
e2e/permission-ask-and-orphans-after-abort

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

Makes test 2 of parent-child-permission-approval ("retry recovery and stopping a permission leave other requests and fresh work intact") green on Daytona; tests 1, 3, 4 stay green. Follow-up to #4786 (its "Noticed, not touched" section names both points fixed here). Cluster context: 2026-09-09 E2E triage — parent-child-permission-approval test 2 (listed under Cluster 1, but the line-137/138 failure is not the send gate).

Stacked on origin/e2e/child-checklist-after-stop (#4786, which carries #4723 and #4757) and on origin/e2e/workspace-permission-reload (#4747), both via merge commits; none of their files are modified here. #4747 is needed because a workspace created at its declared tmp path only exists in the server registry, and without its desktop-runtime-boot fix the spec's user.reload() would restart the embedded server/engine and drop every pending request.

Root cause

(a) spec line 137 — bash ran without asking although the world wrote permission: { bash: "ask" }. Not a product bug in permission handling: it is the ancestor-.opencode shadowing trap from #4747. splitPaneQuestions called seed.workspace() without create, so it adopted the first-launch default workspace, which the dev profile places inside the repo checkout on Daytona. A throwaway diagnostic spec run at 0914332ff showed:

  • GET /workspace/:id/permissions/effective → shell: allow, source: "engine", files.workspace = /workspace/.openwork-daytona/profiles/…/openwork-dev-data/home/OpenWork Chat/opencode.jsonc (not the /tmp/openwork-permission-stop-recovery-… path the world declared);
  • engine /config → permission: {"bash":"ask","*":"allow"} — the *: allow comes from /workspace/.opencode/opencode.json ("permission": "allow"), merged after the workspace file;
  • openwork agent ruleset → [* allow, bash ask, * allow]; last match wins, so bash was allowed and the tool part completed with no /permission entry.

In isolation (opencode serve 1.18.25, /tmp workspace with {"permission":{"bash":"ask"}}, OpenWork-style OPENCODE_CONFIG) the engine yields bash * ask for the same agent — so the engine and the app apply the rule; only the arrangement pointed at the wrong workspace.

(b) spec line 150 — after Stop, the aborted tool's permission stayed in /permission. Same OpenCode v1 engine gap #4786 fixed for question: tools run on detached fibers, so session/abort marks the tool part aborted but leaves Permission.ask pending; no event withdraws it. The spec prose ("Stop removes its cancelled approval without a permission reply") requires the app to withdraw it.

What changed

  • evals/worlds/chat.ts — splitPaneQuestions takes an opt-in createWorkspace; permissionStopRecovery creates its workspace at the declared tmp path (mirrors fix(server): make workspace permission changes reach the engine's effective permissions (composer-run-mode) #4747's emptySession fix). Opt-in so the four other splitPaneQuestions worlds keep their arrangement (see below). No assertion changed.
  • apps/app/src/app/lib/opencode-interruption.ts — fix(app): hide the child checklist when a stopped parent receives a follow-up #4786's post-idle withdrawal helper (now withdrawRequests) also lists pending permissions and rejects the ones owned by the stopped tree (root + interrupted descendants). Other roots are never touched; each kind is best-effort on its own so a failed question withdrawal does not skip permissions. Works through the shared Client on both engines (permission.list / permission.reply, the v2 adapter maps them per session).
  • apps/app/tests/opencode-session-native.test.ts — the tree-stop test now also serves a /permission list with a stopped-tree entry and an unrelated root's entry and asserts only the stopped one receives reply: "reject", after idle confirmation.

Proof

pnpm evals:e2e parent-child-permission-approval --daytona with OPENWORK_EVAL_REF=c2efbf936f24e557af5968783d89fcf0015fb2b8 exported (source verified in every sandbox: ==> source verified c2efbf936f…), fresh sandbox per surface, placement line:

{"command":"evals:e2e","lane":"e2e","daytona":true,"placement":"daytona","engine":"legacy","surface":"legacy","files":["parent-child-permission-approval"],"passed":4,"failed":0,"skipped":0,"skips":[],"verdict":"passed"}
Test Result at c2efbf936
1 — switching and creating threads hydrate permissions without waiting for unrelated roots passed (125 s)
3 — a parent task surfaces and resolves its child session permission request passed (141 s)
2 — retry recovery and stopping a permission leave other requests and fresh work intact passed (285 s) — all four steps, including line 137 see(printf OTHER_PERMISSION_WITNESS), line 143/144 both approvals pending, line 150 native interruption cleanup removes the pending permission, no final mock call for the stopped prompt, reload keeps the unrelated approval, and the follow-up completes once
4 — a parent answers and stops real child questions, then finishes fresh work without settling an unrelated root question passed (318 s)

Overall verdict for this spec file: Passed (4/4, 0 skipped).

Baseline on this branch before the fixes (0914332ff, #4786 stack only): the diagnostic run reproduced (a) as described above (sawPermission: false, tool part completed).

Unit: bun test --isolate tests/opencode-session-native.test.ts → 27 pass, 0 fail. pnpm --filter @openwork/app typecheck clean. All Daytona sandboxes from these runs were deleted.

Noticed, not touched

  • splitPaneQuestions consumers delegatedQuestionHandoff, restartUpdateTaskWorld (background-desktop-update), newSplitPrimary, sessionSubmitErrorIsolation still adopt the default in-repo workspace, so their policy blocks are shadowed by the repo's .opencode/opencode.json too. They happen to write policies the repo config already implies (question: allow, bash: allow), so their claims hold, but any future workspace-level ask/deny there will silently not apply. Flipping createWorkspace on for all of them is a one-line change once each spec is re-proven.
  • fix(server): make workspace permission changes reach the engine's effective permissions (composer-run-mode) #4747's "Noticed" item stands: permissions/effective attributes ancestor .opencode/opencode.json rules to engine, and a user whose workspace sits inside such a repo sees "Ask before actions" while the engine allows everything.
  • pnpm --dir evals typecheck reports 389 pre-existing errors unrelated to these files (Promise.withResolvers lib target, packages/email jsx, app import extensions).

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.
…immediately

A freshly created session had no cached snapshot, so deriveSessionRenderModel
reported "switching" while the first snapshot round trip ran and the composer
disabled Run task. On Daytona that window is ~0.9 s and a click or Enter inside
it was silently dropped with the draft intact. Seed the snapshot cache from the
create response (stale, so the real fetch still runs as a background refresh).
…ad of wedging

A prompt_async answered with 5xx/408 is an uncertain admission (#4635), but
the hold it created could never end: the acceptance check treated absence as
no evidence, Stop refused while the admission was unknown, and the failure body
was dropped, so the person saw a paused composer with no explanation.

- Keep the settled response body on PromptAdmissionUnknownError and show it as
  the session error card right away; the hold still prevents any resend.
- readPromptAdmission: after the exact-message GET misses, list the idle
  conversation; when native lists it without the message the POST is settled
  and did not admit, so the drain receives admission_rejected and halts like
  any definite failure (explicit retry only, never an automatic resend).
- On release the pending row is removed and the submitted composer is kept as
  an unsent message to restore; on confirmed acceptance the stale failure card
  is cleared.
Lexical keeps one empty paragraph in an empty editor, which innerText reports
as "\n". readComposerState now drops that trailing line break so draftText
matches what the person sees; user.see("composer", { text }) already trimmed.
…ssion button

The sidebar button was renamed from "New task" to "New session" in #4491
(Sep 5) and the "new" scenario added in #4631 (Sep 8) still targeted the old
label, so it could never find the button. Same user action, current label.
The emptySession world declared /tmp/openwork-empty-session-<ts> but
seed.workspace() adopted the existing first-launch default workspace
instead ("OpenWork Chat" under the dev profile home). On Daytona that
profile lives inside the repo checkout, so the engine merged
/workspace/.opencode/opencode.json ("permission": "allow") over the
workspace's own catch-all and composer-run-mode never saw the workspace
MCP rule take effect.
…ce is server-owned

Workspaces created from the app live only in the server registry, so a
renderer reload reaches startServerWithoutDesktopWorkspace and restarted
the embedded server (and its engine) although it was healthy and already
serving that workspace. Reuse it when it is ready with the preferred
remote-access mode; only restart when nothing usable is running.
…d 'origin/e2e/fresh-session-send-gate' into e2e/child-checklist-after-stop
… edge

An interrupted question tool leaves the engine's pending list through its
finalizer without a question.rejected event, so Stop on a delegated child
left its question (and option buttons) in the parent view. Reconcile
questions alongside permissions on terminal edges, for both engines.
OpenCode v1 runs tools on detached fibers: aborting a session marks the
question tool part as aborted but leaves its request in GET /question, so a
parent that stopped a delegated child kept showing the child's question and
its option buttons. After Stop confirms the tree idle, reject the pending
questions owned by the stopped sessions; other roots are left untouched.
…into e2e/permission-ask-and-orphans-after-abort

Stacks on #4786 (which itself carries #4723 and #4757) so test 2 of
parent-child-permission-approval is reachable. Their files are not modified here.
… into e2e/permission-ask-and-orphans-after-abort

Stacks on #4747: creating the world's declared tmp workspace needs its
desktop-runtime-boot fix so user.reload() reuses the running server instead
of restarting the engine (which would drop every pending request). Its files
are not modified here.
…lared tmp path

Test 2 of parent-child-permission-approval ran bash without asking although the
world wrote permission.bash="ask" to the workspace opencode.json. The world
called seed.workspace() without create, so it adopted the first-launch default
workspace under the dev profile, which on Daytona lives inside the repo
checkout; the engine merges /workspace/.opencode/opencode.json
("permission": "allow") after the workspace file and the agent ruleset ends
as [* allow, bash ask, * allow] (last match wins; permissions/effective reported
shell allow, source engine, workspace file .../home/OpenWork Chat/opencode.jsonc).

Same trap and same remedy as #4747 for emptySession; opt-in so the other
splitPaneQuestions worlds keep their arrangement.
…after Stop

OpenCode v1 runs tools on detached fibers: aborting a session marks the tool
part as aborted but leaves its Permission.ask pending in /permission, exactly
as #4786 found for questions. The stopped tree would keep showing Allow once /
Deny in every pane and after reload although nothing can consume the answer.

After stopForegroundTree confirms every stopped session idle, also list pending
permissions and reject the ones owned by the stopped tree; other roots are
never touched and each withdrawal kind is best-effort on its own.
@vercel

vercel Bot commented Sep 10, 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 11, 2026 3:16am UTC
openwork-den Ready Ready Preview Sep 11, 2026 3:16am UTC
2 Skipped Deployments
Project Deployment Actions Updated
openwork-diagnostics Ignored Ignored Preview Sep 11, 2026 3:16am UTC
openwork-landing Ignored Ignored Preview Sep 11, 2026 3:16am UTC

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 0912f4b5db02a8dc572c2e364d325a9a0e5a3ee4 · selected evidence

Open review report

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native 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 (29727 ms), confidentiality-review (18183 ms), spec-provenance-review (48175 ms), desktop-den-sync-review (42643 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 5
  • Distinct heads in retained window: 5
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 5/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 10, 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 (c2efbf936f24e557af5968783d89fcf0015fb2b8). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

…-orphans-after-abort

# Conflicts:
#	evals/worlds/chat.ts
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 10, 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 (8eb2d35be65556086ef9949e8d1f347e3c7980df). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui

yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Merged origin/dev — 8eb2d35be (SSH-signed, %G? = G)

dev moved and conflicted in evals/worlds/chat.ts on the splitPaneQuestions signature. Resolved with a merge commit (no rebase/amend/force-push), keeping both intents — the same resolution already applied on the stacked #4810 (b73422894), so the two branches now carry byte-identical splitPaneQuestions:

  • dev added a 5th parameter surface: AppSurface = "electron" plus the appWeb branch (workspacePath realpath'd for web, agentMock from either fixture). Kept verbatim.
  • this PR added options: { createWorkspace?: boolean } so permissionStopRecovery creates its workspace at the declared tmp path instead of adopting the in-repo default. Carried as a 6th parameter; the shared call is seed.workspace(app, workspacePath, options.createWorkspace ? { create: true } : {}) with the explanatory comment, and permissionStopRecovery passes "electron", { createWorkspace: true }. Other callers unchanged (defaults).

Checks after the merge: pnpm --dir evals run check:browser → 843 callbacks clean; tsc -p evals shows only the three pre-existing Promise.withResolvers lib-target errors in worlds/chat.ts (also on origin/dev); bun test --isolate tests/opencode-session-native.test.ts (this PR's app unit test, session-route.tsx auto-merged nearby) → 27 pass, 0 fail.

Proof at 8eb2d35be65556086ef9949e8d1f347e3c7980df — pnpm evals:e2e parent-child-permission-approval --daytona with OPENWORK_EVAL_REF exported (==> source verified 8eb2d35be6… in every sandbox), fresh sandbox per surface:

selection: engine=legacy surface=legacy case=all; placement: daytona (--daytona)
✓ switching and creating threads hydrate permissions without waiting for unrelated roots  124045ms
✓ a parent task surfaces and resolves its child session permission request  128929ms
✓ retry recovery and stopping a permission leave other requests and fresh work intact  303973ms
✓ a parent answers and stops real child questions, then finishes fresh work without settling an unrelated root question  289239ms
"passed":4,"failed":0,"skipped":0,"skips":[],"verdict":"passed"

All six sandboxes from the run were deleted by the runner. Verdict for this file: Passed (4/4, 0 skipped).

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0912f4b
Status: ✅  Deploy successful!
Preview URL: https://c739ac2b.openwork.pages.dev
Branch Preview URL: https://e2e-permission-ask-and-orpha.openwork.pages.dev

View logs

@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 (e68f9510a3e6742cfea6156e9b7a9810bd477d46). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 10, 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 (614ebb795e5c90567450886a81a13c8cdd28e3ae). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui

yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Resync onto dev after the #4757 / #4786 conflict resolution — and the #4747 revert

Merges (all SSH-signed G, pushed without force):

  1. origin/e2e/child-checklist-after-stop (fix(app): hide the child checklist when a stopped parent receives a follow-up #4786 @ 8763acc6d, AJ's resync carrying fix(app): keep a brand-new session sendable while its first snapshot loads #4757 4a2f43213 + dev) → df94b47ba. One textual conflict in apps/app/tests/opencode-session-native.test.ts (tree-stop test's allowed request URLs: this PR adds /permission, upstream adds /path?) — kept both.
  2. origin/e2e/fresh-session-send-gate → already up to date. origin/dev (e8bc90f9f) → e68f9510a.
  3. After Revert "fix(server): make workspace permission changes reach the engine's effective permissions (composer-run-mode)" (#4747) #4870 landed: origin/dev (858414c41) → 614ebb795 (current head).

#4747 product commit 561b5c03a (reuse the running OpenWork server when the selected workspace is server-owned) is gone from this branch. Dev reverted #4747 in #4870 because bisect showed it causes the active-session-workspace-storm regression (stale per-workspace provider config after a switch). This branch carried 561b5c03a via #4747's original commits; merging origin/dev with the revert inverted that hunk (git revert --no-edit 561b5c03a afterwards was a no-op: "nothing to commit"), and git diff origin/dev...HEAD -- apps/app/src/react-app/shell/desktop-runtime-boot.ts is empty. #4747's two evals-only commits (de6b73890, a740eb41b) remain. The product change is not re-added here.

Composition with #4837 (interrupt delegated work before immediate follow-ups): submitImmediateSessionTurn → interruptSessionTurn → stopForegroundTree → authoritative idle → withdrawRequests (questions and permissions of the stopped tree, each best-effort). #4837's foregroundDelegations refactor and this PR's helper touch disjoint parts of opencode-interruption.ts; the merged test.each([false, true]) tree-stop test asserts withdrawn = ["que_nested", "per_nested:reject"] for both the Stop and the immediate-follow-up path. bun test --isolate tests/opencode-session-native.test.ts → 42 pass / 0 fail; pnpm --filter @openwork/app typecheck → exit 0.

Proof at 614ebb795 (OPENWORK_EVAL_REF pinned, placement: daytona, source verified 614ebb795…)

pnpm evals:e2e parent-child-permission-approval --daytona → 3 passed / 1 failed / 0 skipped:

test result
1 switching and creating threads hydrate permissions… ✓ 122 s
3 a parent task surfaces and resolves its child session permission request ✓ 130 s
4 a parent answers and stops real child questions, then finishes fresh work… (delegated-question handoff + Stop, with #4837 present) ✓ 292 s
2 retry recovery and stopping a permission leave other requests and fresh work intact × — steps 1–2 ok; step 3 fails at line 160

Inside test 2, this PR's two claims still hold: line 137 (bash asked via the workspace's own permission: { bash: "ask" } — the createWorkspace fix) passed in step 2, and line 150 native interruption cleanup removes the pending permission passed in step 3 (Stop withdrew the aborted tool's permission without a permission reply; notSee("Allow once"), notSee(Stop) ok). The step then fails right after user.reload(): pending(world.other.sessionId) is [] instead of the unrelated approval — the reload restarted the embedded server/engine and dropped every pending request. That is precisely what 561b5c03a prevented (this PR's body: "without its desktop-runtime-boot fix the spec's user.reload() would restart the embedded server/engine and drop every pending request"). So the spec's reload-persistence claim depended on the reverted #4747 product change; with #4870 on dev it is unproven on dev too, not something this PR should re-add. Owner call: either the spec's reload step waits for the composer-run-mode replacement fix, or the claim is re-expressed.

Earlier run at e68f9510a (before the revert landed; 561b5c03a still present): 3/4 with test 2 passing steps 1–3 (including the post-reload check) and hanging in step 4 after open(world.other) — see("Allow once") never returned for 745 s, screen dump unavailable (renderer main thread unresponsive after switching to the conversation with the pending approval). Per the audit note: attribute to #4837 first (Stop/interrupt path in session-surface.tsx), then #4838/#4844/#4846 (history/scroll). Not reproduced at 614ebb795 because step 3 now fails before it; noting it so it is not lost.

pnpm evals:e2e task-activity-shimmer --daytona (delegated-task journey) at e68f9510a → died in world provisioning: launch remote app-web runtime … EACCES: permission denied, mkdir '/private'. taskActivityWeb (rewritten by #4812/#4867, proven --local only) passes the host's macOS seed.tmpPath(...) as the appWeb workspacePath, and startRemoteRuntime mkdirs it inside the Linux sandbox. Deterministic harness defect on dev for every appWeb world under Daytona placement (the APP-ISOLATION case in saved-app-creation has the same shape); not this PR's. Not re-run.

All Daytona sandboxes from these runs were deleted by the runner. The squash diff of this PR shrinks to its own three commits once #4786 → #4757 land.

@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 (0912f4b5db02a8dc572c2e364d325a9a0e5a3ee4). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui

yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Resync after #4786 squash-merged (a7f0a806f)

Merged origin/dev twice as dev kept moving: a7f0a806f → b52b011e2, then f6ab5f271 → 0912f4b5d (current head; both SSH-signed G, no rebase/force/stash).

Conflicts (2 files) — resolved by keeping this PR's hunks, since it is a superset of #4786's squash:

Verification — git diff origin/dev (f6ab5f271) is exactly this PR's own extension and nothing else:

apps/app/src/app/lib/opencode-interruption.ts  | 17 +++++++++++++----   (withdrawQuestions → withdrawRequests + permission withdrawal)
apps/app/tests/opencode-session-native.test.ts | 19 ++++++++++++++++++-  (the three test hunks above)
evals/worlds/chat.ts                           | 12 ++++++++++--      (createWorkspace opt-in for permissionStopRecovery)

apps/app/src/react-app/shell/desktop-runtime-boot.ts: no diff vs dev — the #4747 (561b5c03a) in-branch revert survived. pnpm --filter @openwork/app typecheck → exit 0; bun test --isolate tests/opencode-session-native.test.ts → 42 pass / 0 fail. PR is MERGEABLE.

Proof at 0912f4b5d

OPENWORK_EVAL_REF=0912f4b5db02a8dc572c2e364d325a9a0e5a3ee4 pnpm evals:e2e parent-child-permission-approval --daytona (placement: daytona, source verified 0912f4b5d… in all four sandboxes, all deleted by the runner) → 2 passed / 2 failed / 0 skipped:

test result
1 switching and creating threads hydrate permissions… ✓ 137 s
3 a parent task surfaces and resolves its child session permission request ✓ 131 s
2 retry recovery and stopping a permission… × — same as at 614ebb795: steps 1–2 ok, line 137 (bash asked) and line 150 (Stop withdraws the aborted tool's permission without a reply) pass; fails right after user.reload() because the reload restarts the embedded engine and drops the unrelated pending approval — the claim that depended on the reverted #4747 product commit. Not re-added.
4 a parent answers and stops real child questions… × new since 614ebb795 (where it passed 7/7 steps): step 3 "reloading the parent restores the same unanswered requests" — after reload() the child row shows Choose delegated task format · General agent — Waiting for task result but never its question (Which format should the child task use?, 45 s). This is before any Stop, so this PR's helper is not on the path.

Attribution for test 4: the only product changes between 858414c41 (green) and f6ab5f271 (red) are #4875 (revert of #4858 — removes the visible-session-refs / owner-checked release logic in session-sync.ts and deletes session-sync-permissions.test.ts), #4633 (message-list.tsx "Starting…" status), #4862 (mcp-app-frame.tsx), #4638 (model settings). Attribute to #4875 first, then #4633. Test 4 exists on dev itself (#4579), so a clean control at f6ab5f271 will settle it; not run here (another ~25 min sandbox cycle) — flagging instead.

This branch was successfully deployed

4 active (2 outdated) deployments
Preview – openwork-app — 0912f4b5 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-den — 0912f4b5 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-landing — e68f9510 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — e68f9510 Deployed Sep 10, 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