[codex] Await FileVersion reactions for File stream writes#321
Draft
rita-aga wants to merge 1 commit into
Draft
Conversation
This was referenced Jun 21, 2026
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.
What changed
File$valuewrites await inlineStreamUpdatedreactions before returning.$valuefast-path regression fixture with the productionFile -> FileVersion -> RecordVersioncascade.$valuewrites leavelast_version_idpopulated and the newestFileVersionreadable before callers proceed.Why
A live Katagami curation synthesize session failed with
parse prepared context artifact: EOF while parsing a value at line 1 column 0. Datadog showed the prepared contextFile.StreamUpdated Created -> Readyevent and the provider caller read happening beforeFile.RecordVersion Ready -> Readycompleted. The File entity could look Ready while$valuereaders still observed no readable version.The native File stream write path wrote the blob and dispatched
StreamUpdated, but explicitly usedawait_reactions: false. That made$valuePUT completion weaker than the platform contract needed by prepared context handoffs.Validation
cargo fmt --checkcargo test -p temper-server --test file_value_fast_path -- --nocapture