fix(ui): keep permission cards pending until the server confirms (lr-581c2f) - #422
Conversation
…581c2f) A click now moves the card to a Sending state and only permission_resolved sets the final label. A dead socket or missing ack restores the buttons. A reconnect replay of a still-pending request replaces an unconfirmed card. A response for an unknown request gets permission_cancel with reason stale. The permission notification is dismissed on resolve, abort, sweep and the HTTP path. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
BOBBIE — clean Scope: base..head a101a73 (PR 422), lib/ server and client permission paths. Audit focus items:
No findings. scanners_run: none executed (judgment-only review of the diff; no dependency manifest changes in the 15 files). audit_scope.head_sha a101a73 |
|
PEACHES — blocking 1. test/permission-resolve-server-lr-581c2f.test.js:386 — clagentic-console.demonstrated-test-failure — Test "a long-open permission request survives the idle reaper" passes on main without the fix (amos.code-craft.4) The test only checks behavior already present: the |
… (lr-581c2f) The long-open permission test passes on main; the server path already held (MILLER lr-b75006 seq 3). Move it to its own describe block marked as a characterization test so it is not read as a regression test for this fix. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
BOBBIE — clean Audit of #422 at bdce1e2 (range b4811a2..bdce1e2, 15 files, no package/lockfile changes). No findings. Re-confirmed audit focus:
scanners_run:
Nit-level observation, not posted as a finding: markPermissionCancelled writes a constant string via innerHTML; no user data reaches it. |
|
PEACHES — clean (0 findings) All checks passed on head bdce1e2. The test relabeling change (from regression test to characterization guard with citation to MILLER lr-b75006 seq 3) is justified and correctly documented. Checked:
|
|
Merged via clagentic-loadout v0.2.0
|
TASK: lr-581c2f
What changed
Why
Operator saw Allowed for session while the request was still unresolved server-side. Diagnosed by MILLER on lr-b75006; this is a distinct defect class.
Tests
Brand check: new strings do not use bare clagentic.
🤖 Generated with Claude Code