Repository navigation
Conversation
Read admitted managed image originals through the Gateway media owner instead of inferring a legacy sandbox filename. Preserve explicit staged-path containment and the existing resend notice for unavailable originals. Prove fresh-attempt and retained-template delivery at the provider boundary.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Landing note (maintainer review): Team r302 logged |
Read admitted managed image originals through the Gateway media owner instead of inferring a legacy sandbox filename. Preserve explicit staged-path containment and the existing resend notice for unavailable originals. Prove fresh-attempt and retained-template delivery at the provider boundary.
Backport the bounded runtime fix for LOCAL11.8; preserve unrelated baseline behavior. (cherry picked from commit cbe182f) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 54d304c50214023e6c2c896bef3b86c2444c1a97)
What Problem This Solves
Native image attachments are rejected as “not staged” when a sandboxed turn replays durable managed-media references, even though the original image is still available. Initial submission can succeed while a fresh attempt loses the image.
User Impact
Sandboxed conversations retain admitted native images across fresh attempts and template reuse. An unavailable original still produces the existing model-visible resend notice. Explicit staged paths and paths written in prompt text retain sandbox containment; this does not grant file tools host-store access.
Why This Change Was Made
Managed attachment references belong to the Gateway media store. Resolve those admitted references through its existing reader and allowlist instead of guessing a legacy sandbox filename. The staging and template owners are unchanged, with no new configuration, cache, or schema. Production delta is +2/-2, net zero lines.
This is an older producer/consumer mismatch: #121980 introduced URI-only durable attachment facts, #132114 moved sandbox copies into private input directories, and #168537 supplied staged paths only during initial hydration. The image-loading owner is byte-identical at c5a52d8 and the tested base 390d069. This PR does not attribute the defect to #195883 or claim a historical end-to-end bisect.
Evidence
[1,0,0], candidate requires[1,1,0]across initial submission, fresh attempt, and deleted original. The last request must contain the resend notice.pnpm check:changed --base HEAD -- <eight changed files>completed. Its two introduced test diagnostics were corrected, and the affected compiler/lint checks pass. Remaining failures reproduce on exact parent390d069b8a3777c7a6811f2e10b8115c166cd832: 20 historical changelog attributions, introduced by266a7aa0fe69(fix(release): align attribution gate with human credit policy #194364), and the unusedauthorDisplayNameexport aftercde34f111b4d(Dashboards gallery: Display menu with list view, ordering and grouping #194455) removed its last external consumer. These are existing main validation regressions; neither is masked by this PR. All other scoped gates pass.Synthetic workload: 62,000 workspace files/1,181,224,000 bytes, 2,000 session identities per arm, five interleaved A/B pairs, separate timing/allocation runs and A/A controls. The owner opens no session database and performs no workspace scan. macOS/APFS, Node 26.12.1; this is not Linux/btrfs or full Gateway performance proof.
The candidate restores decoding that the broken baseline omitted; the increased CPU/allocation is necessary work, not a speedup. Timing A/A totals were 113.64/75.47 ms and allocation A/A was 109.49/105.79 MB. Busy-host timing varied; all correctness/work counts were exact. Rerunnable workload:
scripts/perf/native-image-managed-original-measure.ts.