Skip to content

fix(codex): large document uploads are unavailable to local file tools - #156758

Merged
steipete merged 4 commits into
mainfrom
codex/attachment-runtime581
Sep 24, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/attachment-runtime581

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: Codex cannot process a complete uploaded document when its inline preview is truncated and the available file tools receive only a media:// reference.

User Impact

User impact: Codex can read the complete saved document with local file tools when the current execution placement and existing read policy permit it. Remote execution, sandboxing, workspace-only access, and disabled tools retain their existing restrictions. No configuration or migration is required.

Why This Change Was Made

A stored media reference identifies an attachment; it is not a filesystem path. The existing workspace attachment owner now supplies a bounded, verified path note after the Codex connection confirms local execution. The same owner continues to handle remote staging, with no local fallback when a remote binding exists.

The optional harness capability captures the original attachment facts before image projection and reuses the prepared read policy, including allowlist intersections. It verifies document eligibility with a bounded header read and checks current authority after awaited work. The note is included in initial and steering native input, while canonical user content, media references, and persisted transcript bytes remain unchanged. Codex retains this admitted input in its native conversation history. A path identifies the saved file; it does not replace the existing execution and tool-policy admission on later turns. Path metadata uses the turn input budget independently of the inline extraction cap; the regression exercises the schema-valid one-character extraction limit. If the complete optional note cannot fit, the owner returns no note and preserves the existing request and inline attachment context instead of aborting the turn.

Evidence

The real Control UI rerun passed on source-bound candidate 6d4c0ba6428c1293f669db99b0694b6fa2f657ce, which contains the original attachment-path implementation plus independently reviewed changes, before the budget-edge follow-up below. Using the identical original 154,500-byte CSV and prompt, native awk read the provided saved attachment path and completed with exit 0: 5,000 rows, quantity sum 2,492,302, first item item-3f216f8f586d16bb-雪, last item item-9cdf93ccc427fdf3-雪. The run used no directory search, write, network request, or delegation. The full original bytes were preserved (SHA256 a7a25fea3af22c61b4c5f1b74f6e0d27f8c1a37e124c092fd6e3449b8b530b2c), and the filesystem path did not enter the canonical user transcript.

The same candidate's full pnpm build passed in 310.958 seconds on Node 24.20.0 / pnpm 12.4.2 with verified source and artifact bindings. Its separate strict performance check still fails only the inherited isolated Mermaid gzip budget: 1,593,188 bytes against 983,040 bytes. This is retained as a known unrelated performance failure; no threshold was changed. The original hosted CI run failed in two inherited fixtures. The Skill Workshop fixture mixed a fixed historical Date with a real worker lease clock, overflowing Node’s timer; main now contains its repair (764c9331). A deferred-tool fixture repair is also on main (c947420a323). This branch incorporates both main fixes instead of rerunning the unchanged failed head. The refreshed 5fbc81 CI run cleared both previously failing owner shards and ultimately reported success. Its extension bundle 18 nevertheless logged seven 180-second settlement-hook failures before the existing no-output watchdog automatically retried the configuration. That replay passed; the job took 30 minutes 54 seconds. The original failures are retained as a shared fixture defect, and the passing automatic replay is not claimed as a repair. No manual retry was issued. The repaired df52f7 run reproduced the same shared hook defect in bundle 18: four hooks waited 180 seconds, including held assistant-start and partial-reply callbacks. That run was canceled after preserving the live and terminal evidence, before the inherited automatic retry. No retry of unchanged code was requested.

The branch now incorporates main's owning repair adf4aff7c876 from #156801. A native coordinator backoff used a global timer that a caller's fake-timer reset could discard, leaving maintenance holding the archive queue. The acquisition owner now sleeps with native node:timers/promises, preserving its abort behavior; its unit fixture explicitly keeps virtual-time testing. Current-head CI run 35938381891 passed with this owning fix incorporated; the canceled run is not presented as passing evidence.

A same-conversation permission follow-up used the real UI to disable all 72 listed tools, then explicitly supplied the already known synthetic attachment path. The model attempted a fresh exec_command read; the current tool surface rejected it as unavailable before command execution. An inode monitor, validated by a positive read control immediately before the turn, recorded zero file opens or reads through completion. The first restricted turn rotated the saved native binding and preserved the original native-history bytes. Its existing host-side history projection read the attachment before the native turn began; this proof does not claim that disabling model tools forbids ordinary attachment-history preparation or creates an OS filesystem sandbox. After restoring the inherited tool policy through the UI, another fresh command read the same exact file and exited 0 with 5,000 rows and sum 2,492,302. This allow → deny → restore sequence ran on the same source-bound composed candidate described above, not on a new build of the refreshed PR head.

After merging current main, the unchanged attachment implementation passed a fresh 166-test replay across six files in 108.562 seconds on Node 24.20.0 / Vitest 5.0.1. This covers the registered host boundary, local and remote workspace access, native initial input, confirmed execution placement, and SQLite steering. A fresh independent managed review of the merged candidate and clarified docs found no actionable P0–P2 findings. Production type graphs passed in 40.750 s (core) and 47.158 s (extensions); selected test graphs passed in 152.590 s (core) and 92.529 s (extensions). Targeted typed lint passed in 19.706 s and 93.321 s, with the latter including the plugin SDK declaration build. Formatting passed on all 21 changed files. The staged candidate passed the unchanged line-cap, max-lines, and assertion-safety ratchets in 0.269 s, 7.214 s, and 7.543 s. A pre-commit invocation initially compared the uncommitted merge against the older fork point and flagged two unchanged main files; the supported staged comparison used the actual merged base, with no source or baseline changes.

A subsequent review of 5fbc81 found one actionable budget edge: an optional path note could abort a valid near-limit initial or steering request. Auto-merge was canceled before repair. The local attachment owner now omits an over-budget note after its final live-authority check; the existing callers retain their admitted text. Three registered-harness cases (zero budget, metadata overflow, and complete-wrapper overhead) failed at the original throw before the fix. After the fix, the registered host, native initial-input, and SQLite steering suites passed 34 tests in 61.721 seconds on Node 24.20.0. A fresh independent managed review of the unified staged candidate found no actionable P0–P2 findings. The three budget cases each took approximately 80 ms; the 16-case registered suite took 27.32 s including compilation/import and about 1.4 s of test execution. The prior real-provider run proves ordinary complete-file delivery and permission denial/restoration; the new budget edge is covered by registered-boundary proof, not a new real-provider run. A composed-candidate review then identified loss of current inbound and hook context when optional metadata reduced the final prompt budget. Admission now accounts for all final text outside explicit projected history. The registered native input matrix covers inbound context, hook prefixes, hook tails, and combined prefix/tail/history with and without optional paths.

This also exposed an existing fitter defect independent of attachments: with an appended hook tail, history consumed the remaining budget before the current prefix even when all current text fit. The existing fitter now reserves the fitting current prefix before history and handles the exact-limit boundary without dropping it. When current text alone exceeds the limit, the original request/tail and history priority is unchanged. Registered no-note and with-note cases failed before repair; the owner table separately failed fitting and exact-limit cases while both original overflow controls passed. The repaired native-input and full projection-fitter suites passed 86 tests in 22.388 seconds on Node 24.20.0 / Vitest 5.0.1. The registered context-engine sibling suite also passed 43 tests in 48.944 seconds after the fitter repair. The 16 native budget cells took 118–208 ms each; the six fitter priority cells took 1 ms each. The retained mandatory-overflow behavior follows the earlier owner changes 88ad407be23 (appended context priority) and 7e80bb8abf2 (newest history over oversized duplicated prefixes). This budget follow-up is proven through the actual native request boundary with a test app-server, not a new real-provider run. A fresh independent managed review of the complete staged candidate, supplied with both full prompt/fitter owner contracts, found no actionable P0–P2 findings. The unchanged core budget follow-up passed production types in 40.224 s, the selected core test graph in 78.923 s, typed lint in 17.500 s, and docs sanity in 0.339 s. The final extension delta passed production types in 22.922 s, test types in 31.780 s, typed lint in 19.898 s, and formatting in 0.048 s. The unchanged line-cap, max-lines, and assertion-safety ratchets passed in 0.411 s, 7.885 s, and 8.198 s; the staged diff check passed. Every proof receipt verified unchanged source throughout execution.

The final integration review also caught a filename edge: Codex scans raw native input for skill and plugin mentions, even inside JSON metadata. An uploaded filename such as report $deploy.csv could therefore request a skill accidentally. The existing attachment owner now JSON-escapes $ and @, preserving the exact decoded filename, media reference, and local path. User-authored mentions stay unchanged. The registered initial and steering regressions both failed before repair; the repaired registered host, native input, and SQLite steering suites passed 52 tests in 99.402 seconds, with the two new cases taking 96 ms and 78 ms. A compiled probe against the exact Codex mention-parser source independently confirmed that plain and linked metadata mentions are suppressed while an explicit user mention still works. This is registered preparation and delivery proof plus dependency-parser proof, not a new real-provider run. A fresh managed review of the full merged 23-file candidate found no actionable P0–P2 findings. Final core production types passed in 50.011 s; selected test types in 88.828 s (40.4 s for the selected graph); typed lint in 18.107 s; docs sanity in 0.324 s; formatting in 0.251 s. The unchanged line-cap, max-lines, and assertion-safety ratchets passed in 0.263 s, 7.326 s, and 7.696 s. All receipts verified unchanged source.

The original browser run stored the full document correctly, but delivered only 2,075 complete rows and part of the next row inline. Native Python attempted to open the media:// reference and received FileNotFoundError; the model correctly reported that it could not verify the full file.

Local proof on Node 26.7.0 / Vitest 5.0.1 covers the registered harness delivery boundary, native initial input, local and remote steering, current-authority changes during preparation, policy exclusions, native-image projection, MIME rejection, hardlinks, and metadata bounds. Existing SQLite steering tests retain their original canonical-content assertions and additionally verify that execution input receives the attachment note. The final connection/steering replay passed all 71 tests in 26.840 seconds. The final source also passed production and test type graphs, typed lint, formatting, unchanged ratchets, and docs checks. An independent managed review reported no actionable P0–P2 findings.

Final per-file test costs

All six changed suites passed individually with pnpm test <file> --maxWorkers=1 on the final 49cc9387d86 source (Node 24.20.0, pnpm 12.4.2, Vitest 5.0.1). Local wall time includes the wrapper, preparation, imports, and tests. CI seconds below sum the actual per-case durations reported for that file in the successful current-head CI run; they are not whole-job wall times, and exclude shared job setup/import overhead. The CI jobs also run other suites. No CI retries were requested for these measurements.

Test file Local single-file wall CI reported test seconds
extensions/codex/src/app-server/context-engine-projection.test.ts 20.350 s 0.107 s / 69 tests
extensions/codex/src/app-server/run-attempt-connection.test.ts 36.348 s 18.209 s / 54 tests
extensions/codex/src/app-server/run-attempt.input-attachments.test.ts 24.936 s 7.087 s / 17 tests
extensions/codex/src/app-server/run-attempt.steering.test.ts 19.042 s 16.812 s / 17 tests
src/agents/harness/selection.input-attachments.test.ts 15.714 s 1.941 s / 18 tests
src/agents/workspace-access.test.ts 2.914 s 0.039 s / 27 tests
Measured validation costs and retained failures

The timings below are actual repository-wrapper wall times or explicitly labeled Vitest project times, using --maxWorkers=1 for measured test runs. Final single-file wall timings and current-head CI test seconds are recorded above. These local test timings are separate from the full build and real-provider proof above.

Check Result and measured cost
Final connection + steering tests 71 passed; 26.840 s wrapper wall, 25.18 s Vitest project
Registered host/attachment boundary + existing host capability tests 67 passed; 8.73 s project; new local cases approximately 65–153 ms
Initial native attachment input 1 passed; 9.88 s project, 2.415 s test
Existing tool-policy matcher suite 46 passed; 14.53 s project
Existing selection and workspace-access siblings 161 passed / 33.41 s project; 27 passed / 0.830 s project
Production type graphs Core 36.492 s; Codex extension 43.151 s
Test type graphs Selected core graphs 95.079 s; extension graph 92.470 s
Typed lint Core 16.422 s; extension 82.906 s, including the plugin SDK declaration prerequisite
Other static checks Formatting 0.225 s; line cap 0.312 s; max-lines 6.762 s; assertion safety 7.362 s; docs 0.291 s; diff check 0.010 s

The passing matcher, host/registered, and initial-native projects above came from a 63.772-second batch that exited unsuccessfully because three new native fixtures were incomplete. That batch is not presented as wholly green. Its production files match the final commit; the corrected native fixtures were covered by the final 71-test replay.

Failures encountered and retained:

  • The original backend regression failed because no readable path was delivered. Its first implementation was superseded by the connection-confirmed capability; final placement coverage uses the registered boundary.
  • A plain-turn sibling caught an empty private attachment field. The producer now emits that field only when original attachments exist; the 16 backend tests then passed.
  • New steering fixtures incorrectly expected accepted steering in an ordinary snapshot, then lacked the actual inbound ingress/recorder authority. The redundant case was replaced by extending the existing five SQLite persistence cases, retaining every original assertion. Those cases passed in 421–560 ms each.
  • Two new remote connection fixtures omitted their required binding store. They now use the existing connection fixture store; the final replay passed.
  • Production types exposed a mutable-array signature at the read-policy matcher boundary. Its readonly contract now preserves intersection metadata before any fallback copy. Final production types passed.
  • A new test's unchecked array access failed strict test types. Optional access retains the expected-value assertion and passes the final test graphs.
  • The line guard rejected growth in existing owners. Cohesive input-attachment binding and media capability composition moved beside the existing media binders; the redundant test was removed. Final guards passed without baseline changes.

An unchanged approval-timeout sibling passed but took 5.955 seconds; its separate profiling investigation is not a fix claimed by this PR. Silent inline truncation labeling is also separate work; this change restores permitted access to the complete saved document.

Media references identify canonical attachments but are not filesystem paths.
Bind original input media to the host capability and let the actual Codex
connection prepare verified document paths only for eligible local execution.
Keep remote staging, read policy, workspace restrictions, live authority, and
native input budgets with their existing owners. Execution notes do not alter
canonical user messages or persisted media references.

Cover registered delivery, native initial input and steering, remote placement,
policy exclusions, changed workspace authority, and bounded metadata. Reuse the
existing steering persistence cases to verify original SQLite transcript text.

Release note: Codex can process complete saved document uploads with local file
tools even when their inline text preview is truncated.
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 23, 2026 20:37
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: codex size: L labels Sep 23, 2026
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 49cc9387d86aa17eb023604810a7a31bc92ca4ff
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/tool-policy-match.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 23, 2026, 8:33 PM ET / September 24, 2026, 00:33 UTC (Revision 4).

ClawSweeper review

What this changes

The branch lets local Codex turns receive verified paths to saved document uploads and updates native prompt fitting, documentation, and regression coverage.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. Current main still exhibits the reported limitation, and the branch has credible real-use proof with no concrete blocking code defect found. Repository-required test-cost evidence remains incomplete.

Priority: P1
Reviewed head: 49cc9387d86aa17eb023604810a7a31bc92ca4ff

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong real-use and boundary proof supports a coherent repair; the added test files still need repository-required cost measurements.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The captured real Control UI run exercised upload, native Codex file-tool reading, and same-conversation tool denial/restoration: after the original failure, the saved-path run read all 5,000 rows, and the denied turn recorded no file opens. Final-head budget and filename follow-ups have registered-boundary and Codex-parser evidence rather than a second real-provider run. No stored-data format changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured real Control UI run exercised upload, native Codex file-tool reading, and same-conversation tool denial/restoration: after the original failure, the saved-path run read all 5,000 rows, and the denied turn recorded no file opens. Final-head budget and filename follow-ups have registered-boundary and Codex-parser evidence rather than a second real-provider run. No stored-data format changes.
Evidence reviewed 9 items Current-main limitation: At the fetched main revision, the Codex steering path prepares attachments through a registered workspace adapter; initial native input has no local attachment-path preparation.
Local path boundary: The introduced owner resolves managed media, checks containment and file eligibility, and returns a bounded execution-only note.
Placement and policy gates: The Codex connection excludes sandboxed, remote, disabled-tool, and restricted-permission local preparation; the harness binds the read allowance from resolved tool policies.
Findings None None.
Security None None.

How this fits together

OpenClaw saves uploads as media references and extracts bounded text for agent prompts. The Codex harness converts that input into native turns; the host may now provide local paths when placement and read policy permit them.

flowchart LR
A[Uploaded document] --> B[Saved media reference]
B --> C[Host attachment check]
C --> D{Local read permitted?}
D -->|Yes| E[Verified path note]
D -->|No| F[Inline context only]
E --> G[Codex turn]
F --> G
G --> H[Permitted file read]
Loading

Before merge

  • Resolve merge risk (P1) - The PR body lacks the required single-file wall times and CI seconds for its new or materially changed test files; it currently reports grouped timings and says the separate measurements are pending.
  • Complete next step (P2) - Add measured per-file wall times and CI seconds for the new or materially changed tests to the PR body before merge.
Agent review details

Security

None.

PR surface

Source +333, Tests +594, Docs +38. Total +965 across 23 files.

View PR surface stats
Area Files Added Removed Net
Source 15 370 37 +333
Tests 6 616 22 +594
Docs 2 38 0 +38
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 23 1024 59 +965

Review metrics

Metric Value Why it matters
Production and test growth production +333 net lines, tests +594 net lines The production growth has a stated owner-boundary purpose and substantial registered-boundary regression coverage.
Host capability surface 1 optional capability added The host-to-plugin attachment preparation contract is compatibility-sensitive even though older hosts may omit it.

Merge-risk options

Maintainer options:

  1. Record test costs (recommended)
    Add the measured per-file wall times and CI seconds to the PR evidence before merge.

Technical review

Best possible solution:

Keep one host-owned attachment preparation path, with Codex consuming verified local paths only under current placement and read authority while canonical user content remains unchanged.

Do we have a high-confidence way to reproduce the issue?

Yes. Current-main source lacks local path delivery, and the captured before run shows a 154,500-byte upload reduced to an inline preview followed by FileNotFoundError when Codex tried its media reference as a path. I did not execute the repository.

Is this the best way to solve the issue?

Yes. The branch extends the existing workspace attachment owner and admits local paths only after Codex confirms placement and the host resolves read policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a5f1d0996a1f.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The captured UI scenario shows a real Codex document workflow unable to process the complete saved upload.
  • merge-risk: 🚨 security-boundary: The PR supplies filesystem paths to native Codex input, making placement, read policy, and live-authority checks material to merge safety.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured real Control UI run exercised upload, native Codex file-tool reading, and same-conversation tool denial/restoration: after the original failure, the saved-path run read all 5,000 rows, and the denied turn recorded no file opens. Final-head budget and filename follow-ups have registered-boundary and Codex-parser evidence rather than a second real-provider run. No stored-data format changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured real Control UI run exercised upload, native Codex file-tool reading, and same-conversation tool denial/restoration: after the original failure, the saved-path run read all 5,000 rows, and the denied turn recorded no file opens. Final-head budget and filename follow-ups have registered-boundary and Codex-parser evidence rather than a second real-provider run. No stored-data format changes.

Evidence

What I checked:

  • Current-main limitation: At the fetched main revision, the Codex steering path prepares attachments through a registered workspace adapter; initial native input has no local attachment-path preparation. (extensions/codex/src/app-server/run-attempt-active-turn.ts:372, a5f1d0996a1f)
  • Local path boundary: The introduced owner resolves managed media, checks containment and file eligibility, and returns a bounded execution-only note. (src/agents/workspace-attachments.local.ts:55, 49cc9387d86a)
  • Placement and policy gates: The Codex connection excludes sandboxed, remote, disabled-tool, and restricted-permission local preparation; the harness binds the read allowance from resolved tool policies. (extensions/codex/src/app-server/run-attempt-connection.ts:534, 49cc9387d86a)
  • Prior finding addressed: The current owner omits an optional note that exceeds its complete budget, and native prompt construction accounts for current text before giving remaining space to projected history. (extensions/codex/src/app-server/run-attempt-prompt.ts:432, 49cc9387d86a)
  • Codex dependency signal and contract: The PR claims filename escaping prevents accidental capability selection. The inspected Codex source scans native text input for plugin mentions using an at-sign parser and for skill mentions using the shared text parser; ownership was verified from the sibling repository cache's GitHub origin. (codex-rs/core/src/plugins/mentions.rs:83, be2951ea34f0)
  • Captured real-behavior proof: The complete live PR body matches the supplied SHA-256 snapshot. It records a Control UI before case where a media reference failed as a file path, an after case reading all 5,000 CSV rows through the saved path, and a same-conversation tool-denial/restoration trace. Later budget and filename changes have registered-boundary and dependency-parser proof, but no second real-provider run. (49cc9387d86a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Kimiyu-186: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record per-file wall times and CI seconds for new or materially changed test files.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-23T20:56:23.008Z sha c543355 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T22:54:57.933Z sha 5fbc81c :: blocked before merge. :: [P1] Preserve near-limit turns when the path note cannot fit
  • reviewed 2026-09-23T23:57:55.775Z sha df52f7a :: needs maintainer review before merge. :: none

Codex retains the admitted path note in native conversation history while
OpenClaw preserves canonical user text and media references. Later turns
continue to use current execution and tool-policy admission.

Merge current main to include the Workshop fixture clock repair and the
maintenance-task publication ordering repair. A live known-path follow-up
could not dispatch a file command under the restricted tool policy, then
read the same saved document after the inherited policy was restored.
…udget

Omit optional saved-document path notes when their complete metadata cannot
fit, after the same final live-authority check. Revalidate the allowance
against all final text outside projected history after inbound context and
prompt hooks run, preserving canonical input and inline attachment context.

Repair the existing projection fitter to reserve fitting current prefixes
alongside the request and hook tail before history, including exact-limit
input. Preserve its existing priority when current text alone exceeds the
limit. Registered native controls reproduce prefix loss with and without
attachment metadata; overflow siblings retain their original behavior.
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Sep 23, 2026
JSON-escape mention sigils in optional attachment metadata so Codex does
not interpret filenames as skill or plugin requests. Preserve exact
decoded file identities and explicit mentions in the user's prompt.
Cover initial and steering preparation through the registered owner.

Merge current main including adf4aff from #156801. The prior CI run
reproduced settlement cleanup hangs when fake timers discarded the native
coordinator backoff; it was canceled after the failures were captured.
The owning repair keeps native storage waits independent of caller timers.
@steipete
steipete merged commit ef26640 into main Sep 24, 2026
220 of 222 checks passed
@steipete
steipete deleted the codex/attachment-runtime581 branch September 24, 2026 00:48
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
openclaw#156758)

* fix(codex): expose saved input documents to eligible local tools

Media references identify canonical attachments but are not filesystem paths.
Bind original input media to the host capability and let the actual Codex
connection prepare verified document paths only for eligible local execution.
Keep remote staging, read policy, workspace restrictions, live authority, and
native input budgets with their existing owners. Execution notes do not alter
canonical user messages or persisted media references.

Cover registered delivery, native initial input and steering, remote placement,
policy exclusions, changed workspace authority, and bounded metadata. Reuse the
existing steering persistence cases to verify original SQLite transcript text.

Release note: Codex can process complete saved document uploads with local file
tools even when their inline text preview is truncated.

* fix(codex): preserve current input when attachment metadata exceeds budget

Omit optional saved-document path notes when their complete metadata cannot
fit, after the same final live-authority check. Revalidate the allowance
against all final text outside projected history after inbound context and
prompt hooks run, preserving canonical input and inline attachment context.

Repair the existing projection fitter to reserve fitting current prefixes
alongside the request and hook tail before history, including exact-limit
input. Preserve its existing priority when current text alone exceeds the
limit. Registered native controls reproduce prefix loss with and without
attachment metadata; overflow siblings retain their original behavior.
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant