chore: add changeset for session resume fix (#139)
CI / check (pull_request) Successful in 2m4s

This commit is contained in:
2026-06-07 03:03:55 +00:00
parent 2e7e5f6ec4
commit 13c0812944
@@ -0,0 +1,9 @@
---
"@united-workforce/util-agent": patch
"@united-workforce/agent-claude-code": patch
"@united-workforce/agent-hermes": patch
---
fix: decouple session resume from isFirstVisit guard
When frontmatter validation fails, the step is never written to CAS, so isFirstVisit remains true on the next run. Both adapters now always check the session cache regardless of isFirstVisit. When resuming after a frontmatter-only failure (isFirstVisit + cache hit), a minimal correction prompt is sent via buildFrontmatterRetryPrompt() instead of re-sending the full initial prompt.