Repository navigation
fix(qa): wait for the selected channel account to become ready - #119431
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 11:22 PM ET / August 5, 2026, 03:22 UTC. ClawSweeper reviewWhat this changesQA Lab’s synthetic and Crabline transports now wait for their selected channel account to be connected, lifecycle-ready, and not restarting before a scenario begins. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking correctness finding: the PR replaces two permissive QA startup loops with one exact-account lifecycle check that matches the Gateway contract. The protected Priority: P2 Review scores
Verification
How this fits togetherQA Lab starts channel scenarios through an ephemeral Gateway and reads its channel-status snapshot before sending traffic. This check determines whether the selected transport account can receive the scenario’s messages or should return diagnostics instead. flowchart LR
A[QA scenario start] --> B[Selected transport]
B --> C[Gateway channel status]
C --> D[Selected account lifecycle]
D -->|running connected ready| E[Run scenario traffic]
D -->|not ready| F[Wait with diagnostics]
Decision needed
Why: The code and supplied runtime proof support the repair, but the protected label requires explicit maintainer handling under repository policy. Before merge
Agent review detailsSecurityNone. PR surfaceSource -32, Tests +140. Total +108 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared QA-local readiness predicate, preserving the exact-account diagnostics and bounded deadline behavior, then merge after the maintainer hold is clarified. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible with high confidence: current main accepts a merely running selected qa-channel account and Crabline can fall back to another account, while the Gateway lifecycle contract distinguishes starting, blocked, and ready states. Is this the best way to solve the issue? Yes. Centralizing the two identical QA transport pollers at their shared transport boundary is the narrowest maintainable repair; live-channel adapters retain their intentionally different owner-specific readiness rules. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a8caab5c3d3c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(qa): wait for the selected channel account to become ready This is item 3/3 in the current shard. Shard 5/37. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
* origin/main: fix(channels): honor explicit preview streaming settings refactor(telegram): consolidate outbound contracts and targets (#119438) fix(qa): retry transport cleanup and always stop owned labs (#119442) fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379) refactor(auto-reply): centralize delivery deduplication and routing (#119436) fix(qa): preserve scenario isolation in serial suites (#119439) perf(xai): lazy-load optional capability runtimes (#119374) refactor(browser): consolidate browser CLI and normalization helpers (#119432) fix(qa): require ready transport accounts (#119431) refactor(media): share image and video geometry normalization (#119416) fix(config): preserve plugin metadata for missing config (#119421) fix: retry delivery when outbound adapter is unavailable (#119371) fix(cli): retire invalid secret flags and prove doctor recovery (#118926) refactor(signal): share outbound and reaction transport (#119415)
What Problem This Solves
Fixes an issue where QA operators running synthetic or Crabline channel scenarios could receive a false-ready status while the selected account was still disconnected, unauthenticated, blocked, restarting, or entirely absent.
Why This Change Was Made
Both transports now share the actual channel lifecycle readiness contract: the exact selected account must be running, connected, ready, and free of a pending restart. Consolidating the duplicate pollers also preserves bounded deadlines and useful account diagnostics.
User Impact
Channel QA starts only after the intended account can receive traffic; broken startup fails with actionable lifecycle and account evidence instead of opaque scenario timeouts.
Evidence
Inspectable exact-head runtime proof
Exact-head required CI and all four real QA smoke profiles passed: https://github.com/openclaw/openclaw/actions/runs/30970403520
The downloadable profile-2 runtime artifact is https://github.com/openclaw/openclaw/actions/runs/30970403520/artifacts/8916344287. Its unmodified primary/qa-suite-summary.json records the actual started Gateway, Crabline transport, mock provider, and six successful user-facing scenarios:
{ "head": "76c0d8b6d2817d45994ae74067a4f74682d201da", "providerMode": "mock-openai", "channelDriver": "crabline", "scenarioIds": ["subagent-completion-direct-fallback", "group-visible-reply-tool", "telegram-help-command", "telegram-tools-compact-command", "memory-dreaming-sweep", "personal-task-followthrough-status"], "counts": {"total": 6, "passed": 6, "failed": 0, "skipped": 0} }The same exact-head CI profile-4 runtime artifact https://github.com/openclaw/openclaw/actions/runs/30970403520/artifacts/8916337226 records three real Matrix Crabline restart scenarios, all passing. The patch-identical owner-boundary run also produced this captured terminal verdict: