Repository navigation
Recover selected capture reads when the runtime directory is unavailable - #9109
Open
loopx-agent wants to merge 1 commit into
Open
loopx-agent wants to merge 1 commit into
loopx-agent wants to merge 1 commit into
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
requested review from
JasonBuildAI,
huangruiteng and
songoow
as code owners
November 20, 2026 01:44
This branch has not been deployed
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.
Goal And Delivered Outcome
A saved capture can pass its digest check while the local Effect runtime has no usable temporary directory. In that case, a selected read used to report that the capture could not be read. The full reader could still return the exact original bytes.
The runtime request now returns its existing typed failure when temporary-directory resolution fails before dispatch. After a verified capture reaches selection planning, a startup failure also returns a
recovery_commandfor the original selector, offset, digest and reader route. Restoring runtime access allows that read to finish.Author Declaration
Written by
model_agent(OpenAI Codex, GPT-6).Implemented against
The captured context read and recovery contract at the tested base. Required work context
runtime_request_failedwith a temporary-directory diagnosis. The public result excludes the failing private path.quota context-readwith the original capture identity and selector.Validation
Tested revision
f11cb6e6c880c0358b6ff9d0a5ccd781cc233125against base8e9a28a866da06cc6fd63e78709910fe35dad564. The inputs were synthetic and the tests used isolated runtime directories.real_entrypointpassedquota context-readcases cover a direct selection, an existing page cursor and an immutable capture reference. The retry uses the actual TypeScript selector.regression_paritypassedintegrationpassedintegrationfailed35c9b103540bcd5a26e0be6bb1756a57e67ffa2b.staticpassedregression_paritypassedintegrationblockedintegrationnot_runThe fault test simulates an unavailable temporary directory. The recovery check runs the normal reader after restoring access.
Frontend / Visual Evidence
UI impact is
none.Type of Change
LoopX Area
The commit carries DCO sign-off. Validation disclosure guidance