Skip to content

v1.21.0 — Session/Streaming Stability + Self-Evolution Closed Loop #77

Description

@xg-gh-25

🎉 v1.21.0 — Session/Streaming Stability + Self-Evolution Closed Loop

✅ RELEASED 2026-06-25Release v1.21.0 · CI green · deployed.
Kept open as the milestone record for our biggest release to date.

296 commits since v1.20.1 (2026-06-18). A full week of heavy stability work — theme: make the chat experience never lose your work, and make the system fix its own recurring mistakes.


💡 What this means for you (user-facing benefits)

Before After
切 tab / resume 时,完整的回复有时被截断或整段消失 回复永远完整落地——单一渲染源结构性根治了这个 #1 复发 bug
网络/SSE 断开 → 正在生成的长回复丢失 断连不再杀子进程,输出落库可恢复,回来还在
多个 tab 同时跑 → session "乱套"、互相挤占、偶发 OOM 每个 tab 资源独立仲裁、严格隔离,跑满也不互相干扰
Agent 卡住(工具 hang / 等输入)→ 整个会话僵死 多条逃逸路径自动恢复,卡死能自愈
流式输出纯文本到结尾才突然变 markdown,长回复还卡顿 流式过程就是实时 markdown(标题/列表/代码/公式),节流到 ~100ms 既流畅又不卡
headless/后台任务里遇到要确认的问题 → Agent 自问自答蒙混过去 真正阻塞等你回答,不再替你瞎拍板
同一类错误反复犯,只能靠你每次抓 系统自动记录认知偏差、到阈值自动提结构性修复方案

一句话:这一版主要让你不再丢失工作——回复不截断、断连不丢、多 tab 不打架、卡死能自愈、流式实时渲染。


🔧 Function summary (technical)

  1. Session/Streaming/Recovery 稳定性 (~70 commits) — 最大头

    • R6 session 资源仲裁 + 多 tab 严格隔离(orphan-only eviction、独立 concurrent-streaming cap、TTL 12h→24h)
    • RecoveryCoordinator 统一恢复决策 + crash_to_cold TOCTOU 关闭
    • reconcile-gap 截断渲染根治(单一渲染源,COE07/08/09 类复发 Add Ollama support (local + cloud) with automatic model detection and OpenAI-compatible fallback #1
    • SSE 断连不杀子进程,输出落库可恢复;reconnect budget ~65s
    • OOM / tool-hang / stuck-WAITING 逃逸路径 + dumb-spawn watchdog
    • 流式 markdown 节流渲染——实时 markdown,O(n²) 重解析降为时间有界(commit dc9d3132
  2. AskUserQuestion block-hook (10) — headless 模式真阻塞等用户答,不再自问自答;断连后自动重发被吞的问题

  3. Pipeline 加固 (~20) — completion gate fail-closed、FAILED-vs-ERRORED 区分、adversarial 双闸、universal Understanding Gate (Gate 0)

  4. 自进化 v3 + Eval (~40) — OT07 认知缺口闭环(自动记录 + escalation ladder + Governance tab + growth report)、行为轨迹 eval(M3/M4/M5)、噪声闸门、Golden Set self-evolving

  5. DDD reclaim (11)、daemon 日志轮转 / zombie-subprocess backoff (~6)、Reversible Context Recall、deps/db/ui 杂项


Commit breakdown (v1.20.1..v1.21.0, verified 2026-06-26)

77 feat · 150 fix · 24 docs · 23 test · 7 chore · 5 refactor · 2 governance · 2 reflect · +misc (revert/perf/merge/debug/build) = 296 total

Release checklist ✅

  • 修陈旧测试断言(COE01 platform-divergence + tab-bar)— push 前 CI 抓到 5 个陈旧测试失败,已全修
  • 全部 commit push 进 origin/main(CI 在 229 个未验证 commit 上跑绿)
  • push 后确认 CI 绿
  • s_swarm-release → v1.21.0(build + package + smoke + publish)✅
  • 部署上线(backend daemon = HEAD healthy;frontend 新 .app 嵌入流式节流修复)
  • 收尾:DMG size 判据修复(>30MB>5MB,6 个 release 实测 ~10.3MB)+ streaming-markdown half-fix 补全

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Important — significant impactenhancementNew feature or requeststreamingSSE/streaming pipeline

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions