HERMES-GIELIE/static
Hermes Agent d6b58b9ce0 fix: queue simultaneous approval requests per session (fixes #527)
Changes _pending from a single overwriting dict value to a list,
so parallel tool calls each get their own approval slot.

api/routes.py:
- Wraps submit_pending() to append to a list and assign a stable
  approval_id (uuid4) to each entry.
- _handle_approval_pending() returns the first queued entry plus
  pending_count so the UI can show '1 of N'.
- _handle_approval_respond() pops by approval_id (falls back to
  oldest entry for backward-compat with old clients).
- Backward-compat: legacy single-dict values in _pending are
  handled without crashing.

static/messages.js:
- respondApproval() sends approval_id in the POST body.
- showApprovalCard() accepts pendingCount, shows '1 of N pending'
  counter when multiple approvals are queued.
- _approvalCurrentId tracks the approval_id of the displayed card.
- Poll loop passes pending_count to showApprovalCard.

static/index.html:
- Adds approvalCounter element for the '1 of N' display.

tests/test_approval_queue.py:
- 14 tests: static-analysis checks (Python + JS + HTML),
  functional tests that inject two simultaneous approvals and
  verify both are surfaced and independently resolvable.
2026-04-15 19:16:14 +00:00
..
boot.js fix(themes): swap Prism syntax-highlighting theme on light/dark switch 2026-04-15 19:01:52 +00:00
commands.js feat: add System (auto) theme following OS prefers-color-scheme (#504) 2026-04-15 07:45:20 +00:00
i18n.js feat: add System (auto) theme following OS prefers-color-scheme (#504) 2026-04-15 07:45:20 +00:00
icons.js feat: composer-centric UI refresh + Hermes Control Center (v0.50.0, closes #242) 2026-04-12 11:55:40 -07:00
index.html fix: queue simultaneous approval requests per session (fixes #527) 2026-04-15 19:16:14 +00:00
login.js v0.44.0: approval fix, login CSP, update diagnostics, Lucide icons 2026-04-10 10:02:28 -07:00
messages.js fix: queue simultaneous approval requests per session (fixes #527) 2026-04-15 19:16:14 +00:00
onboarding.js login-module-patch: sync to v0.50.36-local.1 2026-04-14 17:54:06 +00:00
panels.js feat: add System (auto) theme following OS prefers-color-scheme (#504) 2026-04-15 07:45:20 +00:00
sessions.js fix: respect IME composition in Enter submit flows 2026-04-15 23:12:47 +08:00
style.css feat: harden clarify dialog flow and refresh recovery 2026-04-15 13:10:50 +08:00
ui.js fix: respect IME composition in Enter submit flows 2026-04-15 23:12:47 +08:00
workspace.js feat: KaTeX math rendering for LaTeX in chat + workspace previews (#352) 2026-04-13 11:40:15 -07:00