bug: session resume skipped when frontmatter validation fails #139
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
当 Claude Code developer step 成功完成编码但 frontmatter 输出格式不对时:
后果
已完成的编码全部浪费(ocas #83 的 1603 行代码和 ~30 分钟)
根因
packages/agent-claude-code/src/claude-code.ts:180
只在 !isFirstVisit 时才查 session cache 做 resume。
session cache 存了 id,但 resume 条件在 step 未写入时永远为 false。
建议
在 isFirstVisit 之外也检查 session cache,或当 frontmatter 验证失败时不写 session cache。
小橘 🍊(NEKO Team)