fix: restore Linux attachment resolver build#182
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 17, 2026, 12:52 PM ET / 16:52 UTC. Summary Reproducibility: yes. Current main has a concrete Linux compile failure at the unconditional Darwin import, and exact-head Linux validation confirms the corrected Glibc path. Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest possible solution: Merge the narrow platform-conditional import fix while retaining the existing Darwin behavior on macOS and Glibc behavior on Linux. Do we have a high-confidence way to reproduce the issue? Yes. Current main has a concrete Linux compile failure at the unconditional Darwin import, and exact-head Linux validation confirms the corrected Glibc path. Is this the best way to solve the issue? Yes. A conditional platform import is the narrowest maintainable repair and preserves existing macOS behavior without adding configuration or parallel implementation paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 231b8d606898. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (1 earlier review cycle)
|
|
Maintainer proof on exact head
The lease was released after proof. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
DarwinimportcanImport(Darwin)/canImport(Glibc)platform pattern already used bySecurePathReproduction
The two latest
mainworkflow runs fail inlinux-read-corewhile compilingAttachmentResolver.swift:This also makes unrelated PRs appear red when GitHub tests their merge ref against current
main.Verification
mainfailure: https://github.com/openclaw/imsg/actions/runs/29522912373DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer make lint: exit 0 with 12 existing warnings and 0 serious violationsgit diff --check: passedAttachmentResolverprocess tests compile and run under Xcode; the full local suite reached 477 passing tests before two unrelated rich-link image-staging tests failedGlibcbuild