Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
|
To use Codex here, create an environment for this repo. |
3 tasks done
Owner
|
感谢贡献!我们已关注到这个 PR,会尽快安排审查。 |
Owner
|
感谢你的贡献!想确认一下,这个 PR 当前是否已经准备好转为正式 PR(Ready for review),进入评审? 如果已经准备好,欢迎取消草稿状态;如果仍在开发、存在阻塞或希望暂缓,也欢迎简单说明当前进展,方便我们安排后续评审。谢谢! |
Collaborator
|
感谢排查与贡献!合成 |
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.
Problem and change
A completed Claude Code autonomous Turn can leave history reads permanently returning
sessionBusy. When the SDK does not expose a root User Message UUID, the transport generates anautonomous-*Turn key. The adapter currently requires that synthetic key to appear as a transcript Message UUID beforereadSnapshot()succeeds; it never will.Track the actual User Message UUID separately from opaque Turn identity. The SDK transport supplies it only when observed, and history reads continue to wait for that real message and the Assistant checkpoint. Synthetic keys remain unchanged for live Turn identity but no longer enter the persistence barrier.
Validation
5d10dfd: both successful and failed autonomous Turns remained busy after their real checkpoint was persisted (2 failures).npm run build --workspace=@codexhost/adapter-claude-code: passed (TypeScript and referenced packages).git diff --check: passed; after replacing test non-null assertions, all 3 affected adapter regressions passed again.Scope
Only the Claude adapter's internal transport and persistence bookkeeping change; no public CLI changes, message queue, timeout increase, or blanket suppression of busy checks. Related discussion: #311, but this fixes false busy during history reads, not busy-recipient report queueing or all
THREAD_BUSYcauses.