HERMES-GIELIE/static
nesquena-hermes 74cee77738 fix(approval): stale local approval card clears instead of dead-ending (#4948 local variant, #4771 follow-up)
On the default local in-process backend, an approval card whose stream
ended while still pending (cancel/fork/provider-error/completion) left the
agent queue entry dropped and the _pending mirror reconciled away. Clicking
Approve/Deny then sent an approval_id that matched nothing, so the handler
returned a bare {ok:false}; since #4771 the frontend surfaces that as
'Approval response not accepted.' with a stuck card (reported by
@santastabber on v0.51.666 and b3nw).

Distinguish a genuinely stale card (no pending approval for the session ->
benign {ok:true, stale_cleared:true} so the UI clears the orphan) from a
stale-id click made while a DIFFERENT approval is live (still ok:false so it
can never resolve the wrong command -- #527 guard preserved). Frontend
clears the orphan card on stale_cleared even if the displayed id drifted.

Co-authored-by: b3nw <b3nw@users.noreply.github.com>
2026-06-26 06:46:22 +00:00
..
vendor
apple-touch-icon.png
assistant_turn_anchors.js
boot.js
commands.js
favicon-32.png
favicon-192.png
favicon-512.png
favicon-512.svg
favicon.ico
favicon.svg
i18n.js i18n(#4543): add service_tier keys to the vi locale (added to master after this PR; strict locale parity) 2026-06-26 01:51:59 +00:00
icons.js
index.html
login.js
manifest.json
messages.js fix(approval): stale local approval card clears instead of dead-ending (#4948 local variant, #4771 follow-up) 2026-06-26 06:46:22 +00:00
onboarding.js
outline.js
panels.js fix(#4536): reject openai-codex provider before empty-model early return 2026-06-26 01:46:57 +00:00
pwa-startup.js
sessions.js fix(#4927): persist loaded session.tool_calls so the cold-load fallback has a source 2026-06-25 19:29:06 +00:00
style.css fix(#4784): show the reload button outside standalone mode 2026-06-25 20:41:46 +00:00
sw.js
terminal.js
ui.js fix(#4932): wire ordered transparent path to #4927 durable snippet fallback + gate scans to transparent mode 2026-06-25 21:21:28 +00:00
workspace.js