Skip to content

fix(qa): Telegram live evidence never starts polling - #117389

Merged
RomneyDa merged 1 commit into
mainfrom
fix/qa-telegram-product-startup-plugins
Aug 1, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/qa-telegram-product-startup-plugins

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the Telegram bot-token maturity scenario would acquire a real credential but never start polling because its Gateway inherited the shared minimal-plugin test mode.

Why This Change Was Made

The bot-token runtime now opts out of the test helper's minimal Gateway mode at the live-product startup boundary. The shared helper keeps its fast minimal default for isolated tests; only the caller that requires the bundled Telegram plugin enables product plugin loading.

User Impact

Operators can collect real Telegram bot-token evidence instead of timing out before the channel starts.

Evidence

Production delta: none; this changes only the live QA runtime and its test.

AI-assisted: yes. Agent transcript omitted unless requested.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 1, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review August 1, 2026 11:58
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 8:33 AM ET / 12:33 UTC.

ClawSweeper review

What this changes

The PR clears minimal Gateway test mode for the Telegram bot-token live-evidence runtime and updates its regression test so the bundled Telegram plugin can load and begin polling.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The patch is a correct, narrowly scoped repair for the QA runtime: the shared test-instance helper enables minimal Gateway mode by default, and this live Telegram path must explicitly remove that flag along with the channel/provider skips. Current main still lacks the reset, so the work remains necessary; because this is a member-authored PR with the maintainer label, it should remain open for explicit maintainer merge review.

Priority: P2
Reviewed head: 19ed50ac127ff77504db3a575a3c03915cdbf364
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, source-proven repair with focused regression coverage and no correctness or security findings; routine maintainer merge review remains required by the PR’s protected status.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply because the PR author is a repository member; the PR body nevertheless links the original failed live run and reports a successful changed-file gate and focused suite.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply because the PR author is a repository member; the PR body nevertheless links the original failed live run and reports a successful changed-file gate and focused suite.
Evidence reviewed 6 items Shared helper establishes the failing default: The isolated Gateway helper sets channel/provider skips and OPENCLAW_TEST_MINIMAL_GATEWAY by default, then deletes any key explicitly passed as undefined; this makes the live runtime’s explicit reset the correct owner-boundary override.
Current main still lacks the repair: Current main clears the channel and provider skip flags for this runtime but does not clear the minimal-Gateway flag, so the central issue is not already implemented on main.
PR changes the live startup boundary: The proposed runtime change clears OPENCLAW_TEST_MINIMAL_GATEWAY at the same call site that enables channels and providers, preserving the helper’s minimal default for unrelated tests.
Findings None None.
Security None None.

How this fits together

QA Lab’s Telegram bot-token runtime starts an isolated Gateway with a leased real credential to collect channel-startup evidence. The shared test helper supplies fast minimal defaults, while this runtime overrides the defaults that would suppress the Telegram plugin and prevent its polling loop from starting.

flowchart LR
  A[Leased Telegram bot token] --> B[QA live-evidence runtime]
  B --> C[Shared Gateway test helper]
  C --> D[Minimal test environment]
  D --> E{Live Telegram runtime overrides}
  E -->|Flag removed| F[Bundled Telegram plugin loads]
  F --> G[Polling begins]
  G --> H[Redacted QA evidence]
Loading

Decision needed

Question Recommendation
Should this member-authored, maintainer-labeled QA repair be merged after the exact merge result is refreshed and required checks remain green? Merge the focused repair: Merge after the normal exact-head check refresh because the live runtime now removes the helper default that suppresses its required bundled Telegram plugin.

Why: The source evidence supports the narrow repair, but repository policy requires explicit maintainer handling for member-authored items and protected maintainer work.

Before merge

  • Complete next step (P2) - The remaining action is protected member-authored PR review and merge gating, not an automated repair; likely related people: RomneyDa (high confidence, feature owner and recent area contributor).
Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 2 0 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 2 0 +2

Review metrics

None.

Technical review

Best possible solution:

Keep the shared helper’s minimal default for isolated tests, but merge this runtime-local opt-out so the Telegram maturity scenario exercises the same bundled channel startup path it claims to verify.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: createOpenClawTestInstance defaults OPENCLAW_TEST_MINIMAL_GATEWAY to 1, while the Telegram live runtime clears only the channel/provider skip flags on current main. The PR body also links the prior timed-out live run; network access was unavailable here to inspect that artifact directly.

Is this the best way to solve the issue?

Yes. The patch removes only the shared test default that conflicts with this runtime’s stated product-startup requirement, at the caller that needs bundled Telegram loading; changing the helper default would unnecessarily slow or broaden unrelated isolated tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b830a658217a.

Labels

Label changes:

  • add P2: The defect blocks one bounded QA evidence scenario rather than normal operator Telegram delivery, but it prevents meaningful live channel-startup validation.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply because the PR author is a repository member; the PR body nevertheless links the original failed live run and reports a successful changed-file gate and focused suite.

Label justifications:

  • P2: The defect blocks one bounded QA evidence scenario rather than normal operator Telegram delivery, but it prevents meaningful live channel-startup validation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply because the PR author is a repository member; the PR body nevertheless links the original failed live run and reports a successful changed-file gate and focused suite.

Evidence

What I checked:

Likely related people:

  • RomneyDa: The PR author is a repository member, and feature history attributes the original Telegram credential/startup-proof runtime work to Dallin Romney. (role: feature owner and recent area contributor; confidence: high; commits: c81bb3958c84, 19ed50ac127f; files: test/e2e/qa-lab/runtime/telegram-bot-token-runtime.ts, test/e2e/qa-lab/runtime/telegram-bot-token-runtime.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the exact merge-result checks before merging because the branch is behind current main.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit f5989ea into main Aug 1, 2026
144 of 150 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-telegram-product-startup-plugins branch August 1, 2026 12:57
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant