Reasonix v1.21.2

Desktop桌面端
CLI v1.21.2 Desktop v1.21.2 npm 1.21.2

This release raises output budgets to 128K, introduces cache-aware context projection for more efficient history management, hardens agent behavior with work-practice policies, and fixes issues in file tools, sandbox detection, hooks, and updates.此版本将输出预算提升至 128K,引入缓存感知上下文投影以更高效管理历史,通过工作实践策略加固 Agent 行为,并修复了文件工具、沙箱检测、钩子和更新等方面的诸多问题。

01

Start here使用攻略

02

Highlights重点内容

01
New新增

Raised output budgets to 128K with cache-aware context projection输出预算提升至 128K,并引入缓存感知上下文投影

Provider-scoped output budgets now support 128K-class reasoning ceilings for compatible providers. Cache-aware context projection separates durable history from the model-visible request, preserving the canonical transcript and using cache state only for cost strategy. Cold/warm/unknown resume no longer rewrites history.支持 provider 的默认输出预算提升至 128K。缓存感知上下文投影将持久历史与模型可见请求分离,保留完整 canonical transcript,缓存状态仅用于成本策略。冷/热/未知恢复不再重写历史。

02
New新增

Work-practice policy hardens agent behavior工作实践策略加固 Agent 行为

A new work-practice policy is appended to every system prompt, ensuring the agent implements the requested approach exactly, keeps scratch out of the repo, and scales verification to the change size. This applies to all runs, not just benchmarks.新增工作实践策略,附加到每个系统提示中,确保 Agent 严格实现所请求的方法、不将临时文件留在仓库中,并根据变更规模调整验证范围。适用于所有运行,而非仅基准测试。

03
Improved改进

Streaming performance: coalesced deltas and per-block Markdown parsing流式性能提升:合并增量与按块解析 Markdown

Streaming deltas are now coalesced before reaching the frontend, reducing IPC overhead. Markdown is parsed per completed block instead of per tick, cutting parse count dramatically for typical answers. Frame deltas are folded into one reducer pass per tab, lowering UI thread load.流式增量在到达前端前合并,减少 IPC 开销。Markdown 按已完成块解析而非每次 tick 解析,大幅降低典型回答的解析次数。每帧增量合并为每个标签页一次 reducer 处理,降低 UI 线程负载。

04
Fixed修复

File tools now route through FileOverlay and writes are atomic文件工具通过 FileOverlay 路由,写入操作原子化

All file-editing tools (edit_file, multi_edit, delete_range, etc.) now respect the host FileOverlay, preventing overwrites of unsaved editor buffers. File writes are atomic, using temp-file-and-rename to avoid corruption on crash.所有文件编辑工具(edit_file、multi_edit、delete_range 等)现在遵循宿主 FileOverlay,防止覆盖未保存的编辑器缓冲区。文件写入采用临时文件加重命名的原子操作,避免崩溃时损坏。

05
Fixed修复

Sandbox detection probes usability, not just PATH presence沙箱检测探测可用性,而非仅检查 PATH 存在

On macOS, sandbox-exec availability is now probed with a minimal profile, correctly reporting unavailability on restricted systems where it exists but cannot apply sandboxing. This prevents silent enforcement failures.在 macOS 上,现在通过最小配置文件探测 sandbox-exec 的可用性,正确报告在受限系统上不可用的情况(存在但无法应用沙箱),防止静默执行失败。

06
Fixed修复

Self-healing stuck pending updates and version normalization自愈卡住的待更新事务与版本号归一化

Stuck in-app updates now self-heal: stale probationary updates auto-commit after 24h, version comparison normalizes leading 'v', and a new 'Discard previous update' button allows manual recovery. Recovery docs updated.卡住的应用内更新现在可自愈:过期的试用更新在 24 小时后自动提交,版本比较归一化前导 'v',新增「放弃上次更新」按钮允许手动恢复。更新了恢复文档。

07
Fixed修复

Prevent stale results after reasoning-only stops防止仅推理停止后出现陈旧结果

Internal consumers like sub-agents and planners now require a visible final answer. Reasoning-only stops trigger a bounded retry, and cleanup is compaction-aware, preserving completed evidence. Guardian reviews fail closed after empty finals.子代理和规划器等内部消费者现在要求可见的最终答案。仅推理停止会触发有限重试,清理操作感知压缩,保留已完成的证据。Guardian 审查在空最终结果后安全关闭。

08
Fixed修复

Windows POSIX hook scripts normalized across sourcesWindows 多来源 Hook 的 POSIX 脚本执行归一化

POSIX shebang scripts from plugins, projects, and global hooks on Windows are now detected and routed through Git Bash. Paths are normalized, and Bash dependencies are visible to diagnostics.Windows 上来自插件、项目和全局钩子的 POSIX shebang 脚本现在被检测并通过 Git Bash 执行。路径已归一化,Bash 依赖项对诊断可见。

03

New新增

UI latency telemetry with performance budgets带性能预算的 UI 延迟遥测

Desktop now records UI latency metrics (frame duration, input latency, markdown parse time, etc.) via anonymous counters, with documented performance budgets. No message content is collected.桌面版现在通过匿名计数器记录 UI 延迟指标(帧持续时间、输入延迟、Markdown 解析时间等),并附有文档化的性能预算。不收集消息内容。

Per-task trajectory recording and wall-time attribution按任务轨迹记录与耗时归因

The CLI and benchmark harness can now record per-task event trajectories (--trajectory) and attribute wall time to tools vs. model thinking. Reports include time attribution when trajectories are recorded.CLI 和基准测试工具现在可以记录每个任务的事件轨迹(--trajectory),并将耗时归因于工具执行与模型思考。记录轨迹时,报告包含时间归因。

Tool result timestamps for time attribution工具结果时间戳用于耗时归因

Tool results now carry absolute start/end timestamps, enabling reconstruction of where a turn's time went. Cancelled or skipped calls carry zero timestamps.工具结果现在携带绝对开始/结束时间戳,可重建回合时间分配。已取消或跳过的调用时间戳为零。

04

Improved改进

Linting and code quality gates expanded代码检查与质量门禁扩展

Function size and complexity are now gated in CI. File-size ceiling extended to TypeScript. All build tags are linted across platforms. Modern Go idioms adopted and enforced.函数大小和复杂度现在在 CI 中设限。文件大小上限扩展到 TypeScript。所有构建标签跨平台检查。采用并强制执行现代 Go 惯用法。

Error comparison hardened错误比较加固

All error comparisons now use errors.Is/As through the unwrap chain, preventing silent breakage when errors are wrapped. Hand-rolled unwrap helpers removed.所有错误比较现在通过解包链使用 errors.Is/As,防止包装错误时静默失效。移除了手动解包辅助函数。

Comment style cleaned up注释风格清理

Section-banner decorations removed from comments across the codebase, with a zero-tolerance gate in repolint.代码库中注释的分节横幅装饰已移除,repolint 中设为零容忍门禁。

05

Fixed修复

CLI metrics sink double-forwarding fixed修复 CLI 指标接收器重复转发

A bug where every event was forwarded twice on --metrics runs has been fixed, restoring single-forward behavior.修复了 --metrics 运行时每个事件被转发两次的错误,恢复单次转发行为。

Session concurrency test stays within race budget会话并发测试保持在竞态预算内

Reduced the volume of the session concurrency test to avoid timeout under the race detector, while maintaining overlap coverage.减少会话并发测试的规模,避免在竞态检测器下超时,同时保持重叠覆盖。

CLI and SSH tests no longer reach the outside worldCLI 和 SSH 测试不再访问外部网络

Tests that were inadvertently making real API calls or shelling out to host SSH are now properly isolated.无意中进行真实 API 调用或调用主机 SSH 的测试现已正确隔离。

PR metadata gate rules documented and correctedPR 元数据门禁规则文档化并修正

The Documentation-impact gate is now documented, and the rejected-values line was corrected to match actual enforcement.Documentation-impact 门禁现已文档化,并修正了拒绝值行以匹配实际执行。

06

Upgrade notes升级提醒

i

Stuck updates self-heal卡住的更新自愈

If you have a stuck pending update, it will auto-commit after 24 hours if install evidence holds. You can also discard it from Settings.如果您有卡住的待更新事务,若安装证据有效,将在 24 小时后自动提交。您也可以从设置中放弃它。

07

Thanks致谢

This release was shaped by:感谢本版本的贡献者:

@esengine@github-actions[bot]@clearnature@chuiwenwei@SivanCola@Nath-Vikky

Ready when you are准备好即可升级

Ship with a safer Reasonix.升级到更可靠的 Reasonix。