aa: show admin state in HUD, load session history on resume
- Bridge: GET /api/history — reads the session's Claude JSONL
transcript (gated by same bearer+ADMIN_SUB check as every other
endpoint) and returns raw user/assistant events. sessionId is
UUID-validated before path composition to block traversal.
- aa.mjs: HUD label reflects auth state visually —
lime admin, fresh or resumed session
red ✗ not admin (403)
yellow ? no token / 401
yellow ! bridge unreachable / other non-2xx
Server still enforces on every call; this is a UX cue only.
Submit is guarded by (isAdmin && token) and state is cleared on
403/401 so a stale flag can't authorize anything.
- aa.mjs: on probe success with a stored sessionId, fetch history
and replay user/assistant events via a shared renderClaudeEvent
helper. Live reload is already inherited from chat.boot's version
poll (dumduel/arena pattern).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>