Repository navigation
Closed
Description
Short summary:
Pi pane running @tian.zuo/pi-devin-acp sticks on "Needs input" after an inner Devin PermissionRequest that was already approved via ACP. Pi keeps showing Working... + devin: N running while Orca shows needs-input for the rest of the turn.
What happened?
- Pi outer turn calls the
devinwrapper tool and stays in-flight for minutes (screenshot:devin: 2 running — Ran pwd, ls — execute · exec · 4m33s · /devin-tasks to view). - Inner
devin acpemits a DevinPermissionRequestforexec:ls -la /data/projects/appscraper ...(the same exec visible as Pi'sdevin Ran ls, echocard, so it did run). ~/.config/orca/agent-hooks/last-status.jsonfor.../clued/stock-images(paneb8dcbad7…:75564501…) is:
source: "devin", hookEventName: "PermissionRequest", payload.state: "waiting", toolName: "exec",receivedAt~9 min old (inside the 30 min freshness window).normalizeDevinEvent(src/shared/agent-hook-listener/providers/devin-events.ts) mapsPermissionRequest → waiting, andresolveWorktreeStatus(src/renderer/src/lib/worktree-status.ts) promotes that topermission/ Needs input. No later DevinPreToolUse/PostToolUse → workingoverwrote it, and Pi emits no new Pi event while blocked inside the singledevinwrapper tool call, so Orca stayswaitingwhile Pi works.- No Pi select modal was open in the screenshot:
pi-devin-acp(0.3.5) resolves ACPsession/request_permissioninternally viactx.ui.selector yolo auto-allow (lib/permission.ts). Orca only observes hooks, never the ACP resolution.
How can we reproduce it?
- In an Orca Pi pane, install
@tian.zuo/[email protected]and select adevin/*model (e.g.devin/swe-2:max). - Run a turn where Devin needs an
execapproval (default modeaccept-edits, yolo off). Approve it in Pi (or let yolo/bypass approve it) so Devin keeps running long ops. - Observe: Pi shows
Working...+devin: N running; Orca sidebar/worktree dot for that pane shows Needs input until the turn ends or the 30 minAGENT_STATUS_STALE_AFTER_MS(src/shared/agent-status-freshness.ts) expires.
Why it happens (suspected):
pi-devin-acpspawns with{ ...process.env, ...options.env }(lib/acp-client.ts), so innerdevin acpinheritsORCA_PANE_KEY / ORCA_TAB_ID / ORCA_AGENT_HOOK_*from the Pi PTY. Devin's managed hooks (src/main/devin/hook-settings.ts: DEVIN_EVENTSincludesPermissionRequest, PreToolUse, PostToolUse) then report to/hook/devinunder the samepaneKeyas Pi's/hook/pi— last-write-wins per pane, no inner/outer reconciliation.
Anything else that might help:
- Related but not duplicates:
#21051closed by#21389(Codex auto-reviewedPermissionRequest→ false Needs You; Codex-specificapprovals_reviewermechanism),#11644open (Claude sticky wait after approval, parallel-batch pairing),#10039open (multiple inner agents overwrite same outer pane status, OpenCode/tmux),#19722open (Pi/Grok descendants),#15078open (heal stuck wait after deny). - Possible directions (not doing the PR ourselves): (a) when a pane is Pi-owned, ignore/demote
/hook/devin PermissionRequestto a subagent child row instead of leadwaiting(cf. Claude child roster); (b) upstream scrubORCA_*from thedevin acpchild env inpi-extensions(acp-client.ts), mirroringORCA_PI_STATUS_OWNEDnested-Pi suppression. (a) is Orca-side and matches the#21389precedent of only turning false-Needs-You into Working on positive evidence. - Workaround for now:
/devin mode bypassor/devin yolo on(server-side bypass skipsrequest_permission, so no hook fires). TianZuo555/pi-extensionshas no existing issue for this (only open issue is#83, no PRs).- Reporter context: investigated from a live stuck pane; happy to provide more hook payloads on request, but we will not be opening the fix PR ourselves for now.
Reacted by Qcho
Metadata
Metadata
Assignees
Labels
No labels
Activity
AmethystLiang commentedon Sep 22, 2026
thanks for reporting. looking into it
nwparker commentedon Sep 25, 2026
@mmarabel I don't have a Devin account but if you make a PR, I can merge it!
mmarabel commentedon Sep 25, 2026
@nwparker, on it!
nwparker commentedon Oct 25, 2026
Fixed on current main by #29264: hooks from a nested Devin running under a Pi pane are suppressed while Pi is active, so the pane no longer gets pinned to "Needs input". Verified through the real hook-server path. Please reopen if you still see it on the latest build.