You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Permission request not found error when clicking Allow/Deny in permission dialog #30753
Configure permission rules with "ask" actions (e.g., external_directory, bash)
Use OpenCode until a permission request is triggered
Permission dialog appears in the UI
Click "Allow" or "Deny"
Error: "Permission request not found: per_xxxxx" appears
This happens frequently especially when:
oh-my-openagent spawns multiple parallel agent sessions via task tool
API latency is high or rate-limited
User doesn't click the dialog immediately
Root cause
From examining app.asar, the permission request lifecycle uses an in-memory RcMap with setTimeout-based TTL cleanup. The error fires at two locations when the requestID lookup fails. The pending request is likely being cleaned up (by TTL, session switch, or API error cascade) before the user can respond to the dialog.
Relevant log entries showing API errors occurring concurrently:
If your case is specifically triggered by parallel multi-agent sessions (via the Task tool / oh-my-openagent) causing requests to expire before you can click, that context would be a valuable addition to #29422 rather than a separate issue.
Activity
github-actions commentedon Jun 4, 2026
This issue might be a duplicate of existing issues. Please check:
If your case is specifically triggered by parallel multi-agent sessions (via the Task tool / oh-my-openagent) causing requests to expire before you can click, that context would be a valuable addition to #29422 rather than a separate issue.
yale-Liyao commentedon Jun 4, 2026
Duplicate of #29422. Closing in favor of the existing report.