Skip to content

v0.6.0

Choose a tag to compare

@Jaylor-Wang Jaylor-Wang released this 05 Nov 15:37
· 32 commits to main since this release

What's Changed in v0.6.0

🚀 Enhancements & Bug Fixes

  • Multi-Session Telemetry Stream Attribution: Accurately attribute LLM stream tokens, latency, and requests to concurrent sessions using request sessionId, and clean up session records on session/disposed.
  • Windows Path Casing Normalization: Ensure case-insensitive path normalization and invocation identity hashing on Windows, reliably intercepting repeated identical failures (NO_PROGRESS) regardless of case variations.
  • Unified ctx.fs Backend Existence Probe: Refactor fileMutationPolicy to probe file existence through the shared ctx.fs backend (resolve and stat), preventing false negatives on virtual, sandbox, or non-host filesystems even without prior reads in the current turn.

🧪 Testing & Verification

  • Added mock ctx.fs test fixture to the test runtime mapping virtualFs.
  • Added regression tests for concurrent stream attribution, Windows path case-folding, and blind large write interception over backend files.
  • All 13 integration tests passing with zero TypeScript / linter errors.

🇨🇳 中文更新日志 (Release Notes in Chinese)

🚀 功能增强与问题修复

  • 多会话遥测流精准归属:支持按请求附带的 sessionId 精确归属 LLM 流式 Token、请求数及耗时,彻底解决并发交错流的遥测统计串线问题;在 session/disposed 生命周期事件触发时安全释放映射,防止内存泄漏。
  • Windows 路径大小写归一化:在 Windows 环境下对盘符与完整路径进行不区分大小写的标准归一化与调用指纹哈希,可靠拦截因路径大小写差异导致的无效重试死循环(NO_PROGRESS)。
  • 统一接入 ctx.fs 后端状态探针:fileMutationPolicy 优先调用底层 ctx.fs.resolve 与 ctx.fs.stat 进行文件存在性探测,彻底消除虚拟文件系统、沙箱环境与宿主物理磁盘的视图不一致;即使模型在本轮中未先执行 read 探测,也能精准拦截对已有文件的大量全写覆盖。

🧪 测试与质量验证

  • 在集成测试运行时提供规范的 ctx.fs Fixture,无缝映射虚拟文件系统(virtualFs)。
  • 新增针对并发交错流遥测、Windows 路径大小写折叠以及未预读后端文件的全写阻断 3 项回归测试。
  • 全套 13 项官方 agent loop 集成测试全部通过,TypeScript 声明严格校验零错误。