Skip to content

Bug: Permission request not found error when clicking Allow/Deny in permission dialog #30753

Closed as not planned

Description

@yale-Liyao

Bug: "Permission request not found" error when clicking Allow/Deny in permission dialog

When a permission confirmation dialog appears in the desktop app, clicking "Allow" or "Deny" frequently fails with:


请求失败
Permission request not found: per_e92ebc3b2001Ma11b4hfRCPSUi


This makes the permission system unusable for any action requiring user confirmation.

Plugins

oh-my-openagent@next (multi-agent orchestration plugin - Sisyphus, Atlas, Prometheus agents with subagent delegation)

OpenCode version

1.15.13 (desktop app)

Steps to reproduce

  1. Configure permission rules with "ask" actions (e.g., external_directory, bash)
  2. Use OpenCode until a permission request is triggered
  3. Permission dialog appears in the UI
  4. Click "Allow" or "Deny"
  5. 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:


ERROR 2026-06-04T14:04:42 service=llm providerID=kimi-for-coding modelID=k2p6
statusCode=403 responseBody={"error":{"type":"permission_error","message":"You've reached your usage limit..."}}


Expected behavior

Clicking Allow/Deny should resolve the permission request.

Workaround

Set "allow" for frequently-triggered permissions to reduce dialog frequency.

OS

Windows 11

Activity

  1. github-actions commented on Jun 4, 2026

    @github-actions
    Contributor

    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.

  2. yale-Liyao commented on Jun 4, 2026

    @yale-Liyao
    Author

    Duplicate of #29422. Closing in favor of the existing report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions