dashboard: pending-device approve/decline are fire-and-forget — a failed verb looks like a broken button #299
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#299
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
dashboard/src/components/device-add/PendingDevicesSurface.vue:76,80—void props.source.approve(row.id)/void props.source.decline(row.id, …)on a state-changing verb. On rejection nothing renders, the row stayspending(the watcher re-reads unchanged state), and the operator concludes the button is broken and clicks again.Also
dashboard/src/components/device-add/DeviceAddSurface.vue:75-76—onMintunguarded; a failed mintCode leaves Add Device with no code and no explanation.Acceptance
void-discarded state-changing calls.Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).
Fixed in
b2e30f2(on origin/main).PendingDevicesSurface.vuedrove the pending card'sapprove/declineasvoid props.source.<verb>(…)andDeviceAddSurface.vue'sonMint(plusonRevoke) awaited the seam unguarded. Both surfaces now route every verb throughuseAsyncGuard: a rejection rendersOcErrorState(data-status="pending-device-error"/data-status="device-add-error") whose Try again re-runs the verb that failed — deliberately not a re-read, since re-reading unchanged pending state would still look like a dead button. A failed mint opens no code screen and leaves Add device in place beside the error; a failed revoke keeps the code screen with a retry.Test-first at the seam:
dashboard/tests/unit/deviceAddGuard.test.ts— one case per verb (approve/decline/mint/revoke): each rejects ⇒ honest error + retry, no false advance, then a retry re-runs the verb and lands. Full dashboard suite 951 green,vue-tscclean. STATUS.md header + milestone log updated in the same commit.Acceptance: approve/decline/mint failures render a retryable error with no
void-discarded state-changing calls ✓; Vitest per verb ✓.