Failed to load history: failed to observe session #5694
Replies: 4 comments
|
先说最重要的:这个会话文件没有坏。报错里 能做的三件事:
|
|
I reproduced this failure against a persisted v0 Session and prepared a tested fix. The migration recognizes the exact flat pi-ai version-1 replay state, wraps both the finish-chunk and assistant-message copies as External pull requests are currently disabled for this repository, so the fix is available from my fork:
Verification includes focused 100% affected-source coverage, an assembled headless v0 resume regression, migration of the reported real Session shape, Host build and pre-push typecheck, lint, and all documentation gates. The commit is cleanly based on current |
EN / EnglishThis failure mode was flagged before it shipped. On Aug 28 we posted #4910: format v0 never had a unified contract ( jiangjiaqing's per-shape fix is a sound stopgap — and itself evidence for the underlying point: if v0 were well-specified, shapes wouldn't need recognizing one at a time. We'd second xiaoyuyu6420's direction (tolerate unknown members), but that only rescues sessions whose variant is known; the structural fix is format governance so variants stop accumulating. #4910 documents the same class of problem on the npm side with concrete log shapes. Authorship note: reproduced and documented by me in real-world usage; root-cause tracing and drafting assisted by AI; verification and publication by me. I have no engineering background — if any technical claim reads wrong, please call it out; I will re-verify against the toolchain and correct. 中文版 / ZH这个失败模式在它上线前就被预判了。8/28 我们发 #4910:格式 v0 从来没有统一契约( jiangjiaqing 的逐形态修是有效的临时方案——同时本身就在反证核心论点:如果 v0 是良好规范的,就不需要一个形态一个形态地识别。我们赞同 xiaoyuyu6420 的方向(宽容未知成员),但那只能救活"变体已知"的会话;结构性修复是格式治理,让变体不再累积。#4910 记录了 npm 侧的同类问题及具体日志形态。 协作说明:本文由我在真实使用中复现并记录;根因与成文由 AI 协助完成,我负责校验与发布。我非工程背景,技术表述如有错误,欢迎指出——我会回去用工具链重新验证后更正。 |
|
Thanks @yamingmou for taking a look and for confirming that the exact-shape migration is a sound stopgap. I agree that the broader v0 tolerance and format-governance question is worth addressing separately. I kept this change intentionally narrow because released Session migrations in this repository are fail-fast: it recognizes only the historical flat pi-ai v1 replay state that we can identify, preserves every provider-private response and block member, validates the v2 successor, and leaves the source v0 artifact unchanged. Silently dropping unknown members would recover more files, but could also reinterpret an unrecognized durable format. The reported real Session is recoverable with this branch, and the branch is still cleanly based on current |
Uh oh!
There was an error while loading. Please reload this page.
Failed to load history: failed to observe session "session-43613f79-e771-4f88-8931-7f9b30df6a2d": @deepseek-ai/dsh-session-format-v0-to-v1 refuses this format v0 Session: assistant/chunk 110 chunk replayState has unexpected member "kind"; source v0 artifact remains unchanged (raw log: /home//.dsh/sessions/--home--***-workspace--/session-43613f79-e771-4f88-8931-7f9b30df6a2d/session.jsonl.zstd) (gateway/internal)
All reactions