HanaAgent 1.6.1-beta
架构调整:移除 PWA 网页版
- 移除 PWA 网页版,为多设备桌面端铺路:本次更新正式移除了手机与平板 PWA 网页端、旧版局域网网页登录通道以及本地自签证书静态访问服务,将产品与工程重心彻底收束到原生桌面端和新一代加密多节点架构之上,为后续多设备桌面端协同、跨节点工作区与统一同步体系打下干净的基础。升级后首次启动会自动清理旧版局域网网页留下的本地证书与网页会话残留文件,你原有的聊天记录、记忆、助手配置与偏好设置都会完整保留。
新功能与改进
1. 全新分层记忆与长上下文压缩
- 全新分层记忆体系:彻底重构旧有记忆链路,建立起由常驻事实、日记与长期记忆组成的新一代分层记忆结构。日常对话会按需只加载最精炼的摘要与常驻事实,而当助手需要追溯历史细节时,可以通过统一的下钻检索按需读取原始记录,既减少无关上下文干扰,又保留完整记忆可追溯性。
- 分层情景压缩:面向超长对话引入与新记忆体系一致的分层情景压缩机制。系统会把较早的对话内容按时间远近逐层压缩为越往前越稀疏的分层摘要,将单次压缩后的上下文体积稳定控制在预算范围之内,同时保留按需下钻查看原件的能力。
- 助手主动偏好与工程记忆精细化:新增“想做的事”按助手独立开关(默认关闭),方便按不同助手的定位决定是否开启自发想法;同时进一步收紧工程场景下的记忆筛选粒度与长期画像沉淀规则,过滤日常闲碎细节,只保留原则、架构与方向类信息。
- 系统提示词结构与缓存前缀优化:按比例化、同类均等与“一件事只写一处”的原则全面梳理了不同模式下的系统提示词,并将随会话动态变化的段落统一排布到固定前缀之后,大幅提升多轮对话中的提示词前缀缓存命中率,降低重复开销。
2. 多节点 Studio 架构与全新局域网 / Tailscale 电脑互联
- 内置局域网账号与加密直连体系:公开桌面版现已在「设置 → 我 → 账号来源」内置局域网管理员与加入局域网两种模式,无需部署任何外部账号或中继服务器即可完成多电脑互联。开启管理员的电脑会生成有效期 10 分钟的配对码,配合加入密码与双方核对的 6 位数字确认码建立加密直连通道,并在「设置 → Studio → 节点」直观管理已加入的设备。
- 同网自动发现与 Tailscale / 跨网段直连:同一局域网下的电脑可直接搜索并发现已开启邀请的管理员主机;而在跨网段或通过 Tailscale 等虚拟局域网组网时,只需在高级地址栏手动填写管理员的
IP:端口即可建立同样的加密直连与跨机协作。 - 本机多 Studio 管理与打包迁徙:新增本机多 Studio 列表与管理能力,支持在同一台电脑上新建、切换、重命名或删除不同的 Studio 空间(切换前自动执行预检并在重启后无缝切入);同时提供完整的 Studio 备份包导出、跨节点导出以及导入/合并能力,方便在不同电脑之间安全迁移完整数据。
- 跨节点工作区与文件夹访问:当多台电脑通过局域网或虚拟局域网连接在同一个 Studio 中时,在任意节点都可以查看其他在线节点上的工作区目录与会话状态,并按文件夹所在主机的读写权限授权发起跨节点文件访问与协作。
3. 全面性能优化与安装包瘦身
- 启动速度与会话索引读取优化:为会话列表引入持久化磁盘缓存,启动时不再逐个扫描全部历史会话文件,仅对校验不上的条目按需增量更新;同时采用基于已校验前缀摘要的增量尾部扫描、Node 服务端编译缓存以及 3 秒闪屏加载预算,并跳过本机回环请求的 HTTP 压缩,让冷启动与主界面呈现显著加快。
- 三档长对话内存裁剪与双池磁盘缓存:在桌面端普通会话与闲聊页面全面落地三档历史消息渐进裁剪与 8 槽位 LRU 内存淘汰策略,长对话在底部空闲时自动将超出阈值的旧消息裁至磁盘分页缓存中释放内存,向上翻页时再无缝接回;同时将远端会话历史缓存与媒体附件缓存拆分为独立配额池,避免大附件挤占对话历史空间。
- 桌面端渲染与状态热路径提速:针对桌面外壳视图、导航订阅、Markdown 渲染以及闲聊静态与非活跃卡片渲染路径做了系统性优化,跳过无变化的状态补丁并按需懒挂载子树,同时在窗口切回或长会话加载时减少不必要的整棵树重绘,切换页面与滚动长列表更加跟手。
- 主线程减负与高负载保活不断连:将文件夹与技能目录的文件监听生命周期整体迁移到独立工作线程,避免开启或关闭目录监听时阻塞后端主事件循环;优化节点清单快照的分片扫描、路径模式缓存与流式哈希,为子代理运行记录增加增量序列化缓存;并在高负载场景下优先保障控制面帧通行、对快速流式增量做合并批处理、解耦直连与中继超时,显著降低卡顿与误断连。
- 节点链路合帧与流量压缩:为跨设备直连与隧道传输加入低延迟小帧合并、加密前数据压缩以及原生二进制帧传输路径,减少冗余编解码与序列化开销,在同步长会话历史或大块卡片数据时传输更省流、响应更快。
- 安装包与更新包全面瘦身:清除了安装包与内置更新包中重复打包的静态资源、冗余字体与未使用的预览图资产,并对随包分发的高分辨率 JPEG 素材统一进行无感压缩优化,在保持视觉表现不变的前提下明显缩减了各平台安装包的下载与占用体积。
4. 接入外部 Coding Agent(ACP)
- Code 页接入本机外部编码代理:在 Code 页中现已支持把本机已安装的外部编程代理(如 Claude Code、Codex 以及其他兼容 ACP 协议的工具)直接作为执行会话接入,由你的助手统一派发任务、跟进过程并查看改动文件与返回结果。
- 工具独立认证与统一能力协同:所有外部代理的账号登录、订阅与计费均保留在各工具自身之中,Hana 不读取或保管你的第三方账号凭据;同时外部执行会话可以安全调用 Hana 的卡片与工作流能力,把确认、审批与结果统一带回主对话。
5. 新增「事务」管理与跨节点会话协作
- 持久化的「事务」管理层:在单条对话与执行会话之上引入「事务」这一更高层的工作组织方式,支持在闲聊中通过提议卡片把想法一键转化为持久事务,并持续跟踪同一件事下关联的多个执行会话、进度变化与待处理事项。
- 跨节点会话派发与统一交回:同一账号或局域网群组内的任意可达节点之间,现已按照统一的会话协作规则互通;统筹会话可以直接在其他可达电脑上创建会话、续发消息、叫停运行、检查静止状态并自动回收结构化交回结果。
6. 定时任务与日程合一、统一待定审批
- 定时任务与日程合一:将原有的定时任务与提醒合并进统一调度,每一次定时运行都会直接作为一条常规的可续聊会话保留下来,点开即可接着对话;并按照主页与 Code 页分别归组,工作文件夹与触发上下文一目了然。
- 统一待定确认中心:将工具执行审批、方案确认、权限放行、十轮续跑提示与各类操作提议收拢到同一套待定决策流中,跨视图实时同步状态,在一处完成确认或拒绝后,其他打开的页面与浮层会自动同步收起。
7. 主页工作区整理与卡片、扩展体验增强
- 主页六合一工作区视图:将自动化、能力、卡片中心、Studio、扩展与事务六个高频入口统一整理进主页的左右分栏卡片视图,支持拖拽调整分隔线宽度、按助手头像栏快速筛选能力与自动化,并在工具列表中新增“全部开启 / 全部关闭”批量开关。
- 多端卡片状态同步与闲聊布局控制:新增按设备隔离的助手卡片包与跨挂载点卡片状态实时同步,支持在多处视图之间即时刷新持久化卡片数据;闲聊卡片投送现已感知发令设备并可保存各助手的闲聊面板宽度与折叠布局。
- v2 App 记忆投稿权限控制:扩展应用(v2 App)现支持声明向助手记忆供稿,并在「设置 → 安全」中为每个 App 提供独立的授权开关(默认关闭,仅在用户开启后才将带来源标记的素材纳入当日与日记记忆,卸载 App 时自动撤销授权)。
8. Node 26、Electron 45.5、核心引擎与桌面控制升级
- Node 26 LTS 与 Electron 45.5 底座升级:桌面端壳层与后端运行时全面对齐 Node 26 LTS 与 Electron 45.5,并升级底层会话核心,带来更严格的基线兼容、更稳定的流式工具调用增量处理以及更可靠的 GPU 与托盘异常恢复。
- 跨平台桌面控制与授权管理:完善多平台 Computer Use 驱动支持与像素级交互能力,并在设置页中以系统真实应用图标列出已授权应用,支持随时一键撤销授权。
问题修复
- 升级、连接保活与网络代理:修复更新校验与 304 缓存重评、高负载下心跳超时与控制面阻塞、休眠时段唤醒误判断连,以及出站系统代理与直连地址过滤中的多处边界问题。
- 文件读写、沙箱与命令执行:修复跨节点工作区挂载与相对路径解析、压缩包解压大小与符号链接安全校验、文件历史监听竞态,以及跨平台命令沙箱路径守卫中的异常情况。
- 模型兼容、视觉与流式续传:修复多种模型参数与工具调用返回格式兼容问题、切换思考档位与刷新目录时的状态同步异常,以及断线重连和切换会话时流式事件丢失片段的问题。
- 会话调度、多窗渲染与扩展桥接:修复会话并发创建与休眠回收竞态、多窗口标题栏与焦点切换死锁、渲染进程后台截图异常,以及外部渠道消息去重与扩展重载残留等数十项问题。
升级须知
- 需安装完整安装包:由于桌面壳升级至 Electron 45.5 与 Node 26 并调整了多项窗口与进程通信协议,本次已将 OTA 最低兼容壳版本提高至
1.6.0-beta。使用1.5.118-beta及更早版本的用户请下载本次完整安装包覆盖安装,无法通过旧壳直接热更新。 - PWA 网页版与 v1 插件已停止支持:本版本起不再提供 PWA 网页端;旧版 v1 插件也已正式淘汰,已安装的 v1 插件会提示“这类插件已不再支持”,请改用新版 v2 App 扩展。
- 公开桌面版范围说明:公开版不附带官方云端托管服务或手机客户端;内置局域网共享仅用于电脑与电脑之间直连,跨 Tailscale / 虚拟局域网连接时请在高级地址栏填写
IP:端口(暂不支持 MagicDNS 域名)。 - macOS 最低支持版本为 macOS 13。
- 本次只发布 Beta 通道;Windows 安装包未签名,安装时可能出现未知发布者提示。
HanaAgent 1.6.1-beta
Architecture Change: PWA Web Client Removed
- Removed the PWA web client to pave the way for desktop: This release removes the mobile and tablet PWA web client, the legacy LAN web login flow, and self-signed TLS static web serving so development focuses on the native desktop app and the new encrypted multi-node architecture. This lays clean groundwork for desktop-to-desktop collaboration, cross-node workspaces, and unified sync. On first launch, legacy web-session files and local LAN TLS certificates are cleaned up automatically while preserving all existing chats, memory, agents, and settings.
Features & Improvements
1. New Layered Memory & Long-Context Compaction
- New layered memory system: Replaces the legacy memory pipeline with a structured hierarchy of standing facts, daily diaries, and long-term memory. Everyday turns load only concise summaries and standing facts, while agents can drill down on demand to read original historical records without bloating regular prompts.
- Layered episodic compaction: Long conversations now use hierarchical episodic compaction aligned with the new memory architecture. Older turns are progressively condensed into sparser summaries as they age, keeping compacted context well within token budgets while keeping original segments reachable on demand.
- Per-agent Desires switch & tighter engineering memory: Adds an independent per-agent "Desires" toggle (off by default) so you can decide which agents generate proactive ideas, and tightens engineering-memory filtering so long-term summaries retain principles, architecture, and direction rather than transient chatter.
- Prompt structure & prefix-cache optimization: Reorganizes system prompts across modes around proportional budgets and single-source guidance, placing session-varying sections after stable prefix boundaries to improve prompt-cache hit rates across multi-turn sessions.
2. Multi-Node Studio Architecture & LAN / Tailscale Desktop Linking
- Built-in LAN account & encrypted direct linking: The public desktop release now includes
LAN adminandJoin LANmodes under Settings → Me → Account source, enabling multi-computer linking without any external account or relay server. An admin computer generates 10-minute pairing codes, join passwords, and 6-digit confirmation codes to establish encrypted direct links, with peer management in Settings → Studio → Nodes. - LAN auto-discovery & Tailscale / cross-subnet support: Computers on the same local network can scan for active LAN admin hosts automatically. Across subnets or over virtual LANs such as Tailscale, entering the host's
IP:portin the advanced address field establishes the same encrypted direct link. - Local multi-Studio management & backup packages: Adds local multi-Studio creation, switching, renaming, and deletion with preflight checks and clean restart transitions. Includes full Studio backup package export, remote-host export, and import/merge flows for moving data safely between computers.
- Cross-node workspace & folder access: When multiple desktops are connected within the same Studio over LAN or virtual LAN, any peer can inspect online hosts' authorized workspaces and session states and access permitted folders across nodes.
3. Comprehensive Performance Optimizations & Installer Slimming
- Faster startup & persistent session-list caching: Persists session-list projections to disk so startup no longer re-scans every historical session file, updating only entries whose verification metadata drifted. Combined with prefix-digest incremental tail scans, server compile caching, a 3-second splash budget, and skipping HTTP compression on loopback traffic, cold startup and initial render are markedly faster.
- Three-tier chat history degradation & dual-pool disk cache: Introduces three-tier progressive history trimming and an 8-slot LRU memory policy across normal desktop chat and casual chat. Long conversations idle at the bottom offload older message groups to paginated disk cache and stitch them back seamlessly on scroll-up, while splitting history and media caches into separate quota pools so large attachments do not evict conversation history.
- Desktop rendering & state hotpath speedups: Optimizes shell views, navigation subscriptions, Markdown rendering, and static/inactive casual-chat card rendering by skipping no-op state patches and mounting subtrees lazily, making page switches and long-transcript scrolling noticeably smoother.
- Main-thread relief & high-load link resilience: Moves file-watcher lifecycles for workspaces and skills onto a dedicated worker thread to prevent main-loop stalls, caches compiled store path patterns and slices snapshot hashing for multi-node sync, caches serialized subagent run records, and prioritizes control-plane frames with stream-delta batching and decoupled direct/relay timeouts under heavy load.
- Coalesced, compressed & binary node links: Adds low-latency small-frame coalescing, pre-encryption payload compression, and raw binary framing for pipe links, cutting wire bytes and serialization overhead during history sync and card transfers.
- Slimmer installers & update archives: Strips duplicated static resources, redundant fonts, and unused preview assets from desktop installers and update packages, and recompresses oversized bundled JPEG assets without visible quality loss to reduce download size and disk footprint.
4. External Coding Agents via ACP
- Connect local coding agents in Code: The Code page can now delegate execution sessions directly to locally installed external coding agents—such as Claude Code, Codex, and other ACP-compatible tools—letting your assistant assign tasks, monitor progress, and review changed files in one place.
- Independent auth & integrated workflow: Sign-in, subscriptions, and billing remain strictly with each external tool; Hana never touches third-party credentials while still letting external sessions surface cards, approvals, and results cleanly.
5. Matters Management & Cross-Node Session Collaboration
- Persistent Matters layer: Introduces Matters above individual chats and coding runs, letting casual-chat proposal cards turn ideas into tracked matters with linked sessions, progress updates, and open follow-ups.
- Unified cross-node delegation & handback: Reachable computers in the same Studio now collaborate under one cross-node protocol, allowing coordinator sessions to launch sessions on peer nodes, send follow-ups, interrupt work, check quiescence, and collect structured handback reports.
6. Unified Automations & Pending Approvals
- Automations & reminders as continuable sessions: Combines scheduled automations and reminders into one system where every run opens directly as a standard continuable session, grouped separately by Home and Code with explicit workspace context.
- Unified pending-decision flow: Consolidates tool approvals, plan confirmations, MCP grants, and action proposals into one synchronized pending-decision registry so resolving an item in one view clears it everywhere.
7. Unified Home Workspace & Card / Extension Enhancements
- Six-in-one split-pane Home card view: Consolidates Automation, Capabilities, Card Center, Studio, Extensions, and Matters into a split-pane Home card view with resizable dividers, agent avatar filter bars, and batch Enable All / Disable All controls for MCP tool lists.
- Live card state sync & casual-chat layout memory: Adds per-device agent card packs, live cross-mount card state synchronization, delivery device awareness, and persisted casual-chat panel widths and collapse states.
- Opt-in v2 App memory contributions: Allows v2 Apps to declare memory contribution streams controlled per App in Settings → Security (off by default, feeding attributed material into today's context and diaries only when enabled, and revoked automatically on uninstall).
8. Node 26, Electron 45.5, Core Engine & Computer Use Upgrades
- Node 26 LTS & Electron 45.5 foundation: Aligns the desktop shell and runtime with Node 26 LTS and Electron 45.5 alongside an upgraded core session engine, improving mid-conversation tool handling, streaming stability, and GPU/tray recovery.
- Cross-platform Computer Use & app permissions: Expands cross-platform Computer Use driver support and displays approved apps with native system icons and one-click revocation in settings.
Bug Fixes
- Updates, keepalive & outbound proxies: Fixed update metadata and 304 cache re-evaluation, high-load heartbeat timeouts and control-plane blocking, false disconnects after system sleep, and edge cases in outbound proxy routing and direct IP filtering.
- Files, sandboxing & command execution: Fixed cross-node workspace mounting and path resolution, ZIP extraction size and symlink guards, file-watcher close races, and cross-platform sandbox path checks.
- Models, vision & stream resumption: Fixed model parameter and tool-call format compatibility issues, thinking-level and catalog refresh races, and missed stream segments during reconnects or session switches.
- Scheduling, multi-window deadlocks & extensions: Fixed concurrent session creation and hibernation races, multi-window titlebar and focus deadlocks, background card screenshot failures, and dozens of channel deduplication and extension lifecycle bugs.
Upgrade Notes
- Full installer required: Because the desktop shell upgrades to Electron 45.5 and Node 26 with updated window and IPC contracts, the minimum OTA shell floor is now
1.6.0-beta. Users on1.5.118-betaor earlier must install the full1.6.0-betapackage rather than hot-updating. - PWA & v1 plugins retired: The PWA web client has been removed, and legacy v1 plugins are no longer supported in this release; installed v1 plugins will display "This plugin type is no longer supported". Please switch to v2 Apps.
- Public desktop scope: This public build does not include official cloud hosting or a mobile client. Built-in LAN sharing connects desktop computers to each other; over Tailscale or virtual LANs, enter
IP:portin the advanced address field (MagicDNS hostnames are not accepted). - macOS 13 or later is required.
- This release updates only the Beta channel. Windows installers are unsigned and may display an unknown-publisher warning.
下载说明 / Download Note
请下载本页提供的桌面安装包。GitHub 自动生成的 “Source code” 压缩包对应公开仓库的历史代码,并非本次 beta 安装包的源码。
Use the desktop installers attached to this release. GitHub-generated “Source code” archives contain the historical public repository snapshot, not the source for these beta binaries.
下载说明 / Download note
请下载本页提供的桌面安装包。GitHub 自动生成的 “Source code” 压缩包对应公开仓库的历史代码,并非本次 beta 安装包的源码。
Use the desktop installers attached to this release. GitHub-generated “Source code” archives contain the historical public repository snapshot, not the source for these beta binaries.