Skip to content

fix(imessage): restore remote attachments for external installs - #144048

Merged
obviyus merged 4 commits into
openclaw:mainfrom
LiuwqGit:feat/issue-144025-external-imessage-media-contract
Sep 10, 2026
Merged

obviyus merged 4 commits into
openclaw:mainfrom
LiuwqGit:feat/issue-144025-external-imessage-media-contract

Conversation

@LiuwqGit

@LiuwqGit LiuwqGit commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #144025

What Problem This Solves

Fixes an issue where users of the official external iMessage plugin had remote attachments skipped even when the files were inside configured allowed roots. Core only looked for a bundled media contract, which is absent from the published external-only installation.

Why This Change Was Made

The existing media-root resolver now falls back to a globally installed, verified official channel owner that passes the canonical plugin policy. It loads that owner's validated media-contract-api.js and keeps bundled contracts first. Attachment roots remain plugin-owned, and the existing SCP staging path is unchanged.

User Impact

Allowed remote attachments can reach local staging with the official external iMessage plugin. Operator deny/allow policies and plugin disablement remain authoritative.

Evidence

  • Packaged baseline decc0d9e05fb: the real Gateway admitted an inbound from a protocol-compatible imsg fixture, rejected the configured allowed attachment before SCP, and completed /status without staging it.
  • Packaged candidate cd14f8f190b6: the same public installation and ingress path loaded the real external media contract, made one strict loopback SSH/SCP transfer, and staged all 68 bytes with an identical digest.
  • Both runs used the public plugin installer and public runtime inspection for @openclaw/[email protected]; inspection confirmed a loaded global official install, with no bundled iMessage copy.
  • Complete app-server protocol captures show metadata/account reads only, with no model turn requested.
  • All 31 focused resolver, lifecycle, staging and cancellation tests passed. Formatting, targeted lint, line-count and assertion-safety checks passed.
  • Live controls verified selected-account and default roots, root revocation after reload, outside/unsafe-path refusal, bad host-key refusal and recovery, and rejection of a 51 MiB file after download without staged publication. Temporary staging directories were gone before Gateway shutdown.
  • Per-plugin disablement, denylisting and global disablement stopped the watch; restoring each policy allowed one successful transfer. Existing activation rules retain explicitly configured plugins in the effective allowlist; the separate excluded-owner predicate is covered by focused tests.
  • Independent public acceptance completed 34 steps and 16 fresh inbounds: nine permitted attachments each staged once with all 68 bytes intact; seven refusal cases staged nothing. Every inbound received its matching completed outcome and fixture reply. Configuration and host-key records were restored.
  • A separate packaged control with both real bundled and official external copies opened the bundled media contract before a successful strict SCP transfer.
  • Installing the unchanged registry archive through the local-archive route retained untrusted provenance and stopped at trusted channel-state admission before a watch opened. Workspace inspection likewise retained untrusted provenance, but Gateway startup stopped during official-plugin installation repair under the restricted test network; this does not prove the later media guard. Origin exclusion remains covered by source and focused tests.

The channel transport used a synthetic fixture on Linux. A real Messages Mac, live recipient delivery, and HEIC decoding were not exercised.

@clawsweeper

clawsweeper Bot commented Sep 10, 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.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 11:33 AM ET / 15:33 UTC (Revision 4).

ClawSweeper review

What this changes

Adds attachment-root lookup through trusted, policy-allowed installed channel plugins when the bundled contract is unavailable, with resolver and staging regression coverage.

Merge readiness

✅ Ready for maintainer review

This remains a useful fix: current main and v2026.9.3 retain the reported defect. The earlier policy finding is resolved, and the new external-installation evidence satisfies the previous proof request. No blocking defect was found.

Priority: P1
Reviewed head: a25bc6215dee4218338060a259326b13ab588219

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful regression coverage and sufficient real-installation proof; earlier blockers are addressed.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The complete captured body demonstrates the changed resolver and production staging owner using an actual external npm installation, production metadata discovery, and real SSH/SCP: roots resolve and the permitted file stages byte-identically while an outside-root path is rejected. This satisfies the previous rank-up request; mocked denial/revocation tests are supplemental. Loopback SSH and a constructed inbound context leave real Messages ingress and HEIC decoding untested, but those paths are unchanged.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The complete captured body demonstrates the changed resolver and production staging owner using an actual external npm installation, production metadata discovery, and real SSH/SCP: roots resolve and the permitted file stages byte-identically while an outside-root path is rejected. This satisfies the previous rank-up request; mocked denial/revocation tests are supplemental. Loopback SSH and a constructed inbound context leave real Messages ingress and HEIC decoding untested, but those paths are unchanged.
Evidence reviewed 8 items Current main still has the defect: The fetched main resolver loads only bundled media artifacts and returns undefined when that artifact is absent; it has no installed-owner fallback.
Latest release remains affected: The inspected v2026.9.3 resolver contains the same bundled-only lookup, matching the reporter's affected release.
Installed authority is checked before artifact execution: The fallback requires global origin, verified official-install trust, a matching channel declaration, and the canonical manifest-owner policy before invoking the existing validated artifact loader. Bundled precedence remains intact.
Findings None None.
Security None None.

How this fits together

Inbound media processing asks the channel plugin which attachment directories are allowed. Remote staging checks those roots before copying files over SSH/SCP and supplying local attachment paths to the agent.

flowchart TD
  A[Inbound attachment] --> B[Channel media root lookup]
  B --> C{Bundled contract available?}
  C -->|Yes| E[Attachment roots]
  C -->|No| D[Trusted installed owner and plugin policy]
  D --> E
  E --> F{Attachment path allowed?}
  F -->|Yes| G[SCP staging and local media]
  F -->|No| H[Skip attachment]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +130, Tests +487. Total +617 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 151 21 +130
Tests 3 487 0 +487
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 638 21 +617

Review metrics

Metric Value Why it matters
Production versus regression coverage Net production +130 lines; tests +487 lines Production growth implements installed-owner selection through existing policy and loader boundaries; test growth covers resolution, rejection, and staging.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #144025
Summary: This PR is the candidate fix for external media-contract lookup; the neighboring attachment reports concern separate failure stages.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep media-root resolution with the existing channel contract, using canonical installation metadata and plugin policy while preserving account roots and validated artifact loading.

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

Yes: an external-only official iMessage installation produces no roots through the current-main resolver, so staging rejects the attachment before transfer. Source inspection and the contributor's before/after transcript agree; this reviewer did not execute current main.

Is this the best way to solve the issue?

Yes: the patch extends the existing resolver through established metadata, policy, and artifact-loading owners without hardcoding channel roots or bootstrapping the full plugin.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 044cf2e6e027.

Labels

Label justifications:

  • P1: The reported current-release defect silently skips readable attachments in the documented remote iMessage workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 complete captured body demonstrates the changed resolver and production staging owner using an actual external npm installation, production metadata discovery, and real SSH/SCP: roots resolve and the permitted file stages byte-identically while an outside-root path is rejected. This satisfies the previous rank-up request; mocked denial/revocation tests are supplemental. Loopback SSH and a constructed inbound context leave real Messages ingress and HEIC decoding untested, but those paths are unchanged.
  • proof: sufficient: Contributor real behavior proof is sufficient. The complete captured body demonstrates the changed resolver and production staging owner using an actual external npm installation, production metadata discovery, and real SSH/SCP: roots resolve and the permitted file stages byte-identically while an outside-root path is rejected. This satisfies the previous rank-up request; mocked denial/revocation tests are supplemental. Loopback SSH and a constructed inbound context leave real Messages ingress and HEIC decoding untested, but those paths are unchanged.

Evidence

What I checked:

  • Current main still has the defect: The fetched main resolver loads only bundled media artifacts and returns undefined when that artifact is absent; it has no installed-owner fallback. (src/media/channel-inbound-roots.ts:19, 044cf2e6e027)
  • Latest release remains affected: The inspected v2026.9.3 resolver contains the same bundled-only lookup, matching the reporter's affected release. (src/media/channel-inbound-roots.ts:25, 1391f7cd2d40)
  • Installed authority is checked before artifact execution: The fallback requires global origin, verified official-install trust, a matching channel declaration, and the canonical manifest-owner policy before invoking the existing validated artifact loader. Bundled precedence remains intact. (src/media/channel-inbound-roots.ts:90, a25bc6215dee)
  • Production staging boundary: Undefined remote roots become an empty list, and disallowed sources are rejected before SCP. The changed lookup feeds this existing owner; neither the repair nor its proof depends on the Codex runtime or protocol. (src/auto-reply/reply/stage-sandbox-media.ts:86, a25bc6215dee)
  • Real external-installation proof inspected: Read the complete PR body and verified its SHA-256 matches the captured source identity 5ba6884a99fda02631330aa71df992fedc1005f87b943bbace3275f1446f321d (13,764 UTF-16 units). The transcript uses the real installer, @openclaw/[email protected], production metadata discovery, the package's media artifact, and unstubbed SSH/SCP. After the fix, configured/default roots resolve and a 615-byte attachment stages with a matching source hash; an outside-root path remains unstaged. The same installation with the main resolver returns undefined roots and stages nothing. Supporting comment: fix(imessage): restore remote attachments for external installs #144048 (comment). (a25bc6215dee)
  • Previous finding and regression coverage: The current tests exercise actual artifact loading and staging filesystem behavior, including denied-owner rejection before the execution canary and SCP, plus denial after an earlier successful transfer. Their SCP boundary is mocked, so these tests supplement the separate real-installation proof. Contributor-reported results include passing regression suites and failing pre-policy cases; this read-only review did not execute tests. (src/auto-reply/reply/stage-sandbox-media.scp.test.ts:273, a25bc6215dee)

Likely related people:

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

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-10T12:53:42.750Z sha 157984ef1ac40d47e4f450de844da7c95ac4a404 :: needs real behavior proof before merge. :: [P1] Honor plugin disablement before loading installed media contracts
  • reviewed 2026-09-10T13:41:24.353Z sha 7f00e95 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-10T14:22:55.591Z sha a25bc62 :: needs real behavior proof before merge. :: none

Media-root resolution only searched bundled plugin artifacts, so an official
channel package installed outside the core bundle (for example
@openclaw/imessage) resolved no attachment roots, and readable remote files
were skipped before agent execution.

Resolve the channel media contract from the trusted installed plugin metadata
when no bundled artifact exists, loading only that narrow artifact.

Fixes openclaw#144025
Install provenance is not permission: an official npm install that the
operator denylisted, explicitly disabled, or left out of a restrictive
plugin allowlist must not keep attachment-root authority. Apply the
canonical manifest-owner base policy before loading the artifact.
@LiuwqGit
LiuwqGit force-pushed the feat/issue-144025-external-imessage-media-contract branch from 157984e to 7f00e95 Compare September 10, 2026 13:34
@LiuwqGit

Copy link
Copy Markdown
Contributor Author

Revision 2 addresses the policy finding: installed owners must now be trusted official npm installs that declare the channel and pass the canonical manifest-owner base policy, so plugins.deny, plugins.entries.<id>.enabled: false, plugins.enabled: false, and restrictive plugins.allow lists revoke attachment-root authority before the artifact is loaded. Regression coverage for each of those cases is in src/media/channel-inbound-roots.installed-plugin.test.ts, and the artifact is loaded through the existing validated loadPluginPublicArtifactModuleSync boundary.

Remaining evidence gap: end-to-end staging from an external-only installation. This environment has no external-only install and no remote Messages Mac, so the after-fix staging run in the affected layout still needs someone with that host. Reproduction for whoever can run it:

# 1. npm-global core with the official external channel package installed
openclaw plugins info imessage --json   # expect origin: global, trustedOfficialInstall: true
# 2. Configure channels.imessage with remoteHost/attachmentRoots and a readable remote JPEG
# 3. Send the JPEG; inspect the staged result and confirm the transfer is attempted

If the staged map is still empty in that layout after this patch, please paste the redacted resolved_roots/staged output here and I will take it from there.

Media-root authority now follows operator policy, but nothing covered the
staging path: a denied owner could execute its media contract and hand roots
to remote attachment staging. Cover a permitted installed owner that stages a
remote attachment, a denied owner rejected before its artifact executes and
before any transfer, and disablement after an earlier successful transfer.
Keep the installed-owner selector module-private so the dead-code export
check stays green.
@LiuwqGit

Copy link
Copy Markdown
Contributor Author

Revision 3 (a25bc6215de) closes the remaining evidence gap and the CI dead-code failure.

What changed

  • src/auto-reply/reply/stage-sandbox-media.scp.test.ts — staging-path coverage on a real filesystem: a permitted trusted installed owner stages a remote attachment through the bounded scp command; a denylisted owner is rejected before its media-contract-api.js executes and before any transfer; an owner denied after an earlier successful transfer stops staging on the next message.
  • src/media/channel-inbound-roots.installed-plugin.test.ts — adds the disablement-after-an-earlier-successful-resolution case.
  • src/media/channel-inbound-roots.ts — the installed-owner selector is module-private again, which clears deadcode:exports (check-dependencies failed on revision 2 with Unused exports (1) src/media/channel-inbound-roots.ts: listTrustedInstalledChannelMediaContractOwners).

After fix — node scripts/run-vitest.mjs run src/media/channel-inbound-roots.installed-plugin.test.ts src/auto-reply/reply/stage-sandbox-media.scp.test.ts:

✓ resolves local and remote media roots from a trusted installed channel plugin
✓ revokes attachment-root authority for an installed owner that is denylisted
✓ revokes attachment-root authority for an installed owner that is explicitly disabled
✓ revokes attachment-root authority for an installed owner that is outside a restrictive allowlist
✓ revokes attachment-root authority for an installed owner that is with plugins globally disabled
✓ revokes attachment-root authority after an earlier successful resolution
Tests  8 passed (8)

✓ stages a remote attachment whose roots resolve from a trusted installed channel plugin
✓ skips a denied installed owner before its media contract executes
✓ stops staging after an earlier transfer once the installed owner is denied
Tests  14 passed (14)

node --import ./scripts/tsx.mjs scripts/check-deadcode-exports.mts: all three scans passed with 0 entries. pnpm tsgo:core: exit 0. oxfmt --check / oxlint on the three touched files: clean.

Before/after — same two suites with the pre-policy resolver restored (git checkout 386a3f46a4e -- src/media/channel-inbound-roots.ts):

FAIL  revokes attachment-root authority for an installed owner that is denylisted
  AssertionError: expected [ '/denied/remote' ] to be undefined
FAIL  revokes attachment-root authority after an earlier successful resolution
  AssertionError: expected [ '/policy-reload/remote' ] to be undefined
Tests  5 failed | 3 passed (8)

FAIL  skips a denied installed owner before its media contract executes
  AssertionError: expected "runCommandWithTimeout" to not be called at all, but actually been called 3 times
FAIL  stops staging after an earlier transfer once the installed owner is denied
  AssertionError: expected 1 to be +0
Tests  2 failed | 12 passed (14)

The second pair is the security finding in behavior: without the policy check the denied owner's artifact executes and the denied remote path starts three SCP attempts. With the check in place the artifact's write-canary stays absent and no transfer starts.

Still not tested: no live external-only installation (@openclaw/imessage from npm outside the core bundle) and no real remote Messages Mac. Staging is proven against a real installed plugin artifact and the real staging policy on a real filesystem, but the scp transport is stubbed at the process boundary (unchanged by this diff), so a real SSH transfer and HEIC decode remain for a host that has both.

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Sep 10, 2026
@LiuwqGit

Copy link
Copy Markdown
Contributor Author

Added the requested after-fix evidence from an actual external npm installation (no synthetic metadata, no handcrafted artifact, no stubbed transport). PR body Evidence section updated.

Setup (all real):

  • @openclaw/[email protected] installed from the public npm registry via the real openclaw plugins install @openclaw/imessage flow into an isolated OPENCLAW_HOME.
  • Bundled plugin root contains other bundled plugins but no imessage — the affected external-only layout (the published openclaw npm package ships dist/ without dist/extensions/imessage).
  • openclaw plugins inspect imessage --json confirms the production trust chain: origin: "global", trustedOfficialInstall: true, trust.reason: "trusted-official", installSource: "npm", installSpec: "@openclaw/imessage".
  • Root resolution and staging ran through the production metadata lifecycle (loadConfig → loadPluginMetadataSnapshot real discovery over the real install records → adoptCurrentPluginMetadataSnapshotIfAbsent) against the real package's real dist/media-contract-api.js.
  • The SCP transport was not stubbed: staging performed a real scp over a real SSH connection (loopback sshd standing in for the remote Messages Mac), BatchMode=yes / StrictHostKeyChecking=yes exactly as production issues it.

After fix (driver output, trimmed; full JSON in the PR body):

bundledPluginsInSnapshot: ["brave"]                    # external-only layout: no bundled imessage
resolvedRemoteRoots: ["<…>/remote-attachments/Attachments", "/Users/*/Library/Messages/Attachments"]
resolvedDefaultRemoteRoots: ["/Users/*/Library/Messages/Attachments"]
stagedRemoteAttachment: [{ bytes: 615, sha256MatchesRemoteSource: true,
  stagedPath: "media/inbound/openclaw-staged-e8250de7…/input-IMG_4417.jpg" }]
outsideRootsAttachmentStagedCount: 0                   # /etc/passwd (outside roots) not staged

Before (same driver, same real installation, resolver restored from origin/main):

resolvedRemoteRoots: undefined                         # resolver returns undefined
stagedRemoteAttachment: []                             # the readable remote attachment is silently skipped

That is the reported defect in behavior: current main cannot see the externally installed channel's media contract, so the attachment never reaches stageSandboxMedia; with this patch the same installation resolves configured and default attachment roots and a permitted remote attachment stages locally through a genuine SSH/SCP transfer.

Still not covered here: a real Messages Mac — the SSH endpoint is loopback (real handshake, real transfer, byte-identical result) and the message context is driver-constructed rather than produced by the imsg bridge, so a real HEIC decode and the reporter's exact layout remain for a host that has them. The transport code path is unchanged by this diff and ran unstubbed.

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@obviyus obviyus self-assigned this Sep 10, 2026
@obviyus
obviyus requested a review from a team as a code owner September 10, 2026 20:49
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 10, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord labels Sep 10, 2026
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: cd14f8f190b69804fae04575f0a7613ef676cd18

@obviyus

obviyus commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

landpr-approve-unrelated-red
pr: 144048
head: cd14f8f
run: 34528689362 attempt: 1
failed: checks-node-compact-large-20 job=103044194734 conclusion=failure
check: openclaw/ci-gate

@obviyus

obviyus commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks @LiuwqGit!

Proof: The public plugin installer and packaged Gateway reproduced the failure through synthetic imsg input. The repaired build staged the same allowed attachment through real strict SSH/SCP. Independent acceptance covered 16 fresh inbounds: nine successful transfers with identical bytes and seven expected refusals. All 31 focused tests passed; exact-head review found no blocking code or security issue.

  • Bug: External-only official iMessage installations could not supply attachment roots, so allowed remote files were skipped before transfer.
  • Fix: The existing resolver loads the trusted, policy-allowed installed owner's narrow media contract while retaining bundled precedence.
Before After
Allowed remote attachment skipped before SCP Attachment staged once with all 68 bytes intact

CI exception: Run 34528689362, attempt 1 had one failed child, checks-node-compact-large-20, which failed the aggregate gate. The guarded merge used the recorded standing approval for these four failures:

  • mcp-auth-profile.integration.test.ts: external credential demand, persisted refresh, and deferred generation scopes each exceeded the child process's existing 30-second timeout and received its configured SIGKILL.
  • model-provider-auth.worker.test.ts: the default source-worker case exceeded its existing 30-second test deadline.

These cases exercise provider credentials, local MCP endpoints, and auth-worker preparation. They do not invoke message dispatch, attachment roots, or staging. The changed media tests were not in the failing auth group, and the MCP cases use fresh isolated child state. Their scenario, timeout, worker, dependency, and scheduler code is unchanged by this four-file repair. Source and lifecycle review established independence; no matching main failure or precise stall cause was established. No introducing commit is blamed, and no test deadline was weakened or failure hidden by a rerun.

This proves local attachment staging on Linux with a synthetic transport. A real Messages Mac, recipient delivery, and HEIC decoding were not tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: macos App: macos app: wearos App: wearos app: web-ui App: web-ui channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: imessage Channel integration: imessage channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: reef Channel integration: reef channel: slack Channel integration: slack channel: sms Channel integration: sms channel: zalouser Channel integration: zalouser cli CLI command changes commands Command implementations deploy: cloudflare Cloudflare deployment template and docs docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: acpx extensions: active-memory extensions: baseten Extension: baseten extensions: clawrouter Extension: clawrouter extensions: codex extensions: copilot extensions: crabbox extensions: deepinfra extensions: diagnostics-prometheus extensions: firecrawl extensions: google extensions: litellm extensions: lmstudio extensions: minimax extensions: openai extensions: openrouter extensions: policy extensions: qa-lab extensions: qwen extensions: runway extensions: together extensions: xai gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. plugin: file-transfer plugin: imap plugin: pixverse proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security Security documentation 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.

[Bug]: External iMessage plugin media contract is missed, silently skipping remote attachments

2 participants