anomalyco / anomalyco/opencode

Duplicate permission prompts in the same second are not deduplicated

Open
#41,849 1 comment 0 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Aug 11, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Summary

Identical permission prompts arriving within the same second are not deduplicated. Each one blocks independently, multiplying the stall time.

Evidence

  • 141 groups of duplicate prompts in the same second
  • Worst case: 5 identical prompts in a row
  • Example: two external_directory prompts for the same path at 19:18:29, within 0.5 seconds of each other
  • This doubles the wait time — answer one prompt, another identical one is still blocking
  • 48.9% of all 3270 prompts are repeats across sessions (persistence bug); within single session, duplicates add extra overhead

Expected behavior

If a permission prompt is already pending for an identical (action, resource, session) combination, skip or merge the duplicate.

Version: 1.18.16, Electron 42.3.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.