Skip to content

fix(imessage): keep replies in the current conversation - #133499

Merged
omarshahine merged 14 commits into
openclaw:mainfrom
omarshahine:omarshahine/imessage-threaded-reply-service
Aug 31, 2026
Merged

omarshahine merged 14 commits into
openclaw:mainfrom
omarshahine:omarshahine/imessage-threaded-reply-service

Conversation

@omarshahine

@omarshahine omarshahine commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #133468

What Problem This Solves

Fixes an issue where iMessage users replying in a direct conversation could lose automatic threaded replies and current-conversation actions when channels.imessage.service was unset. Automatic finals reached delegated-reply authorization as an ambiguous auto:<handle> route, while model-visible peer redaction encouraged message actions to retry the literal *** destination.

Why This Change Was Made

Direct inbound turns now carry the bridge-provided numeric chat ID, or the authoritative chat GUID when no numeric ID exists, as their immediate reply target while retaining the service-qualified handle as the durable follow-up route. This keeps the trusted current conversation exact and PII-free without relaxing same-account or same-conversation authorization.

Core propagates the inbound chatType into channel-owned action discovery so a numeric direct-chat target cannot expose group-only actions. The iMessage tool prompt tells the model to omit current-conversation targets, and target, to, chatGuid, or chatIdentifier containing the literal redaction marker fail before parsing or bridge dispatch with that recovery guidance.

User Impact

With the default/unset service, automatic direct-message replies and targetless native actions such as polls stay in the current iMessage chat. Redacted display values are no longer retried as executable destinations. Explicitly unbound, wrong-account, and cross-chat delegated references remain rejected.

Evidence

Pre-fix production incident, 2026-08-30

  • OpenClaw 2026.9.1-beta.1, imsg 0.13.4, bridge v2 healthy.
  • With service unset, three threaded inbound messages reached the correct running DM session, but assistant finals failed before dispatch with Delegated iMessage message references require a current same-account conversation binding when the Messages database is unavailable.
  • Recovery correctly refused blind replay after send_attempt_started; its pending-delivery notice appeared after /new, making the successful reset look broken.
  • After the local service="imessage" mitigation, a threaded inbound message received the automatic reply Yes — I’m here. in the same thread nine seconds later with no new delivery-recovery errors. This is mitigation evidence, not proof of this patch.
  • A later native-poll request reached the same session, but the model received the current peer as literal ***. Six reply/poll retries using redacted or malformed targets failed over about 127 seconds. Two direct imsg poll sends to the same numeric chat delivered immediately and rendered correctly, isolating the defect to OpenClaw's current-conversation route.

Post-fix automated proof for exact head fa318748d95009c745a66f862f389efe9c852e29

  • Immediate direct replies prefer the authoritative chat_id, then chat_guid, before a service-qualified handle fallback. The durable route remains service-qualified.
  • Authoritative inbound chatType is propagated through runtime prompt preparation, embedded discovery, message-tool discovery, and execution. Direct numeric chats hide group-only actions; group chats retain them.
  • Targetless current-conversation polls resolve the trusted server-side selector. Literal *** in target, to, chatGuid, or chatIdentifier is rejected before bridge dispatch with omit-target remediation.
  • Existing delegated auto-handle rejection remains green, preserving the fail-closed boundary when no exact current binding exists.
  • Focused exact-head routing validation: 4 files, 7 tests passed with 99 intentionally filtered tests.
  • Discovery propagation and reconstructed-prompt focus: 4 files, 4 tests passed across the code-identical parent validations.
  • The current-main docs-sync regression passes: 1 file, 6 tests. The branch was synchronized by normal merge with openclaw/main at 5835fbeac7d6be65612fb666f47f10b6bc4ca30c; the sole conflict was resolved with main’s generalized release-route assertions.
  • docs:list: passed, 1,525 indexed lines.
  • Docs MDX validation and changed-file formatting: passed.
  • git diff --check and changelog attribution validation: passed.
  • Code-identical tree autoreview at f4a978146492ee38a90f38601001f18b7dde8117: scoped clean through P2; patch rated correct at 0.90 confidence. The two later changelog-policy commits have zero net tree delta.

Live after-proof status

No live post-fix claim is made yet. The isolated dev proof run was blocked before the patched Gateway became ready because copied agent databases require stopped-writer identity migration. Initial restore also exposed stale dev-config validation ordering; production was manually restored and verified healthy with one bridge v2 process. The operational fixes are tracked independently in #133478 and Lobster issues/PRs #338/#339. They are proof dependencies only and are not branch ancestors of this PR.

Validation notes

  • An earlier routing head completed the full iMessage plugin suite with 54 files and 1,196 tests passing. The exact head adds the GUID-only, chat-type, alias, and documentation follow-ups covered above.
  • Parallel broad local runs under severe host contention produced unrelated timeout-only failures in long-running send.test.ts and message-tool.test.ts cases. Exact-head CI is green: 214 passed, 44 skipped, zero pending or failed.
  • Earlier routing CI failures were fixed by moving the GUID-only regression into a dedicated test file and asserting chatType: group in reconstructed prompts. The only failure on 5b812d3 was release-doc fixture drift in shard checks-node-compact-small-44; current main now owns a generalized fix and that exact test passes locally. Exact-head CI is green. Exact-head ClawSweeper review is complete with no actionable findings; needs-human remains only for installed-bridge proof and maintainer handling.

Production code delta: +50/-8; tests and test support: +151/-9; documentation: +2/-1; changelog: 0. The production growth spans the exact-route producer, redaction guard, bounded model guidance, and generic discovery context propagation. No configuration or database surface is added. Release-note context remains in this PR body; the root changelog has no PR delta and remains release-owned.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added channel: imessage Channel integration: imessage size: S maintainer Maintainer-authored PR labels Aug 30, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 12:18 AM ET / 04:18 UTC.

ClawSweeper review

What this changes

This PR makes iMessage direct replies use the inbound chat ID or GUID, rejects redacted action targets with a current-conversation remedy, and passes authoritative chat type into message-action discovery.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: current main still builds direct iMessage replies from an unset-service handle, while this branch carries the inbound chat identifier through immediate delivery and prevents models from retrying redacted targets. The remaining uncertainty is installed-bridge behavior, not a demonstrated patch defect.

Priority: P1
Reviewed head: fa318748d95009c745a66f862f389efe9c852e29

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused, tested owner-boundary repair with one explicitly retained installed-bridge validation gap.
Proof confidence 🌊 off-meta tidepool Not applicable: The PR author is a repository member, so the external-contributor proof rule does not apply; nevertheless, no post-fix installed-imsg trace was supplied and that gap remains beta-validation risk.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The PR author is a repository member, so the external-contributor proof rule does not apply; nevertheless, no post-fix installed-imsg trace was supplied and that gap remains beta-validation risk.
Evidence reviewed 6 items Current main retains the reported ambiguous route: Current main derives a direct reply as auto:&lt;sender> when service is unset and uses that value as reply.to; the branch instead prefers the inbound numeric chat ID and then chat GUID.
The PR repairs the owner boundary: The inbound owner keeps the service-qualified handle as durable origin but assigns immediate direct replies to the exact chat ID or GUID before the generic delivery pipeline consumes reply.to.
Current-conversation actions remain server-resolved: The action adapter rejects the exact redaction marker before target parsing, while the generic dispatcher applies the existing same-provider, same-account, same-conversation gate before plugin action execution.
Findings None None.
Security None None.

How this fits together

The iMessage plugin converts bridge inbound events into an OpenClaw reply route, then the generic reply pipeline and shared message tool dispatch replies or native actions. This change preserves the trusted conversation identity through that handoff so direct messages do not depend on service auto-detection or model-visible PII.

flowchart LR
  A[iMessage bridge inbound event] --> B[Inbound conversation classification]
  B --> C[Exact reply route selection]
  C --> D[Reply pipeline]
  B --> E[Runtime prompt and message tool discovery]
  E --> F[Action authorization and dispatch]
  D --> G[iMessage bridge delivery]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - The installed imsg bridge selector contract for both chat_id and chat_guid was not independently verified, and the supplied PR evidence has no post-fix installed-bridge trace; beta validation should exercise both direct-route forms before broader release promotion.
  • Resolve merge risk (P1) - Production code grows by 42 net lines for route precedence, redaction handling, and authoritative discovery scope; the additions are tied to the owner boundary and cannot be absorbed into the prior handle-only inference without restoring the failure mode.
  • Complete next step (P2) - The active PR uniquely owns the repair; no separate automated repair job or reviewer finding is warranted.
Agent review details

Security

None.

PR surface

Source +42, Tests +145, Docs +1. Total +188 across 23 files.

View PR surface stats
Area Files Added Removed Net
Source 13 52 10 +42
Tests 9 152 7 +145
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 23 206 18 +188

Review metrics

Metric Value Why it matters
Production versus test delta production +50/-8 (net +42); tests/test support +154/-9; docs +2/-1 The positive production delta is limited to preserving exact conversation identity, rejecting redacted targets, and carrying existing authoritative chat type through the generic discovery boundary.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #133468
Summary: This PR is the candidate repair for the canonical unset-service iMessage conversation-route failure; the agent-database migration item is a distinct proof-environment concern.

Members:

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

Merge-risk options

Maintainer options:

  1. Validate the installed bridge during beta (recommended)
    Proceed under the stated beta-validation plan and capture redacted installed-imsg evidence for direct replies using both numeric chat IDs and GUID-only routes.
  2. Pause pending bridge confirmation
    Defer merge if beta validation cannot establish that the installed bridge accepts the exact selectors used by the new delivery route.

Technical review

Best possible solution:

Retain this owner-boundary repair and record a redacted beta trace for numeric-ID and GUID-only direct replies before promotion beyond beta.

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

Yes for a source-level reproduction: current main constructs auto:&lt;sender> for an unset-service direct chat and hands it to reply delivery; this read-only review did not run an installed bridge.

Is this the best way to solve the issue?

Yes: the branch repairs the inbound route owner, preserves the durable service-qualified origin, and uses generic typed discovery rather than a configuration workaround or model-side target reconstruction.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Not applicable: The PR author is a repository member, so the external-contributor proof rule does not apply; nevertheless, no post-fix installed-imsg trace was supplied and that gap remains beta-validation risk.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: 🚀 automerge armed.

Label justifications:

  • P1: The PR addresses automatic iMessage direct replies failing on the normal unset-service path.
  • merge-risk: 🚨 compatibility: Existing installations with unset iMessage service change from handle-based delivery to exact bridge conversation selectors.
  • merge-risk: 🚨 message-delivery: The changed reply destination is the final route sent to the iMessage bridge, so unverified selector behavior could affect delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Not applicable: The PR author is a repository member, so the external-contributor proof rule does not apply; nevertheless, no post-fix installed-imsg trace was supplied and that gap remains beta-validation risk.

Evidence

Acceptance criteria:

  • [P1] Review installed-imsg beta evidence for numeric-ID and GUID-only direct replies before promotion beyond beta.

What I checked:

  • Current main retains the reported ambiguous route: Current main derives a direct reply as auto:&lt;sender> when service is unset and uses that value as reply.to; the branch instead prefers the inbound numeric chat ID and then chat GUID. (extensions/imessage/src/monitor/inbound-processing.ts:994, ee3ee255d8d9)
  • The PR repairs the owner boundary: The inbound owner keeps the service-qualified handle as durable origin but assigns immediate direct replies to the exact chat ID or GUID before the generic delivery pipeline consumes reply.to. (extensions/imessage/src/monitor/inbound-processing.ts:994, fa318748d950)
  • Current-conversation actions remain server-resolved: The action adapter rejects the exact redaction marker before target parsing, while the generic dispatcher applies the existing same-provider, same-account, same-conversation gate before plugin action execution. (extensions/imessage/src/actions.ts:69, fa318748d950)
  • Direct numeric conversations no longer expose group-only actions: The PR forwards authoritative inbound chat type through prompt, embedded-runner, and shared discovery context, allowing iMessage to override its otherwise ambiguous numeric-target inference. (extensions/imessage/src/message-tool-api.ts:33, fa318748d950)
  • Focused regression coverage accompanies the changed paths: Tests cover GUID-only direct routing, exact-chat final delivery, omitted-target polling, redacted aliases, and direct numeric chat action discovery. (extensions/imessage/src/monitor/inbound-processing.route.test.ts:8, fa318748d950)
  • Installed bridge proof remains a stated gap: The supplied PR discussion records no post-fix installed-imsg trace and defers that confirmation to beta validation; the local checkout could not obtain upstream imsg protocol source because network name resolution is unavailable.

Likely related people:

  • Peter Steinberger: 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.

  • Capture a redacted installed-imsg beta trace covering a numeric chat ID and a GUID-only direct reply.

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 (18 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-30T22:59:33.031Z sha d51a3bd :: found issues before merge. :: [P2] Remove the release-owned changelog entry
  • reviewed 2026-08-30T23:07:40.889Z sha d51a3bd :: found issues before merge. :: [P2] Remove the release-owned changelog entry
  • reviewed 2026-08-30T23:18:57.963Z sha f4a9781 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T23:37:37.566Z sha f4a9781 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T00:30:03.193Z sha f4a9781 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T01:19:48.246Z sha fa31874 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T01:31:28.087Z sha fa31874 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T04:08:03.339Z sha fa31874 :: passed. :: none

@omarshahine

Copy link
Copy Markdown
Contributor Author

ClawSweeper follow-up for reviewed head 798a5c903a9b90a30f41d54278da23d33a936663:

  • Live delivery proof: accepted as required and still pending. I will not claim or waive it; the independent stopped-writer migration and restore-safety tracks must unblock the isolated gateway first.
  • CHANGELOG.md finding: deliberately not applied. Omar explicitly required every fix/feat/perf PR in this coordinated effort to carry an Unreleased entry. The PR therefore retains the one-line release note as an owner-directed exception.
  • Production LOC: retained. The exact selector producer, fail-fast redaction guard, and bounded model guidance are the smallest complete capability repair; autoreview found no P0-P2 alternative or defect.

No autofix or automerge is enabled.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 30, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

New exact head: 14d3a68fbe2. The prior 798a5c9 verdict is superseded. This head carries authoritative chatType through runtime-prompt and message-tool discovery, with direct-vs-group numeric-chat regression coverage. Live bridge proof remains pending the independent proof track.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Aug 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 30, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Exact head is now 89dcc5b5fd657332f7fea195a4effb7a625b5818. This follow-up moves the authoritative chat type to the intended action-discovery call site after the core typecheck caught an adjacent-call placement error. pnpm tsgo:core is green on this head.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

New exact head: 2660800af8cbb49957e8a7533df8e710ffc8e8bd. The prior 14d3a68 verdict is superseded. This head rejects the redaction marker before normalizing every accepted string destination alias (target, to, chatGuid, and chatIdentifier) and adds action-boundary regression coverage proving no bridge dispatch. Live bridge proof remains pending the independent DB proof track.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 30, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

New exact head: f3f28bba67630e62dd45a4a30ec5f242c733a111. The prior 2660800 run is superseded. This head additionally routes GUID-only direct inbound replies through the authoritative chat_guid selector before any service-qualified handle fallback, with a focused regression. The authoritative chat-type propagation and all four redacted-alias rejection tests remain in place. Live bridge proof remains pending the independent DB proof track.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 30, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Exact head: fa318748d95009c745a66f862f389efe9c852e29. The durable f4a978146492ee38a90f38601001f18b7dde8117 verdict is superseded. Current PR delta has no root CHANGELOG.md change; CI is still running with no failures. Review this exact head only. No autofix, automerge, or production action.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 31, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Maintainer-approved ClawSweeper automerge is not merged yet.

Approver: omarshahine
Head: fa318748d950
Merge status: exact-head ClawSweeper review decision is human

I left the PR open for the remaining gate instead of bypassing it.

Automerge progress:

  • 2026-08-31 04:01:44 UTC review queued fa318748d950 (queued)
  • 2026-08-31 04:06:22 UTC active review reused fa318748d950 (waiting)
  • 2026-08-31 04:10:26 UTC review queued fa318748d950 (queued)

@clawsweeper clawsweeper Bot added the clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge label Aug 31, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

Maintainer decision: accept the selector-contract risk and proceed with landing this exact head using the green focused coverage and CI. The missing redacted installed-imsg traces for both numeric chat_id and GUID-only direct-reply delivery are explicitly deferred to coordinated beta validation. This is not a claim that live post-fix bridge proof already exists, and no production patch or restart is authorized by this decision.

@clawsweeper automerge

@clawsweeper clawsweeper Bot added status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. clawsweeper:human-review Needs maintainer review before ClawSweeper can continue and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [ ] Resolve merge risk (P1) - The installed imsg bridge selector contract for both chat_id and chat_guid was not independently verified, and the supplied PR evidence has no post-fix installed-bridge trace; beta va... (sha=fa318748d95009c745a66f862f389efe9c852e29)

Why human review is needed:
ClawSweeper found a blocker that should be resolved or accepted by a maintainer before the repair or automerge loop continues.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If more work is needed, resolve the blocker first, then comment @clawsweeper automerge to re-review and continue. If automation should stay paused, leave clawsweeper:human-review in place or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper approve

@omarshahine
omarshahine merged commit b72668f into openclaw:main Aug 31, 2026
288 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
)

* fix(imessage): preserve current conversation routes

* fix(imessage): preserve direct action discovery

* fix(agents): pass chat type to action discovery

* fix(imessage): reject redacted target aliases

* fix(imessage): prefer exact inbound chat guid

* docs(plugins): describe chat-type discovery scope

* test(imessage): cover routed discovery context

* docs(changelog): attribute current conversation fix

* test(docs): sync release navigation fixture

* chore: leave release notes to release flow

* docs(changelog): note iMessage direct reply fix

* chore: keep release changelog generated

---------

Co-authored-by: Omar Shahine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: imessage Channel integration: imessage clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge clawsweeper:human-review Needs maintainer review before ClawSweeper can continue docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: iMessage loses the canonical current-conversation route when service is unset

1 participant