Repository navigation
fix(qa): preserve native channel message IDs and slash-command arguments - #119499
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 3:17 AM ET / 07:17 UTC. ClawSweeper reviewWhat this changesThis PR makes QA channel simulations preserve provider-native inbound message IDs per conversation and retain full slash-command arguments while exposing only the command token as native metadata. Merge readinessKeep open: current main still loses native command arguments and indexes provider IDs before adopting them. The branch repairs the owning QA bus and transport boundaries with sufficient gateway-harness proof; its protected maintainer label reserves the final merge decision. Priority: P2 Review scores
Verification
How this fits togetherQA Lab drives simulated channel providers through the QA bus and then into the Gateway. The bus supplies snapshots, polling, reads, and mutations, while qa-channel turns inbound messages into command context for agent dispatch. flowchart LR
A[QA scenario input] --> B[QA transport]
B --> C[Native provider simulation]
C --> D[QA bus state]
D --> E[Snapshots polling and actions]
B --> F[Channel inbound context]
F --> G[Gateway command dispatch]
Decision needed
Why: The patch is correct and its submitted proof is sufficient, but the protected maintainer label requires an explicit human merge decision. Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +15, Tests +343. Total +358 across 10 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Preserve the pre-index native-ID adoption and full-body/token-only command split, then refresh the exact-head review and proof if updating the branch for current main. Do we have a high-confidence way to reproduce the issue? Yes: current main visibly generates/indexes a UUID before the provider ID and reconstructs native commands from only their name; the submitted Gateway-harness transcript also demonstrates the repaired path. Is this the best way to solve the issue? Yes: placing native identity at QA bus creation and preserving full text at the inbound-context boundary fixes all stored projections without changing real providers or public APIs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ae54355087b7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
Merged via squash.
|
What Problem This Solves
Resolves a problem where QA channel simulations returned provider-native Telegram/Slack/Matrix message IDs that did not match their persisted bus messages, and identical native IDs from different chats could overwrite one another. Argument-bearing native slash commands also lost their arguments or exposed the entire argument string as the command name.
Why This Change Was Made
Assign the authoritative native ID before the QA bus persists or emits a message, key private bus storage by account and conversation, and fail closed when an account-only lookup is genuinely ambiguous. Preserve the complete slash-command body while deriving only the first command token for native-command metadata in both synthetic transport owners. Public plugin SDK contracts, real channel providers, persisted product state, and authorization are unchanged.
User Impact
QA channel scenarios now observe consistent message IDs across returned messages, snapshots, events, and lookups; independent chats cannot overwrite each other; argument-bearing slash commands behave like their real provider counterparts.
Evidence
getUpdatesresponses prove full/queue ...and/think ...bodies, token-only native names, and correct command-entity lengths; existing/stopbehavior is preserved.Real Telegram/Crabline Gateway verdict
Trusted Blacksmith Testbox built the private-QA runtime and invoked the actual Gateway, actual Crabline Telegram transport, and HTTP mock provider:
The executed scenario covers complete slash arguments and explicit queue/thinking-command errors without invoking the model. The same Testbox run passed real Telegram/Slack/Matrix native-ID transport tests, the two-server cross-conversation collision regression, and real Telegram getUpdates command entities: 154 passing tests across nine files. All touched runtime owner files were verified byte-identical to the exact PR head. Testbox run: https://github.com/openclaw/openclaw/actions/runs/30983445783