v1.4.1
AgentGate 1.4.1 — Lighter, faster, leaner / 更轻、更快、更省
What's new
- No more runaway memory on long runs. Session storage used to cap its in-memory cache by entry count only, so long agent sessions (single histories of several MB) could grow resident memory to 10GB+. It now evicts by a 64MB byte budget, with the disk layer backing up evicted sessions — same behavior, far less RAM.
- It rests when you're not looking. When the main window is minimized or sent to the tray, page polling pauses (the overview alone used to fire up to 7 queries every 5 seconds) and refreshes instantly when you come back.
- Snappier stats and first paint. Lifetime KPI queries now ride a covering index (74ms→15ms on a 306MB log database), pages lazy-load by route (main bundle 850KB→416KB), and log search is debounced so it queries 300ms after you stop typing.
- Gateway state stays in sync. The topbar and overview now share a single polling source, so start/stop is reflected everywhere at once.
本次更新
- 长时间运行不再吃爆内存。 会话存储原本只按条数(1000)封顶缓存,长 agent 会话单条历史可达数 MB,常驻内存能涨到 10GB+;现按字节预算(64MB)淘汰,被淘汰会话由磁盘层兜底,功能不受影响、内存大降。
- 看不见时它会休息。 主窗口最小化或收进托盘后,各页面轮询自动暂停(此前概览页每 5 秒最多 7 个查询),回到前台立即刷新补上。
- 统计和首屏更快。 lifetime KPI 查询改走覆盖索引(306MB 日志库 74ms→15ms),页面按路由懒加载(主 bundle 850KB→416KB),日志搜索防抖(停止输入 300ms 后才查)。
- 网关状态保持同步。 顶栏和概览页合并为同一轮询源,启停操作即时同步所有界面。
Why it matters / 为什么重要
A pure stability-and-performance release: less memory, faster queries, lighter first load — AgentGate stays reliable as a long-running, always-on local gateway. 一个纯稳定性与性能版本:更省内存、更快查询、更轻首屏,让 AgentGate 作为常驻本地网关长期跑得住。
Full changelog / 完整更新
See CHANGELOG.md for the full itemized list.