Repository navigation
Conversation
671d5d3 to
8ca6bce
Compare
|
Thanks for the contribution. This PR still needs the requested real-behavior proof, and the branch has been idle since that ask. Close this stale PR: its small owner-plugin fix remains plausible, but the branch is conflicted, has had no author activity since 2026-07-13, and never supplied the real message-delivery proof requested on 2026-07-24. So I’m closing this for now to keep the review queue honest. Please reopen or open a fresh PR with real-behavior proof (a live run, logs, or a reproducible validation transcript) and it will be reviewed again. Review detailsBest possible solution: Retire this unmergeable stale branch and carry the two metadata declarations into a current-main replacement only after a real Twitch delivery or approved mock-gateway harness demonstrates the normalized outbound target. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main routes a Twitch-prefixed target through shared normalization without a Twitch normalizeTarget hook, leaving the raw target for the outbound adapter; this review did not execute contributor code. Is this the best way to solve the issue? No for this branch as a landing vehicle: exposing the existing plugin normalizer is the right owner boundary, but the stale conflicted branch needs a current-main rebase and real delivery proof. Security review: Security review cleared: The diff only changes Twitch plugin metadata and tests; it adds no dependency, credential, workflow, or supply-chain surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against b6548e509aac. |
|
@lzw112 thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
Fixes an issue where users sending Twitch messages to a channel-prefixed target such as
twitch:channel:OpenClawortwitch-chat:group:OpenClawcould fail to deliver to the intended Twitch channel.Twitch already accepted those canonical channel targets when building outbound session routes. For example,
twitch:channel:OpenClawis routed as theopenclawgroup conversation inextensions/twitch/src/plugin.test.ts. However, the normal message-send target normalization path did not expose Twitch's existing target normalizer through the plugin messaging metadata. As a result, ordinary message sends could pass the raw prefixed string into Twitch outbound delivery instead of the actual channel name.Concrete example before this fix:
twitch:channel:OpenClawopenclawnormalizeTargethook.Why This Change Was Made
This change exposes Twitch's existing
normalizeTwitchMessagingTargetthrough the standard channel messaging metadata and declares the supported Twitch target prefixes (twitch,twitch-chat).That keeps the normal message tool path aligned with Twitch's existing outbound session routing behavior. It does not add a new target format; it makes the already-supported
twitch:channel:*andtwitch-chat:group:*forms work consistently for real message sends.User Impact
Users can now send Twitch messages using the same prefixed target forms OpenClaw already uses for routed Twitch conversations:
twitch:channel:OpenClawtwitch-chat:group:OpenClaw#OpenClawAll of these normalize to the actual Twitch channel
openclawbefore delivery.Unsupported Twitch direct-message-style targets still do not become valid channel targets. The regression test keeps
twitch:user:aliceandtwitch:dm:alicenormalized to an empty target, matching the plugin's group-channel-only behavior.Evidence
Code evidence:
extensions/twitch/src/plugin.tsalready hadnormalizeTwitchMessagingTarget, which stripstwitch/twitch-chatprovider prefixes and channel/group kind prefixes before normalizing the Twitch channel.twitch:channel:OpenClawasopenclaw.messaging.normalizeTargetand declaresmessaging.targetPrefixes.Regression coverage added in
extensions/twitch/src/plugin.test.ts:twitch:channel:OpenClawnormalizes toopenclawtwitch-chat:group:OpenClawnormalizes toopenclaw#OpenClawnormalizes toopenclawtwitch:user:aliceandtwitch:dm:aliceremain unsupported direct targetsValidation run:
Result:
Also checked:
Proof gap:
codexexecutable is not installed in this environment.