fix(session): 区分运行时快照与重启恢复 - #11
Merged
Merged
Conversation
Signed-off-by: hexin <372726039@qq.com>
6 tasks
公开 fork 基线丢失了仍被分支保护要求的 Gitleaks 和 check workflow。恢复原有扫描、workspace check 与 forkguard 测试,使 PR 能由真实门禁验证。 Signed-off-by: hexin <372726039@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No-Issue: pinvou-agent v0.9.5 桌面会话回归修复,无独立 CodeWhale Issue。
背景
v0.9.5 的
SessionManager::load_session会在每次读取时修复无配对的tool_use。嵌入宿主可能在工具仍执行时持久化并读取会话,这会把在途调用误判为进程崩溃,污染会话历史。公开 fork 基线同时丢失了分支保护仍要求的
Pinvou fork CI,导致Gitleaks与check两个 required context 永远无法产生。变更
load_session_snapshot,供运行时读取使用recover_session_for_resume,返回可观测的恢复统计并由宿主决定何时持久化load_session的既有恢复语义,避免改变 CodeWhale 独立恢复流程验证
cargo fmt --all -- --checkcargo test -p codewhale-tui forkguard_ -- --nocapture:23 passed边界与风险
load_session调用方行为发布
2eceab4e19cb0b15576c09d5b89e0d8bc42e11fdpinvou-v0.9.5-r5关联