Repository navigation
fix(imessage): stop routing benign Apple framework stderr to ERROR - #156334
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: needs maintainer review before merge. Reviewed September 27, 2026, 7:50 AM ET / 11:50 UTC (Revision 9). ClawSweeper reviewWhat this changesThe iMessage plugin now logs the documented Apple Contacts reconciliation line at verbose level while retaining ERROR logging for other helper-process stderr, with regression coverage. Merge readiness✅ Ready for maintainer review Current main still logs the reported benign iMessage diagnostic at ERROR. The earlier proposed fix closed without merging; this PR remains a useful candidate, and the prior line-matching findings are resolved on the reviewed head. Priority: P2 Review scores
Verification
How this fits togetherThe iMessage plugin starts the external imsg RPC helper and reads its output. RPC responses serve channel operations, while stderr becomes Gateway diagnostics. flowchart LR
A[iMessage channel] --> B[imsg RPC helper]
B --> C[stdout responses]
B --> D[stderr lines]
D --> E{Exact Contacts diagnostic?}
E -->|Yes| F[Verbose log]
E -->|No| G[ERROR log]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +11, Tests +93. Total +104 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep diagnostic classification in the iMessage RPC client, matching the complete known-benign line and retaining ERROR for every other stderr line. Do we have a high-confidence way to reproduce the issue? Yes. Current main routes the reporter’s exact stderr line to ERROR, and the PR supplies a focused child-process injection path; this read-only review did not execute it. Is this the best way to solve the issue? Yes. Matching the complete documented line at the stderr owner addresses the noise without adding a competing configuration path or downgrading other errors. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fe609d4ce1a8. LabelsLabel changes:
Label 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)
|
|
Addressed the ClawSweeper blockers on head
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
2ebb576 to
de288fd
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
de288fd to
92e9a02
Compare
eb7f1cc to
f8073c6
Compare
The imsg RPC child inherits stderr from Apple frameworks linked into its process (AddressBook/CoreData change-history reconciliation). Those lines are not imsg failures, yet every non-empty stderr line was routed to runtime.error(), which inflated error counts in dashboards and watchdog signals for any OpenClaw+imsg deployment with third-party contacts accounts. Route the known-benign lines to logVerbose and keep unmatched stderr at ERROR. The Full Disk Access promotion still sees every line, because the diagnostic record happens before the log-level decision. Fixes openclaw#119282 Co-authored-by: Olli0103 <[email protected]>
The previous matcher treated any stderr containing ABGroup, AddressBook, or CoreData as benign, so a real framework error could vanish from ordinary logs. Match the complete Contacts group-reconciliation message from openclaw#119282 and keep other framework diagnostics at ERROR.
f8073c6 to
a190b76
Compare
|
I anchored the complete Contacts diagnostic in bb46e6b and added error-prefix/suffix regression cases. Genuine errors remain at ERROR. Cloudflare passed all 35 client tests, 45 QA tests, and selected changed checks; final source autoreview found no issues. The PR body includes the measured client test cost. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…enclaw#156334) thanks @Olli0103 Log the documented benign Contacts diagnostic at verbose level while preserving genuine errors, including text before or after that diagnostic. Focused Cloudflare tests, selected checks, source autoreview, current-head CI, and ClawSweeper passed. Co-authored-by: Olli0103 <[email protected]> Co-authored-by: Altay <[email protected]>
Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by #158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as #155877 did for the sqlite-store worker. Every main-based FRV since #158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test #156334, signal socket probe count after #159648) in the current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
#160717) fix(release): admit 2026.9.7 recovery helper and plugin scan inventory Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by #158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as #155877 did for the sqlite-store worker. Every main-based FRV since #158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test #156334, signal socket probe count after #159648) in the current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
openclaw#160717) fix(release): admit 2026.9.7 recovery helper and plugin scan inventory Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by openclaw#158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as openclaw#155877 did for the sqlite-store worker. Every main-based FRV since openclaw#158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test openclaw#156334, signal socket probe count after openclaw#159648) in the current inventory, and map release/2026.9.7 to it, as openclaw#153372 did for 9.6.
Fixes #119282
What Problem This Solves
Healthy iMessage bridges report a benign Apple Contacts reconciliation message as an error, flooding normal logs.
User Impact
That documented message moves to verbose logging. Genuine failures—including errors containing the Contacts sentence—remain visible at ERROR, with Full Disk Access recovery guidance preserved.
Why This Change Was Made
Match the complete diagnostic, allowing its observed timestamp and process prefix. Other Apple framework messages keep their error level.
Evidence
imsg rpc --jsonwith imsg 0.15.6: the documented diagnostic logged verbose; a separate CoreData error logged ERROR. No live macOS account was used for the maintainer's follow-up proof.pnpm test extensions/imessage/src/client.test.ts --maxWorkers=1passed 35 tests in 4.181 s wall time (2.02 s Vitest duration). The client and QA catalog suites passed all 80 tests in 9.85 s together.