Repository navigation
fix: send reply attachments from remote workspaces - #152633
Conversation
|
🦞👀 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: blocked before merge. Reviewed September 19, 2026, 7:53 PM ET / 23:53 UTC (Revision 9). ClawSweeper reviewWhat this changesThe PR retrieves reply attachments from remote workspaces before their connection closes, stages authorized bytes for delivery, and preserves transcript text. Merge readiness⛔ Blocked before merge - 2 items remain This remains useful work absent from current main. The earlier compatibility and staging-authority findings are addressed, and this review found no remaining blocking patch defect. Priority: P2 Review scores
Verification
How this fits togetherAgent replies identify attachments that OpenClaw must load before sending them to a conversation. The harness supplies remote file access while the host controls sender policy, byte limits, staging, and delivery metadata. flowchart TD
A[Agent reply with attachment] --> B[Host attachment preparation]
B --> C{Sender policy and path allowed}
C -->|Yes| D[Bounded remote workspace reader]
D --> E[Authority checked media staging]
E --> F[Conversation attachment delivery]
C -->|No| G[Delivery failure notice]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +447, Tests +719, Docs +35. Total +1201 across 21 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the documented optional contract and existing local/sandbox compatibility, with the host remaining the sole policy and staging owner. Do we have a high-confidence way to reproduce the issue? Yes, from source: a remote-only reply attachment reaches Gateway-local loading without a reader on current main. No runtime reproduction or tests were executed during this read-only review. Is this the best way to solve the issue? Yes. The patch reuses the existing media policy, bounded reader, staging store, and terminal delivery owner instead of rewriting transcripts or introducing a second delivery system. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 137f4ba73e7c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
f1f0f00 to
7f35c99
Compare
bd1551f to
4b4572e
Compare
4b4572e to
3545745
Compare
3545745 to
f473d82
Compare
* feat: backport split storage to the September 4 release Carry the merged workspace attachment, file-transfer, Memory, Skills, and paired-node contracts onto sjf_openclaw_2026-09-04. Preserve the release registry lifecycle, Skills cache and Memory database owners. Includes the approved fs-safe 0.17.0 upgrade and its consumer adaptations. Backports: #152633 7d7e26a #152640 fd46f38 #153124 14cf168 #152652 59916ac #153126 e1976b0 #153438 e63393b #154087 20db76a * fix(node): preserve resumable pairing in release backport * fix: complete release split-storage runtime compatibility * fix: complete split-storage release integration * test: align release file-safety fixtures with native operations * test: scope gateway lock fault injection to Node handles * test: align release automation and diagnostic fixtures
Summary
Files produced in a remote workspace cannot be read from the Gateway filesystem when sending a reply.
Route output reads through an explicitly registered workspace attachment reader. The Codex adapter uses its existing bounded reader; other adapters can provide the same capability. Document-only bindings keep existing behavior. An enabled remote reader never falls back to a stale Gateway copy.
Use the existing host read-authority scope for staging and cleanup, including cancellation after reading. Preserve local/sandbox readers, sender policy, byte limits, and transcript text.
Output attachments only; uploads, Memory, Skills, and node transport remain separate. Part of openclaw/openclaw-enterprise#76. One commit directly on main, 21 files. No persisted schema change or SDK export growth.
Validation
f473d8295263c61f8abf45e70ccbf70774ec27e4, based on8aec983be3bdb5ea888a2d0bc1e58d65b28dc9d3. Rebase preserves the topic patch unchanged (git range-diffreports equality).gateway-other: 701 test roots against a 700 limit) is fixed upstream by4396f9bb; this base includes that fix and the guard now passes locally. No test-limit changes are added by this PR.f473d829completed GitHub CI with no failed or pending checks; GitHub reports no merge conflict (September 19, 23:44 UTC).