anomalyco / anomalyco/opencode
Duplicate permission prompts in the same second are not deduplicated
Open
@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_directoryprompts 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.