Skip to content

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 22 Aug 12:38
· 2 commits to main since this release
v0.2.3
697e5c1

修复(关键)

  • CLI 中间件把派发上下文丢弃、改用 context.Background() 调用各命令,导致
    SIGINT/SIGTERM 取消信号无法传入 handler——oss serve 收到 SIGTERM 后不再
    优雅关停(挂起直至强杀)、oss cat/ls 等大输出场景 Ctrl-C 也无法中断。
    已修复为透传信号上下文:serve/mcp 恢复 1 秒内优雅退出,流式命令可随时中断

升级

  • xyz-go v0.3.1 → v0.3.2:serve/mcp 改用其新的 CliHints.Daemon 声明式标记
    (长驻命令:隐式不进入 HTTP/MCP 通道、不渲染返回值、ctx 取消即退出 0),
    替代此前仅靠"不给 HTTP/MCP hint"的约定式隔离

v0.2.3 — fix signal cancellation; xyz-go v0.3.2 declarative daemon commands

Fix (critical)

  • The CLI middleware discarded the dispatch context and invoked handlers
    with context.Background(), so SIGINT/SIGTERM never reached them — oss serve
    no longer shut down gracefully on SIGTERM (hanging until force-killed), and
    long streaming commands (cat/ls) could not be interrupted with Ctrl-C.
    The signal context is now passed through: serve/mcp exit gracefully within
    a second, streaming commands can be interrupted at any time

Upgrade

  • xyz-go v0.3.1 → v0.3.2: serve/mcp adopt the new CliHints.Daemon marker
    (blocking commands: implicitly excluded from the HTTP/MCP channels, no
    result rendering, exit 0 on ctx cancellation), replacing the previous
    convention-only isolation