Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 6, 2026, 10:12 PM ET / 02:12 UTC. Summary PR surface: Source +63, Tests +304. Total +367 across 9 files. Reproducibility: yes. from source inspection: current main builds generic Mattermost tool context without a plugin Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the Mattermost threading fix after live Mattermost proof or an explicit maintainer proof waiver, and keep the unrelated test fixture changes only if maintainers accept them as necessary CI backports. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main builds generic Mattermost tool context without a plugin Is this the best way to solve the issue? Yes with current evidence: the fix uses the existing channel-owned threading adapter seam and shared helper flag rather than adding Mattermost-specific branching in core. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 51b64b81980b. Label changesLabel justifications:
Evidence reviewedPR surface: Source +63, Tests +304. Total +367 across 9 files. View PR surface stats
What 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
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review after adding the runner-level thread-root fix and exact real-behavior proof fields. |
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
|
Closing per Andy's request: he has stopped using OpenClaw, so we're retiring the remaining Andy-authored OpenClaw PR work instead of continuing proof/CI/maintainer follow-up. |
Summary
mainas a fresh replacementthreading.buildToolContextso active thread metadata reaches the message toolrunMessageAction(... action: "send")dispatch pathSupersedes #52120.
Real behavior proof
Behavior or issue addressed: Mattermost message-tool sends from an active thread previously inherited
currentMessageIdbefore the Mattermost adapter could map the active thread root, so a normalmessage(action="send")call could reply to the latest message instead of staying anchored to the Mattermost thread root.Real environment tested: Local OpenClaw checkout on branch
fix/mattermost-message-tool-thread-contextat commit5058a7c6bc5d7b3dfc4b0850b1ededc6caddc1c6, running with the repo Node/tsx toolchain andnode_modulesfrom the OpenClaw workspace. The proof command executes the patched OpenClaw outbound threading module directly with Mattermost-shaped tool context; IDs are redacted placeholders.Exact steps or command run after this patch:
Evidence after fix:
Observed result after fix: The patched outbound reply resolver receives Mattermost-shaped same-channel thread context with
currentThreadTs=thread-root-id-redactedandcurrentMessageId=latest-reply-id-redacted, then writesparams.replyTo=thread-root-id-redacted. The latest reply message is not used as the reply target. Targeted Vitest shards also passed: 37 infra tests plus 46 Mattermost extension tests.What was not tested: I did not send a live production Mattermost network message with real credentials from this local checkout. The runtime proof uses the patched OpenClaw module with redacted Mattermost-shaped context, and the regression tests cover the normal runner/plugin-dispatch path.
Tests
node --import tsx /tmp/mattermost-thread-root-proof.mjsnode --check src/infra/outbound/message-action-threading.tsnode --check src/infra/outbound/message-action-threading.test-helpers.tsnode --check extensions/mattermost/src/channel.tsnode scripts/test-projects.mjs src/infra/outbound/message-action-runner.threading.test.ts src/infra/outbound/message-action-runner.plugin-dispatch.test.ts extensions/mattermost/src/channel.test.tsCI=true pnpm check:architecture./node_modules/.bin/oxlint src/infra/outbound/message-action-threading.ts src/infra/outbound/message-action-threading.test-helpers.ts src/infra/outbound/message-action-runner.threading.test.ts src/infra/outbound/message-action-runner.plugin-dispatch.test.ts extensions/mattermost/src/channel.ts extensions/mattermost/src/channel.test.tsNote:
CI=true pnpm check:changedwas started and passed the guards/typecheck lanes before the long split-core lint exceeded the local watchdog; changed-file oxlint passed cleanly.