@minimax-ai/code 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +179 -164
  2. package/CHANGELOG.zh-CN.md +264 -0
  3. package/README.md +6 -3
  4. package/README.zh-CN.md +4 -2
  5. package/assets/agents/_tui/prompt-base-all.md.hbs +12 -0
  6. package/assets/agents/_tui/prompt-base-windows.md.hbs +45 -0
  7. package/assets/agents/_tui/prompt-base-worker.md.hbs +4 -0
  8. package/assets/agents/_tui/prompt-session-branch.md.hbs +13 -0
  9. package/assets/agents/_tui/prompt-session-root.md.hbs +4 -0
  10. package/assets/agents/mavis/tui/PERSONA-zh.md.hbs +17 -0
  11. package/assets/agents/mavis/tui/PERSONA.md.hbs +22 -0
  12. package/assets/agents/mavis/tui/SYSTEM.md.hbs +110 -0
  13. package/assets/agents/mavis/tui/features/delegation.md.hbs +52 -0
  14. package/assets/agents/mavis/tui/features/task-management.md.hbs +11 -0
  15. package/assets/agents/mavis/tui/features/web-search.md.hbs +7 -0
  16. package/chunks/{application-F5GCGMBT.js → application-VM7NETBS.js} +1 -1
  17. package/chunks/chunk-B7AEIYE2.js +155 -0
  18. package/chunks/{chunk-ZQ5NFQRA.js → chunk-BPRXRI4W.js} +467 -467
  19. package/chunks/chunk-C3JRMX7L.js +2 -0
  20. package/chunks/{chunk-VVZRUBTN.js → chunk-CSEMCTUO.js} +490 -490
  21. package/chunks/{chunk-3X7O237P.js → chunk-J6D4YR7Q.js} +1 -1
  22. package/chunks/chunk-OGKBQLFH.js +33 -0
  23. package/chunks/launcher-U4C3IZNL.js +231 -0
  24. package/chunks/{lifecycle-W7H7AQB2.js → lifecycle-KCPZFQXU.js} +1 -1
  25. package/chunks/{main-L3MJW47H.js → main-X4HBPBMC.js} +1 -1
  26. package/chunks/{plugin-command-KVTQXIBN.js → plugin-command-A5E7VOZF.js} +1 -1
  27. package/chunks/provider-command-MKFDOYFC.js +3 -0
  28. package/chunks/{run-acp-command-RJAB4GDT.js → run-acp-command-X52GQQTB.js} +1 -1
  29. package/chunks/{run-exec-command-KYGOLZKQ.js → run-exec-command-YNDAZGJH.js} +1 -1
  30. package/chunks/update-WS5F7FXU.js +15 -0
  31. package/cli.js +1 -1
  32. package/package.json +2 -1
  33. package/chunks/chunk-COTC5RMO.js +0 -156
  34. package/chunks/chunk-GWC5532O.js +0 -2
  35. package/chunks/launcher-UNNRDX2R.js +0 -231
  36. package/chunks/provider-command-NMPS5C3N.js +0 -3
  37. package/chunks/update-NYOPKJYL.js +0 -14
package/CHANGELOG.md CHANGED
@@ -1,242 +1,257 @@
1
- # MCode TUI 更新日志
1
+ # MCode TUI Changelog
2
2
 
3
- 这里记录 MCode
4
- TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用户影响为准,而不是以代码目录为准:
3
+ This changelog covers important changes that directly affect MCode TUI users. It includes:
5
4
 
6
- - TUI 本身的功能、交互、显示、兼容性、安装和更新变化;
7
- - Runtime、Agent、Tool、Skill 等共享层中会改变 TUI 行为的变化。
5
+ - Features, interactions, display, compatibility, installation, and updates in the TUI itself.
6
+ - Shared Runtime, Agent, Tool, and Skill changes that alter TUI behavior.
8
7
 
9
- 仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
8
+ Internal refactors, test-only changes, and changes limited to other product surfaces are excluded.
9
+
10
+ ## 0.2.7 · 2026-08-28
11
+
12
+ ### Improved
13
+
14
+ - Installer-managed updates now publish a complete versioned release and atomically switch new
15
+ Sessions to it, so running Sessions can continue on the previous version without blocking
16
+ activation. Update output also shows each stage and a heartbeat while the package manager is still
17
+ working.
18
+ - While a response is running, `Alt+Enter` queues a follow-up and `Tab` remains dedicated to
19
+ Composer completion; `Enter` continues to steer the active Turn.
20
+ - Welcome highlights and `/changelog` now select the packaged English or Simplified Chinese
21
+ changelog from the system locale, with a deterministic English fallback.
22
+ - TUI Sessions now use a dedicated terminal prompt profile and no longer load Desktop `user.md`
23
+ profile content, keeping terminal behavior isolated from Desktop-only instructions.
24
+
25
+ ### Fixed
26
+
27
+ - Regular and Fullscreen rendering now preserve native scrollback and scroll positions when
28
+ transient rows collapse, history is remeasured, or interaction chrome changes, avoiding cleared
29
+ history, large blank gaps, replayed lines, and duplicate footer frames.
30
+ - Permission and Questionnaire panels remain fully visible above Goal and background-task rows, and
31
+ large expanded Transcript histories only format the visible viewport plus overscan.
32
+ - User prompts keep their full-width highlight, compact first-message spacing, and terminal semantic
33
+ markers without shifting the first rendered row.
10
34
 
11
35
  ## 0.2.6 · 2026-08-27
12
36
 
13
- ### 体验改进
37
+ ### Improved
14
38
 
15
- - Bash 审批框和 Transcript 会统一提取并高亮真实命令,不再把 JSON 外壳与转义字符当作 Shell 脚本展示。
16
- - Welcome 页的 `/checkin` 提示改为纳入启动 Tips 轮播,不再错放到版本变化区域。
39
+ - Bash approval prompts and transcripts now extract and highlight the actual command instead of rendering JSON wrappers and escaped characters as shell scripts.
40
+ - The `/checkin` hint now appears in the startup Tips rotation instead of the version highlights.
41
+ - Background work shows its summary plus up to three task rows above the Composer, with additional tasks summarized as `… N more`.
17
42
 
18
- ### 问题修复
43
+ ### Fixed
19
44
 
20
- - 修复剩余使用额度显示小数的问题,按实际积分单位统一显示为整数。
45
+ - Remaining usage credits are now displayed as whole numbers, matching the underlying credit unit.
46
+ - The first frame now refreshes the current terminal viewport instead of leaving the previous shell prompt visible.
21
47
 
22
48
  ## 0.2.5 · 2026-08-27
23
49
 
24
- ### 新增功能
25
-
26
- - `/sessions` 升级为 Session Center,可以在当前 workspace 或全部范围中搜索、切换、重命名、归档和恢复 Session,并支持 `id:`、`path:`、`type:`、`status:`、`model:` 等筛选。
27
- - 新增 `/history`,可以浏览当前 Session 的输入历史,预览后创建分支、编辑历史输入、仅回退会话,或同时回退会话与文件;回复运行期间保持只读浏览。
28
- - Welcome 会从当前版本更新记录中随机展示三条变化;新增 `/changelog`,可通过只读面板查看安装包内的完整历史记录。
29
- - Composer 上方新增任务面板,在不改写 Transcript 历史的前提下展示 Agent Team 和 Runtime 后台任务的实时状态。
30
- - 新增 `/checkin`,可以在 TUI 中完成每日签到并查看连续签到、累计天数和奖励结果。
31
- - `/model` 支持展示和选择第三方 Provider 提供的模型,并在需要时引导完成 Provider 配置。
32
-
33
- ### 体验改进
34
-
35
- - `/context`、`/usage` 与 `/status` 改为可关闭的当前交互面板,查看结束后不会在 Transcript 或 Session 历史中留下记录。
36
- - 状态栏与用量面板可以展示当前 Session 的 Cache Read 比例,并在统计信息不足时避免显示误导性的比率。
37
- - Queue 与 Steer 的状态、目标和恢复反馈更清晰;运行中可以选择已排队消息作为 Steer 目标,切换 Session、取消或恢复运行时会保持当前队列归属一致。
38
- - 回复运行期间会隐藏并拒绝创建、切换、重命名、归档、分支、回退、编辑历史和压缩 Session 的命令;只读历史、Queue、Steer 与 Stop 等安全操作保持可用。
39
- - 审批框与 Tool 执行摘要会按 Shell 语义统一高亮命令,长命令更容易阅读。
40
- - Coding 与 Work 模式会保持 Markdown 链接的标签和目标为可点击格式,避免链接被错误渲染为行内代码。
41
- - Regular 模式的流式更新、主题变化和 Surface 切换减少了完整重绘;长 Session 的 Inspector 只格式化当前 viewport 附近内容,降低持续输出和滚动时的额外开销。
42
- - 正式包按启动路径拆分并延迟加载非必要资源,缩短版本查询、首帧显示和可提交消息前的等待时间。
43
- - 长 Session 会对累计 ToolResult 统一压缩,并保留可恢复的原始输出,减少上下文占用和重复裁剪。
44
- - TUI 会在本地有界保存经过脱敏的异常退出与生命周期故障信息,并在登录后自动上报;采集或上报失败不会阻塞启动、退出或正常交互。
45
-
46
- ### 问题修复
47
-
48
- - 修复 Regular 模式在实时更新时重放完整 Transcript、破坏终端原生 scrollback 或造成历史内容跳动的问题。
49
- - 修复退出、更新、外部编辑器返回和终端恢复过程中重复刷新或过早结束清理的问题。
50
- - 修复终端或自动补全子进程发生 EOF 时错误终止 TUI,或无法保留首个停止原因的问题。
51
- - 修复 Session 历史操作、Queue 消息与后台任务在异步返回、恢复或 Session 切换时可能投影到错误上下文的问题。
52
- - 修复未显式指定模型的内置 Agent 未继承当前会话模型,以及 Goal verifier 等子任务的显式模型路由被 Agent 配置覆盖的问题。
53
- - 修复旧版本遗留的 `main` / `mavis` Agent 数据可能导致 Runtime 启动失败的问题。
54
- - 修复 `/fork` 在当前仓库无法安全创建隔离 worktree 时仍展示该选项、选择后才失败的问题。
55
- - 修复 MiniMax Plugin Hook 收到错误的 Tool 名称或输入结构,导致 Hook 匹配和输入改写失效的问题。
56
- - 修复内置 Matrix 工具访问受管服务时使用错误鉴权方式的问题。
57
- - 修复安装或更新重复执行、下载中断或激活失败时可能留下不完整版本的问题,并支持从事务记录恢复。
50
+ ### Added
51
+
52
+ - `/sessions` is now the Session Center, with workspace or global search, switching, renaming, archiving, and restoration. Filters include `id:`, `path:`, `type:`, `status:`, and `model:`.
53
+ - Added `/history` for browsing the current Session input history, previewing and creating a branch, editing an earlier prompt, rewinding only the conversation, or rewinding both the conversation and files. It remains read-only while a response is running.
54
+ - Welcome randomly shows three highlights from the installed version. Added `/changelog` for viewing the complete packaged history in a read-only panel.
55
+ - Added a task panel above the Composer for live Agent Team and Runtime background-task status without rewriting Transcript history.
56
+ - Added `/checkin` for daily check-ins, streaks, total check-in days, and reward results inside the TUI.
57
+ - `/model` now lists and selects models from third-party Providers and guides users through Provider setup when needed.
58
+
59
+ ### Improved
60
+
61
+ - `/context`, `/usage`, and `/status` now open as closable interaction panels without leaving entries in the Transcript or Session history.
62
+ - The status bar and usage panel can show the current Session cache-read ratio and avoid misleading ratios when the available statistics are incomplete.
63
+ - Queue and Steer status, targets, and recovery feedback are clearer. Queued messages can be selected as Steer targets, and queue ownership remains consistent across Session switches, cancellation, and recovery.
64
+ - While a response is running, commands that create, switch, rename, archive, branch, rewind, edit, or compact Sessions are hidden and rejected. Safe read-only history, Queue, Steer, and Stop actions remain available.
65
+ - Approval prompts and Tool summaries use consistent shell-semantic command highlighting for easier reading of long commands.
66
+ - Coding and Work modes preserve Markdown link labels and targets as clickable links instead of incorrectly rendering them as inline code.
67
+ - Regular-mode streaming updates, theme changes, and Surface switches perform fewer full redraws. Long-Session Inspector formatting is limited to content near the current viewport.
68
+ - Production bundles split startup code and defer nonessential resources, reducing version-query, first-frame, and message-ready latency.
69
+ - Long Sessions consistently compact accumulated ToolResult content while retaining recoverable original output, reducing context usage and repeated trimming.
70
+ - The TUI keeps a bounded, redacted local record of abnormal exits and lifecycle failures and uploads it after sign-in. Collection or upload failures never block startup, shutdown, or normal interaction.
71
+
72
+ ### Fixed
73
+
74
+ - Fixed Regular mode replaying the full Transcript during live updates, which could damage native terminal scrollback or make history jump.
75
+ - Fixed duplicate redraws and premature cleanup completion during shutdown, updates, returns from an external editor, and terminal restoration.
76
+ - Fixed terminal or autocomplete subprocess EOF incorrectly terminating the TUI or losing the first stop reason.
77
+ - Fixed Session history actions, queued messages, and background tasks being projected into the wrong context after asynchronous responses, recovery, or Session switches.
78
+ - Fixed built-in Agents without an explicit model failing to inherit the current Session model, and explicit routing for Goal verifiers and other subtasks being overwritten by Agent configuration.
79
+ - Fixed legacy `main` or `mavis` Agent data preventing Runtime startup.
80
+ - Fixed `/fork` offering worktree isolation when the current repository could not safely create it and failing only after selection.
81
+ - Fixed MiniMax Plugin Hooks receiving incorrect Tool names or input shapes, which broke Hook matching and input rewriting.
82
+ - Fixed built-in Matrix tools using the wrong authentication method for managed services.
83
+ - Fixed interrupted, repeated, or failed install/update attempts leaving incomplete versions, with recovery from the transaction record.
58
84
 
59
85
  ## 0.2.4 · 2026-08-24
60
86
 
61
- ### 新增功能
87
+ ### Added
62
88
 
63
- - `mcode acp` 扩展 Session 控制面,支持 Session fork、模式与配置切换、队列/Steer、Goal 和 delegation,并在连接重绑、取消和权限/问卷交互中保持状态归属一致。
64
- - 安装后的 Plugin Skills 可以直接通过 `/` 搜索和调用。
65
- - 支持兼容 Plugin 格式的生命周期 Hooks,并补齐 Runtime 侧的兼容性处理。
66
- - Goal 支持运行时预算、自动结算和独立验证;Ask 等待自动继续时会展示倒计时。
67
- - `mcode exec` 补齐自动化场景的结构化事件与输出。
68
- - 可以按 Ctrl+U 接续最近一个 Codex Session。
89
+ - `mcode acp` expands the Session control plane with Session fork, mode and configuration switching, Queue/Steer, Goal, and delegation while preserving ownership through rebinding, cancellation, permissions, and questionnaires.
90
+ - Installed Plugin Skills are directly searchable and invokable through `/`.
91
+ - Added lifecycle Hooks compatible with the Plugin format, including Runtime compatibility handling.
92
+ - Goal supports runtime budgets, automatic settlement, and independent verification; Ask shows a countdown before automatic continuation.
93
+ - `mcode exec` now emits structured events and output for automation workflows.
94
+ - Press Ctrl+U to continue the latest Codex Session.
69
95
 
70
- ### 体验改进
96
+ ### Improved
71
97
 
72
- - 启动阶段会展示 Server loading 状态,Runtime 就绪前不会提交消息;启动动画和功能页面会跟随当前 TUI 模式正确布局。
73
- - Composer 空闲时会展示操作 Tips。
74
- - 图片绝对路径粘贴后改为简短占位符,Agent Team 子任务行在状态更新时保持稳定,长时间 Bash 和后台任务的进度提示更清晰。
75
- - 长会话上下文压缩会优先采用至少节省 70% 上下文的工具结果裁剪,减少低收益裁剪;后台任务提醒的去重与读取计数更稳定。
98
+ - Startup shows Server loading state and blocks message submission until Runtime is ready. Startup animation and feature pages follow the active TUI mode.
99
+ - The idle Composer displays operating tips.
100
+ - Pasted absolute image paths use short placeholders. Agent Team rows remain stable during updates, and long Bash/background tasks provide clearer progress.
101
+ - Long-session compaction prefers Tool-result trimming that saves at least 70% of context, while background-task reminder deduplication and read counts are more stable.
76
102
 
77
- ### 问题修复
103
+ ### Fixed
78
104
 
79
- - 限制 Tool Transcript 对单个 Tool input/detail 的保留上限,超限时保留首尾内容并显示原始字节数,避免大 payload 长时间占用内存。
80
- - 修复旧 BYOK Provider、Session 和历史 Custom Agent 配置在 TUI 启动阶段干扰迁移或阻塞 Runtime 的问题。
81
- - Permission Core 收口为确定性的权限策略 owner;命令级拒绝保持 fail-closed,Windows 可安全回收的字面删除命令按固定目标执行,复杂或无法证明的命令继续拒绝。
82
- - 修复 npm-prefix 中 pending 更新无法继续的问题。
83
- - 修复本地时区变化导致 Session canonical history 路径变化,以及 Host 失败、Fork 时的历史保留边界问题。
84
- - 修复模型上下文变化后压缩失败、Compact checkpoint 丢失 Subagent 状态的问题。
105
+ - Bounded the retained input/detail size of each Tool Transcript entry, preserving the beginning, end, and original byte count for oversized payloads.
106
+ - Fixed legacy BYOK Provider, Session, and Custom Agent configuration interfering with migration or blocking Runtime startup.
107
+ - Consolidated Permission Core as the deterministic policy owner. Command-level denial remains fail-closed; provably safe literal deletion commands on Windows use fixed targets, while complex or unprovable commands remain denied.
108
+ - Fixed pending updates inside an npm prefix failing to resume.
109
+ - Fixed local timezone changes altering canonical Session history paths and tightened Host-failure and Fork history-retention boundaries.
110
+ - Fixed compaction failures after model context changes and lost Subagent state at Compact checkpoints.
85
111
 
86
112
  ## 0.2.3 · 2026-08-22
87
113
 
88
- ### 新增功能
89
-
90
- - 新增 `/export [path.md]`,可将当前 Session 的完整历史导出为 Markdown;支持 workspace 相对路径、冲突文件自动加后缀、凭据脱敏、0600 文件权限和可点击的本地文件链接。
91
- - 模型选择器按 Provider 分组,支持实时搜索 Provider、模型名、显示名、variant 和 `provider/model`,并支持退格、删除、左右移动光标及保留完整模型目录。
114
+ ### Added
92
115
 
93
- ### 体验改进
116
+ - Added `/export [path.md]` to export the complete current Session history as Markdown, with workspace-relative paths, collision-safe suffixes, credential redaction, `0600` permissions, and clickable local file links.
117
+ - The model picker groups by Provider and searches Provider, model name, display name, variant, and `provider/model`, with Backspace, Delete, cursor movement, and a complete model catalog.
94
118
 
95
- - `/rename` 支持无参数打开 Session Manager 并预选当前 Session;Permission、Plan Review、Questionnaire 等交互统一了嵌套输入 focus、取消、失败反馈和恢复路径。
96
- - Ctrl+C 退出确认改为“再次按键即退出”的 armed 状态,清空 Draft 后可用 Ctrl+Z 恢复,不再受固定 500ms 窗口限制。
97
- - 优化了启动性能,非启动项依赖滞后启动
119
+ ### Improved
98
120
 
99
- - MiniMax Code 产品知识 Skill 改为首层路由,携带可信 region 上下文并按 account、Agent、extension、workflow 等主题加载对应参考资料。
121
+ - `/rename` without arguments opens Session Manager with the current Session selected. Permission, Plan Review, Questionnaire, and similar interactions now share consistent nested-input focus, cancellation, failure feedback, and recovery.
122
+ - Ctrl+C exit confirmation now stays armed until the next press. Clearing a Draft can be undone with Ctrl+Z without a fixed 500 ms window.
123
+ - Startup defers nonessential dependencies.
124
+ - The MiniMax Code product-knowledge Skill is now a top-level router with trusted region context and topic-specific references for accounts, Agents, extensions, workflows, and more.
100
125
 
101
- ### 问题修复
126
+ ### Fixed
102
127
 
103
- - 修复 Turn 内发生压缩后历史收口仍引用过期身份的问题,避免长会话继续执行时状态对账错误。
104
- - 修复 `tool_trim` 持久化改写用户消息导致 Turn 失败的问题,保留原始用户 payload。
105
- - 修复 `mcode update` 在 npm 返回单元素版本数组时的解析问题。
106
- - 修复运行结果、Agent Team 和 Runtime 事件在重连、重复或乱序到达时的结算一致性问题。
128
+ - Fixed history finalization after in-turn compaction referencing stale identity and causing reconciliation errors in long-running Sessions.
129
+ - Fixed `tool_trim` rewriting persisted user messages and failing the Turn; original user payloads are retained.
130
+ - Fixed `mcode update` parsing npm responses that contain a single-element version array.
131
+ - Fixed settlement consistency when run results, Agent Team events, and Runtime events arrive after reconnects, as duplicates, or out of order.
107
132
 
108
133
  ## 0.2.2 · 2026-08-21
109
134
 
110
- ### 新增功能
135
+ ### Added
111
136
 
112
- - 新增 `/rewind` 与 `/edit`,可以从历史消息选择回退范围、预览变更并编辑后重新提交;`/fork`、附件和 Draft 恢复统一复用 Runtime 会话契约。
137
+ - Added `/rewind` and `/edit` for selecting a history range, previewing changes, and editing before resubmission. `/fork`, attachments, and Draft recovery share the Runtime Session contract.
113
138
 
114
- ### 体验改进
139
+ ### Improved
115
140
 
116
- - `/update` 在有多个 MCode session 运行时会显示实际阻塞数量,并持续等待旧进程安全退出后再激活,避免更新因固定超时停在中间状态。
117
- - Slash Review 在上下文预算不足时自动切换到紧凑的 Git 自发现 Prompt,保留 Review 结果和恢复路径,长会话更不容易因输入过大失败。
141
+ - `/update` reports the real number of blocking MCode sessions and waits for older processes to exit safely instead of abandoning activation after a fixed timeout.
142
+ - Slash Review switches to a compact Git-discovery prompt when context is tight, preserving review output and recovery paths.
118
143
 
119
- ### 问题修复
144
+ ### Fixed
120
145
 
121
- - 修复 Agent Team 从历史 Session 恢复后将已完成子任务继续累计耗时的问题。
122
- - 修复终端以 EOF 结束时被误报为异常,以及多个 cleanup 步骤共享超时导致后续资源未关闭的问题。
123
- - 修复旧版 turn lease 在进程重启后可能长期占用 Session、阻塞后续操作的问题。
146
+ - Fixed completed Agent Team subtasks continuing to accumulate elapsed time after restoring a historical Session.
147
+ - Fixed terminal EOF being reported as abnormal and cleanup steps sharing one timeout that prevented later resources from closing.
148
+ - Fixed legacy turn leases surviving restarts and blocking future Session work.
124
149
 
125
150
  ## 0.2.1 · 2026-08-20
126
151
 
127
- ### 体验改进
152
+ ### Improved
128
153
 
129
- - `/settings` 会同时展示 Regular 与 Fullscreen 的实际布局差异;方向键只移动焦点,确认后才应用所选模式。
154
+ - `/settings` shows the actual Regular and Fullscreen layouts. Arrow keys move focus and the selection is applied only after confirmation.
130
155
 
131
- ### 问题修复
156
+ ### Fixed
132
157
 
133
- - 修复 Fullscreen 输入框总是滞后一帧,必须再按一次键才显示上一个字符的问题。
158
+ - Fixed Fullscreen Composer input lagging one frame and requiring another keystroke to display the previous character.
134
159
 
135
160
  ## 0.2.0 · 2026-08-20
136
161
 
137
- ### 新增功能
162
+ ### Added
138
163
 
139
- - 重建终端渲染与输入基建,统一 regular/fullscreen、Markdown、Unicode、图片、键盘、鼠标、搜索和窗口 resize 行为。
140
- - Permission 请求改为完整的审批卡片,清晰展示命令、文件、匹配规则和风险,并区分单次允许、会话允许与拒绝;审批会保持打开,直到 Runtime 确认结果。
141
- - SSH 会话中的 `/copy` 支持通过终端协议写入本地剪贴板;任务完成通知也会按终端能力去重发送。
142
- - 新增 `sessionTitle.enabled` 配置,可以关闭 Runtime 的 Session 标题模型请求。
164
+ - Rebuilt terminal rendering and input around consistent Regular/Fullscreen, Markdown, Unicode, image, keyboard, mouse, search, and resize behavior.
165
+ - Permission requests now use complete approval cards that show commands, files, matching rules, and risk, with once, Session, and deny choices. Cards remain open until Runtime confirms the result.
166
+ - `/copy` in SSH sessions can write to the local clipboard through terminal protocols, and completion notifications are deduplicated according to terminal capabilities.
167
+ - Added `sessionTitle.enabled` to disable Runtime model requests for Session titles.
143
168
 
144
- ### 体验改进
169
+ ### Improved
145
170
 
146
- - 重新设计 `/context`、`/usage` 与 `/status`,用容量、比例和状态层级展示上下文构成、Token 用量、模型、推理强度、Compaction 与运行状态。
147
- - Runtime 会根据剩余上下文动态调整输出预算和 Compact 水位,长会话不再因为模型的完整输出上限过早压缩,同时保留安全的单轮输出空间。
148
- - 长任务存在未完成 Todo 时,Agent 会按 assistant iteration 节奏重新检查任务进度,减少长时间执行后遗漏剩余步骤。
149
- - Project 级 Skill 会正确进入 TUI Slash Command 补全;MCP Server 冷启动期间保持启动中状态,不再因首次查询超时误报失败。
150
- - fullscreen 中滚动、搜索、选择和 tail follow 由同一 viewport 管理;regular 与 fullscreen 切换不会重建 Runtime,也不会丢失 Session、Draft、附件或阻塞交互。
171
+ - Redesigned `/context`, `/usage`, and `/status` to show context composition, token usage, model, reasoning effort, Compaction, and run state through clear capacity, ratio, and status hierarchy.
172
+ - Runtime dynamically adjusts output budgets and Compact thresholds from remaining context, avoiding premature compaction while reserving safe output space for each turn.
173
+ - Long tasks with incomplete Todos recheck progress on the assistant-iteration cadence, reducing forgotten remaining steps.
174
+ - Project Skills correctly enter TUI Slash Command completion. MCP Server cold starts remain in a starting state instead of being reported as failed after the first query timeout.
175
+ - Fullscreen scrolling, search, selection, and tail follow share one viewport. Switching between Regular and Fullscreen preserves Runtime, Session, Draft, attachments, and blocked interactions.
151
176
 
152
- ### 问题修复
177
+ ### Fixed
153
178
 
154
- - 修复 fullscreen 中 Slash Command 补全或功能列表展开时输入框被裁掉、退出后需要额外按键才恢复的问题。
155
- - 修复 fullscreen AskUser 覆盖最近消息,以及 namespaced AskUser Tool 完成态泄漏到 Transcript 的问题。
156
- - 修复流式返回时切换 Tool details 导致 viewport 闪回顶部;Windows 图片粘贴改为优先提示 `Alt+V`,并以`Ctrl+Z` 提供不与 Windows Terminal 缩放冲突的 Editor/Draft undo。
157
- - 修复 PowerShell 中通过 `Ctrl+G` 编辑 Draft 后,外部编辑器退出但 Composer 无法继续输入的问题。
158
- - 修复 regular 模式下 Runtime 状态刷新会打断 Slash Command 候选,导致第一次 `/` 不显示、后续输入与候选慢一拍的问题。
159
- - 修复 regular 模式下长 AskUser、Queue 和 Plan viewer 被直接裁掉,导致问题、当前选项或文档内容不可见的问题。
160
- - 将 Settings、AskUser 等交互对 Composer 的替换逻辑统一为 Pi 的挂载状态语义,避免切换空帧中输入框闪现但无法输入,或交互结束后旧内容残留。
161
- - 修复后台 Subagent 完成后复用上一条 Query 的折叠状态和计时,以及 `/review` 排队消息来源与气泡无法正确对账的问题。
162
- - 修复开启加速索引时,已经失效的 Workspace 阻断当前 Session 继续发送的问题。
163
- - 修复 Windows 本地文件工具的 Read-Before-Write 路径身份不一致,以及 PowerShell 将 `mcode.ps1` 解析为启动器时被安装器误判失败的问题。
164
- - 修复 `/update` 在 npm prefix 内原地覆盖导致 native module 锁冲突的问题,更新改为隔离 staging 后原子切换。
179
+ - Fixed the Composer being clipped when Slash Command completion or feature lists expand in Fullscreen, and requiring another keystroke after closing.
180
+ - Fixed Fullscreen AskUser covering the latest message and namespaced AskUser Tool completion leaking into the Transcript.
181
+ - Fixed Tool-detail toggles jumping the viewport to the top during streaming. Windows image paste now prefers `Alt+V`, while `Ctrl+Z` provides Editor/Draft undo without conflicting with Windows Terminal zoom.
182
+ - Fixed the Composer remaining unusable after editing a Draft through `Ctrl+G` in PowerShell and closing the external editor.
183
+ - Fixed Runtime status updates interrupting Regular-mode Slash Command candidates so the first `/` showed nothing and later input lagged behind suggestions.
184
+ - Fixed long AskUser, Queue, and Plan viewer content being clipped in Regular mode.
185
+ - Unified Settings, AskUser, and similar Composer replacement with Pi mount-state semantics, preventing unusable input flashes during empty transition frames and stale content after interactions.
186
+ - Fixed completed background Subagents reusing the previous Query collapse and timing state, and `/review` queued-message sources failing to reconcile with their bubbles.
187
+ - Fixed invalid Workspaces blocking the current Session when accelerated indexing was enabled.
188
+ - Fixed Windows local-file tools disagreeing on Read-Before-Write path identity and installers mistaking `mcode.ps1` for the launcher in PowerShell.
189
+ - Fixed `/update` replacing files in place under the npm prefix and colliding with locked native modules; updates now use isolated staging and atomic activation.
165
190
 
166
191
  ## 0.1.6 · 2026-08-19
167
192
 
168
- ### 问题修复
193
+ ### Fixed
169
194
 
170
- - 修复 Node.js
171
- 26 环境下图片生成、图片搜索与下载、反向搜图、视频和音频等 Matrix 长耗时工具调用失败并提示
172
- `fetch failed` 的问题。
195
+ - Fixed long-running Matrix tools such as image generation, image search/download, reverse image search, video, and audio failing with `fetch failed` on Node.js 26.
173
196
 
174
197
  ## 0.1.5 · 2026-08-19
175
198
 
176
- ### 新增功能
199
+ ### Added
177
200
 
178
- - 新增
179
- `/retry`,可在 Provider 或网络故障后重新发送保留的消息;恢复历史 Session 时也能继续未完成的请求,Goal 被阻塞后可以直接恢复。
180
- - 状态栏支持按配置选择和排列目录、Session、Git、模型、推理强度、上下文等信息,并可显示当前运行状态。
201
+ - Added `/retry` to resend retained messages after Provider or network failures, continue incomplete requests in restored Sessions, and resume blocked Goals.
202
+ - The status bar can select and order workspace, Session, Git, model, reasoning effort, context, and other fields, including current run state.
181
203
 
182
- ### 体验改进
204
+ ### Improved
183
205
 
184
- - Provider、网络、鉴权和限流错误会给出更清晰的原因与下一步操作;自动重试期间会展示重试进度,失败上下文不会因切换或恢复 Session 丢失。
185
- - MCP Server 冷启动期间保持启动中状态,不再因首次状态查询超时而误报失败。
186
- - 模型与推理强度会在首轮请求前正确生效;BYOK 连通性测试和 Codex OAuth 代理行为更准确。
187
- - 安装器优先安全复用兼容的系统 Node.js,保留已有 PATH,并支持显式选择经过校验的中国大陆下载镜像。
206
+ - Provider, network, authentication, and rate-limit errors provide clearer causes and next steps. Automatic retries show progress, and failure context survives Session switches and restoration.
207
+ - MCP Server cold starts remain in a starting state instead of being reported as failed after the initial status timeout.
208
+ - Model and reasoning effort are applied before the first request. BYOK connectivity checks and Codex OAuth proxy behavior are more accurate.
209
+ - Installers safely reuse a compatible system Node.js, preserve the existing PATH, and support an explicitly selected and verified mainland China download mirror.
188
210
 
189
- ### 问题修复
211
+ ### Fixed
190
212
 
191
- - 修复 PowerShell 和 Windows Terminal 中拖选消息并复制时输入框 Draft 被清空的问题。
192
- - 修复 `/quit` 被恢复为输入框 Draft,以及恢复 Session 时误触发 Queue 发送的问题。
193
- - 修复图片粘贴后消息重复显示、Goal 内联附件无法启动和历史分页后执行耗时丢失的问题。
194
- - 修复 Windows launcher 路径转义与部分安装、更新场景的兼容性问题。
213
+ - Fixed drag-selecting and copying messages in PowerShell or Windows Terminal clearing the Composer Draft.
214
+ - Fixed `/quit` being restored into the Composer Draft and Session restoration accidentally sending queued messages.
215
+ - Fixed duplicate message display after image paste, Goal inline attachments failing to start, and elapsed time disappearing after history pagination.
216
+ - Improved Windows launcher path escaping and compatibility across partial install and update scenarios.
195
217
 
196
218
  ## 0.1.4 · 2026-08-18
197
219
 
198
- ### 新增功能
220
+ ### Added
199
221
 
200
- - 新增 `/goal`,可以在 TUI 中创建、查看和管理当前 Session
201
- Goal,并查看目标状态、进度和耗时;Goal 语义与 Desktop 和 Runtime 保持一致。
202
- - 新增 Plugin 管理:`mcode plugin` 和交互式 Plugin
203
- manager 支持浏览官方与本地来源、安装、启用、停用和移除 Plugin。
204
- - 完善 `/provider` 与 `/model`:可以查看和测试 Provider,在 MiniMax OAuth 与 API
205
- Key 之间切换,并选择模型和推理强度;当前模型与推理档位会同步显示在状态栏和 `/status` 中。
206
- - 完善 ACP 与持续协作:支持持久化 Session 的列举、加载、恢复和关闭;运行中可以 Queue 后续消息并 steer 当前 Draft 或下一条排队消息,`/new`
207
- 不再破坏 Session 的对应关系。
222
+ - Added `/goal` for creating, viewing, and managing the current Session Goal, including status, progress, and elapsed time consistent with Desktop and Runtime semantics.
223
+ - Added Plugin management through `mcode plugin` and the interactive Plugin manager for browsing, installing, enabling, disabling, and removing official or local Plugins.
224
+ - Expanded `/provider` and `/model` for viewing and testing Providers, switching between MiniMax OAuth and API Key, and selecting a model and reasoning effort reflected in the status bar and `/status`.
225
+ - Expanded ACP and continuous collaboration with persistent Session listing, loading, restoration, and closing. Running work can Queue follow-ups and steer the current Draft or next queued message without `/new` breaking Session identity.
208
226
 
209
- ### 体验改进
227
+ ### Improved
210
228
 
211
- - 鼠标滚动、`PgUp` /
212
- `PgDn`、拖拽选区和复制体验统一优化;选区会随内容滚动保持定位,并支持拖拽选区自动滚动,非 TTY 和兼容终端继续使用终端原生 scrollback。
213
- - 新增 `/context` 与 `/usage` 的可视化信息,展示上下文窗口、Token 构成、会话用量和 Compaction 状态。
214
- - 工具调用、Skill 补全和 Queue 消息展示更及时;生成文件回执改为清晰的可点击路径,点击即可打开对应文件或目录。
215
- - Permission、Questionnaire 和 Compaction 请求统一按 Runtime 合同处理,减少等待中的请求状态丢失或重复展示。
229
+ - Unified mouse-wheel, `PgUp`/`PgDn`, drag selection, and copy behavior. Selections remain anchored while scrolling and support drag autoscroll; non-TTY and compatible terminals retain native scrollback.
230
+ - Added visual `/context` and `/usage` information for context window, token composition, Session usage, and Compaction state.
231
+ - Tool calls, Skill completion, and Queue messages update sooner. Generated-file receipts use clear clickable paths that open the file or directory.
232
+ - Permission, Questionnaire, and Compaction requests share the Runtime contract, reducing lost or duplicate waiting-state requests.
216
233
 
217
- ### 问题修复
234
+ ### Fixed
218
235
 
219
- - 修复拖拽选区滚动时的复制错位,以及 Queue 消息延迟上屏的问题。
220
- - 修复启用 `mcode-tools` 开关后内置 Matrix 工具被错误裁剪的问题。
221
- - 修复 Windows 与 WSL 图片粘贴,以及 TUI 生成文件路径展示中的兼容性问题。
236
+ - Fixed copy offsets while scrolling a drag selection and delayed display of queued messages.
237
+ - Fixed built-in Matrix tools being incorrectly trimmed when the `mcode-tools` switch was enabled.
238
+ - Fixed image paste on Windows and WSL and cross-platform generated-file path display.
222
239
 
223
240
  ## 0.1.3 · 2026-08-17
224
241
 
225
- ### 新增功能
242
+ ### Added
226
243
 
227
- - 通过 ACP 接入编辑器时,可以在重启后重新打开或继续之前的 Session,并修复 `/new`
228
- 可能导致的 Session 错乱。
229
- - `mcode exec` 的 JSON 输出会携带实际使用的模型信息,方便统计用量。
230
- - 新增 `/copy`
231
- 命令,将最近一条 Assistant 回复复制到系统剪贴板并保留 Markdown 格式;没有可复制回复或剪贴板不可用时,会给出明确提示和手动复制路径。
244
+ - ACP editor integrations can reopen or continue an earlier Session after restart, with fixes for `/new` causing Session mismatches.
245
+ - `mcode exec` JSON output includes the model actually used for usage analysis.
246
+ - Added `/copy` to copy the latest Assistant response to the system clipboard as Markdown, with clear feedback and a manual-copy path when no response or clipboard is available.
232
247
 
233
- ### 体验改进
248
+ ### Improved
234
249
 
235
- - Session 标题更准确,工具调用和 Skill 补全也更清晰。
236
- - macOS 滚动快捷键改为更符合实际键盘的 `Fn` 组合键提示。
250
+ - Session titles are more accurate, with clearer Tool calls and Skill completion.
251
+ - macOS scrolling shortcuts now use `Fn` labels that match physical keyboards.
237
252
 
238
- ### 问题修复
253
+ ### Fixed
239
254
 
240
- - 使用 MiniMax API Key 时,未登录状态也能正常开始对话。
241
- - 修复交付文件路径后粘连额外文本,以及输入框光标和边框频繁闪烁的问题。
242
- - 改进 WSL 登录和 Windows PowerShell 安装器的兼容性。
255
+ - MiniMax API Key users can start conversations without signing in.
256
+ - Fixed extra text attaching to delivered file paths and frequent Composer cursor/border flicker.
257
+ - Improved WSL sign-in and Windows PowerShell installer compatibility.