Repository navigation
fix(codex): recover unused native threads without dropping history - #189900
Merged
Merged
Conversation
Co-authored-by: Dave Lutz <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
November 1, 2026 00:36
Collaborator
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Nov 1, 2026
…ed-backup-search-exports-20261101 * commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc': fix(ci): keep backup and chat search internals private (#189894) fix(codex): recover unused native threads without dropping history (#189900) fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855) perf(test): parse the Mantis resolver workflow once (#189801) fix(agents): revert default hard context admission (#189891) refactor(test): use canonical tracked temp paths (#189800) chore(ui): refresh control ui locales (#189898) improve: show gateway commit and build time on About refactor(test): share SDK export fixture JSON writes (#189799) fix: restore Files navigation from unavailable previews (#189879) refactor(test): share raw ratchet fixture writes (#189798) fix(ai): honor Model Studio compatible-mode output limits (#189870) fix: hold queued messages through inline edits (#189869) perf(test): reuse the baseline fixture Node resolver (#189790) test(qa): correlate handoff replies by run identity (#189885) fix(ui): normalize canonical Unicode in local search comparisons (#189874) fix(ui): explain unsupported browsers without module scripts (#189883) # Conflicts: # ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 1, 2026
…penclaw#189900) Co-authored-by: Dave Lutz <[email protected]>
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.
Supersedes #167873, thanks @davelutztx.
What Problem This Solves
Fixes Codex conversations repeatedly failing with
thread not loadedafter an unused native thread disappears while its managed client and conversation binding remain.User Impact
The next turn can create a fresh native thread and continue. Bindings with recorded conversation history remain intact when native state is missing, including after a client restart. Loaded threads without an owned inference route still fail closed. No configuration or migration is needed.
Why This Change Was Made
Move the inference ownership check onto the existing lifecycle status read, where exact missing-thread errors already reach recovery and its logged warning. Warm reuse without its inference route takes that same cold path before writes. The existing
historyCoveredThroughmarker prevents recovery from replacing a conversation with acknowledged history.This removes the duplicate preflight
thread/read: production +18/-22, net −4 lines. Regression tests/support grow by 66 lines; a separate 63-line allocation covers the counted test growth. No new state, dependency, or public contract.Evidence
edd9cd176a24: the managed unused-thread regression rejects with the exactthread/readerror; the recorded-history-after-restart regression incorrectly starts a replacement. Both pass with this repair. Same-client history and loaded-unowned controls remain protected.git diff --checkpassed. Hosted changed-node tests passed in 288s; baseline ratchets passed in 305s. These are shared job wall times, not isolated test-file cost. The optional local ratchet run reached its 45s host limit; hosted proof completed it.edd9cd176a24: scoped-clean, no actionable findings.pr-simplifycompleted.read_thread_viewat Codex6851fae57cf7306e1d7a093d334b1116d33ce5ad,codex-rs/app-server/src/request_processors/thread_processor.rs:2333–2388: absent live and persisted state produces the exact missing-thread error.Contributor source was read with
gh pr view/gh pr diffand was never checked out or executed. Human commit credit is preserved asCo-authored-by: Dave Lutz <[email protected]>.