fix: pass UUID approval ID as string, not parseInt (closes #4) #18
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/approval-popup-uuid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause: When approval IDs were changed from sequential integers to
crypto.randomUUID()strings (security hardening), the popup'sindex.jsstill calledparseInt(approvalId, 10)on the URL parameter.parseInton a UUID like"a1b2c3d4-..."returnsNaN, so everypendingApprovals[NaN]lookup fails →sendResponse(null)→ popup closes immediately.Fix: One-line change — pass the approval ID as-is instead of parseInt-ing it.
make check: all 14 tests pass, lint clean, format clean.Code Review
LGTM — one-line fix, root cause is clear (UUID→parseInt=NaN).
make checkpasses.