- bug1: auto-refresh no longer wipes filled forms on the manage tab
(input events set opsDirty; refresh pulls data silently, re-renders
only when idle)
- bug2: binding table now merges live bindings with persisted
session_records (hub restarts clear bindings by design — ACP session
ids die with the process — but chats keep their history); rows show
活跃 vs 历史·N turns
- merge Config into 管理 tab (tabs now: 概览/会话/对话/审批/管理)
- restyle: header status lamp (运行中/降级/不可达), underline tabs w/
accent color, card shadows, unified 12px radius, refresh as button
- config doc moves to agenthub.db table 'config' (single JSON doc, id=1);
config.json is first-run seed only; same db as bindings/records
- AdminStore: sqlite doc store (thread-locked, persists across restarts)
- full CRUD per entity: list/get/upsert/delete for channels + agents,
bind/unbind for bindings; upsert merges blank secret fields (edit form
can leave them empty); last-agent delete guard; unknown-field 400s
- secrets masked at list/get time (yb…[REDACTED]); plaintext never
crosses the API
- Ops tab rebuilt: list tables w/ per-row edit+delete buttons, +新增
forms, delete confirm() dialogs, live binding table w/ unbind
- base font 14->16px, body max-width 1280->1440, line-height 1.5
- tables/rows/messages/badges upscaled to match; big-number KV 22->26px
- refresh button now a bordered chip (tap target)
- responsive: single-column grid under 760px
Static HTML served by StatusHTTP (stdlib only, no build step): service
health pills, channel connection states, agent processes, live bindings
table; fetches existing /status + /sessions JSON, 10s auto-refresh.
AgentSpec.default_model was declared but never consumed; the agent's
built-in default rotated (fledge-alpha-free -> exo-free) and several
free upstreams go dark ('Endpoint is unavailable'). After session/new,
set the configured model via session/set_config_option; failure is
non-fatal (warn + continue with agent default). Adds 4 tests (75 total).
Keepalive (fixes 19h silent WS death on 2026-10-07):
- recv() raises on dead reader / stale inbound (no pong) instead of
returning None forever -> outer loop reconnects
- heartbeat closes socket after 2 missed pongs
- reconnect default unlimited (0), backoff cap 60s; auth still terminal
- connection_state surfaced (idle/connecting/connected/failed)
Approval hardening:
- unpresented approval can never be answered (race guard)
- timeout notifies the user ("已自动拒绝")
- stale pending permissions reaped; created_at tracked
Tests: 69 passed (9 new regressions in test_keepalive_approvals.py)
- recv(): connection EOF now raises instead of returning None — the channel
outer loop treats it as disconnect and runs backoff reconnect
- close(): best-effort with timeouts, no hang when loop already dead
- tests: fake aibot gateway (subscribe/reply/heartbeat), auth-failure path
45 passed
- http_admin.py: ThreadingHTTPServer on 127.0.0.1:30990
GET /agents/ /status /healthz /sessions; POST /agents/prompt (ops)
- runtime starts it from config.http
- verified locally: healthz + status return JSON
- runtime.py: config load (JSONC tolerated) -> SessionManager + channels,
inbound prompts run in worker threads (receive loop never stalls),
prompt errors surfaced to the chat via final event, SIGTERM/SIGINT stop
- __main__/entry point forward to runtime.main
- tests: 43 passed