Repository navigation
Releases
v1.3.8
同步 @magpie-community/page-agent-console 1.3.8(magpie-community/plugins#1108,合并提交 1429620)。
- 往上滚立刻离开底部(#2):贴底时只要用户往上滚,哪怕离底部还不到 60px,也会马上停止跟随;内容增长、布局变化不会把视图拉回底部。只有往下滚到底部附近、真正到底、点「回到底部」或发送消息时才会重新贴底。
- 用 IDE 打开项目、在资源管理器中显示(#3):顶栏新增「用 IDE 打开」按钮(依次查找 Cursor、VS Code、Windsurf、Zed、IntelliJ IDEA、WebStorm、Sublime Text);文件面板可以在资源管理器 / 访达 / 文件管理器中显示文件。启动用参数数组执行,不经过 shell;显示的路径必须解析在项目目录内。
安全模型不变:页面 token(x-agent-console)、Host 校验、WS hello 5 秒鉴权;新功能都走已认证的 WebSocket。
npm:magpie-agent-console@1.3.8
Agent Console 1.3.7
同步 @magpie-community/page-agent-console 1.3.6 + 1.3.7(magpie-community/plugins#787、#792,合并提交 86778e6)。
- 长回复贴底(1.3.6,#787):虚拟列表中行实测高度超过预估、流式输出、隐藏视图重新显示时,对话都保持贴在底部;只有用户手势向上滚动才离开底部。另含 #786 审阅跟进:ACP 会话跳过的默认模型不再记为已同步,下一次空闲发送会重试。
- 流式输出不再闪烁(1.3.7,#792):代码块(语言标签、行号、换行/复制按钮)与 Markdown 同一次渲染完成;pending 引用稳定 + Zustand 字段级选择器,流式期间外壳不再整体重渲染;
scrollbar-gutter: stable,底部留白移入最后一个虚拟行,消除逐行跳动。未标注语言的代码块恢复highlightAuto自动识别与语言标签(流式输出时只有末尾未闭合的代码块暂显示 "text")。DOMPurify 恢复为仅 html 配置,模型写入的<svg>会被移除。 - Windows 桌面端断线重连(1.3.7,#792):不再回跳
http://wails.localhost(WebView2 下会落到灰色错误页);断线后通知 Magpie 显示原生「重试」卡片,点击即重建页面与服务;会清除旧版本缓存的 wails 回跳地址。magpie web仍保留自动重连。
安全模型不变:页面 token(x-agent-console)、Host 校验、WS hello 5 秒鉴权;回跳地址仅接受回环地址上的 Magpie 页面。
npm:magpie-agent-console@1.3.7
Agent Console 1.3.5
同步 @magpie-community/page-agent-console 1.3.5(magpie-community/plugins#786,合并提交 856ad93)。
- Windows 桌面端断线重连:Wails WebView2(
http://wails.localhost,仅 Windows、无端口)守护进程重启后支持自动与手动重连;缺少宿主回跳地址时,通过 Magpie iframe{ magpie:1, method:"error" }重建兜底。 - 模型刷新与默认模型同步:模型选择框新增
↻刷新;按各 Agent 身份携带 Token 读取 Magpie/v1/models,过滤已关闭/未展示模型(含 Codex ChatGPT 裸模型名匹配);Magpie/Agent 配置文件变更自动失效模型缓存;对话选「默认」时,空闲下一轮自动同步 Magpie 最新默认模型。
安全模型不变:页面 token(x-agent-console)、Host 校验、WS hello 5 秒鉴权。
npm:magpie-agent-console@1.3.5
Agent Console 1.3.4
Sync with @magpie-community/page-agent-console 1.3.4 (magpie-community/plugins#768, merge commit 39f5427).
Stop now ends the turn at once, and a resend right after it is safe, on all three paths:
- ACP (Devin, Cursor, Copilot, OpenCode, Pi, dsh):
session/cancelgoes as a notification, the local turn ends at once, and a resend waits for the cancel and the previous prompt to settle. - Claude: the result FIFO (
turnGen,awaitingResult,skipResultGens) lives on each CLI process, and a replaced CLI's leftover stdout is ignored. After a crash the queue stays open, so the next send resumes with--resume. - Codex: a turn whose
turn/startresponse arrives after Stop is interrupted by its own response id.
Security model unchanged: page token (x-agent-console header), Host check, WS hello auth within 5 s.
npm: magpie-agent-console@1.3.4
Agent Console 1.3.3
Sync with @magpie-community/page-agent-console 1.3.3 (magpie-community/plugins#760, merge commit 41e90a1). This sync is based on merged upstream main, so it also includes community 1.3.2 from #758 (Codex picker reads model_catalog_json).
- Stuck 等待授权 / Permission-wait unstick: if a permission request is still open when its turn ends, the daemon cancels it. The page only shows “等待授权” when a card still has buttons the user can press.
- 添加到对话 icon: speech bubble (outline + three dots) instead of the quote mark that read as garbled.
- Sidebar status dots: blinks light/dark while running, green after a completed turn, red on failure, amber while waiting for permission.
- Reconnect button: disconnect / invalid-link end states always offer 重新连接. The last safe Magpie back URL is kept in
sessionStorageso a click can still recover when#b=is missing. - Reconnect on return: coming back to the page (
visibilitychange→ visible, or window focus) checks the child at once. After a 4 s probe, a silent child is recovered; if an end state is already showing, coming back is the same as clicking Reconnect.
Security model unchanged: page token (x-agent-console header), Host check, WS hello auth within 5 s. safeBack still only accepts a loopback Magpie plugin page URL.
npm: magpie-agent-console@1.3.3
Agent Console 1.3.1
Sync with @magpie-community/page-agent-console 1.3.1 (magpie-community/plugins#733 and #747, merge commits 5703c9f and 2c4e76d).
- Windows: automatically finds Git Bash instead of the WSL
bashlauncher; raw process output stays UTF-8 or falls back to the system ANSI code page (GBK on Chinese Windows). - Timeline: compact tool-step rows, with longer runs folded into an expandable summary; clearer code blocks and task progress.
- Sleep / wake recovery: the stable port 3488 wrapper detects a lost daemon and restores the console after sleep or a daemon restart.
- Composer: messages appear immediately on send, with retry / remove on failure; select reply text to quote it in the composer.
- Auto-approve all: an opt-in permission mode, off by default, with a persistent indicator and a saved approval trace. Plan approvals and questions still ask; Pi keeps its own mode so switching Agents does not silently enable auto-approval there.
npm: magpie-agent-console@1.3.1
Agent Console 1.2.0
Sync with @magpie-community/page-agent-console 1.2.0 (magpie-community/plugins#582, merge commit 270b228).
- Preview tab: a small browser in the right panel for local dev servers, loaded through the daemon's loopback preview proxy (module scripts,
fetch, HMR work inside Magpie's sandboxed frame). - Links in chat: local addresses open in the Preview tab; other http(s) links open the system browser.
- File chips: drag a Files row into the composer (or right-click → Add to chat) to send checked project-relative paths.
- Layout settings: content width and chat font size; sidebar toggle (Ctrl/⌘+B).
- Live theme: light/dark, Magpie's neutral colours and language follow Magpie while the page is open.
- Security fixes from the #582 review: preview proxy answers only at a per-listener keyed
ac<key>.localhosthost, per-open ping nonce, keyless canary, Magpie gateway/gate/daemon ports refused, WebKit before macOS 26 fails closed;openExternalis http/https only viaexecFilewith no shell; file mentions checked inside the project.
npm: magpie-agent-console@1.2.0