permission: a cancelled explicit-consent prompt journals as denied instead of a no-decision outcome
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, typescript
Research direction
Read packages/server/src/permission-manager.js, packages/protocol/src/permission-outcomes.ts, and the guard at packages/server/tests/permission-reason-table-guard.test.js. Trace how cancelled is handled by permissionOutcomeForEvent and applyPermissionResolved, then decide whether it should map to expired or remain a deliberate refusal. Update the shared table and remove it from KNOWN_UNTABLED; done when the server journal and live client agree.
Written by the indexing model from the issue text.
Description
Summary
requestExplicitConsent in packages/server/src/permission-manager.js resolves an aborted consent prompt with finish(false, 'cancelled'). That emits permission_resolved with a requestId, decision: 'deny' and reason: 'cancelled'. cancelled is not a key of the shared no-decision table PERMISSION_NO_DECISION_REASON_OUTCOMES (packages/protocol/src/permission-outcomes.ts). So the server journal (permissionOutcomeForEvent) records the prompt as denied, and the live client (applyPermissionResolved) shows it as denied. Nobody refused it: the prompt was withdrawn because its abort signal fired. An aborted ordinary prompt (aborted) is recorded as expired.
Found while writing the #9368 guard, which lists cancelled as a known untabled reason until this is decided.
Desired
Decide what a cancelled consent prompt records, then make both sides agree through the table:
- add
cancelledto the table (most likelyexpired, matchingaborted), or - rule it a refusal deliberately, and document why.
Either way, remove cancelled from the guard's KNOWN_UNTABLED list in the same change.
Source
#9368 implementation (guard packages/server/tests/permission-reason-table-guard.test.js).
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 333
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from blamechris/chroxy
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day
-
priority: low server
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9340 ·
Maintainers usually reply within 1 day
-
documentation from-review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
blamechris/chroxy#9237 ·
Maintainers usually reply within 1 day
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeOpenenhancement from-review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
blamechris/chroxy#9227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9108 ·
Maintainers usually reply within 1 day
All issues in blamechris/chroxy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
Documentation pleaseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area/host bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Fei2411/DeepSeek-Bot#3190 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days