Repository navigation
fix(qa): wait for Telegram messages before checking their formatting - #208024
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 5b17725e-ae4e-46a8-b400-65c7cc49867e
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR waits for complete Telegram observer batches, advances a persistent cursor, and checks a closing marker for extra chunks. Example: The Gateway returns message ID 42 before the observer receives the emoji formatting fixture as message ID 9001.
Review scores
The scores reflect the reviewer's assessment. Real behavior proof is not required for maintainer- or bot-authored pull requests. ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a concrete Telegram QA false-failure path while preserving exact formatting checks, and no blocking defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe QA scenario sends Markdown through the Gateway and compares independently observed TDLib messages with fixed text, media-type, chunk-count, and entity expectations. flowchart LR
A[Formatting fixtures] --> B[Gateway send]
B --> C[Telegram transport]
C --> D[TDLib observer]
D --> E[Observer batch and cursor]
E --> F[Exact formatting assertions]
E --> G[Closing marker check]
Technical reviewBest possible solution: Use the existing observer ledger and wait helper to validate complete batches without comparing identities across Telegram accounts. Do we have a high-confidence way to reproduce the issue? Source establishes that an empty observer read returns false to a helper that treats false as completion; no target code was executed during this read-only review. Is this the best way to solve the issue? The repair fits the existing owners, keeps all exact formatting expectations, and adds only the cursor and closing marker needed to avoid skipping late chunks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 59b9268bbed7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +25, Other +35. Total +60 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 30, 2026, 2:06 AM ET / 07:06 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…ogic * commit 'f7ccd914102ab408606c45c0aa3adbd8427051eb': (1290 commits) refactor(ios): remove unreachable settings and automation controls (#208958) fix: verify deferred activation in package recovery acceptance (#208901) improve(ci): avoid unused adaptive scoring work (#208926) chore(ui): refresh control ui locales (#208959) test(agents): verify user recall and file state across OpenAI compactions (#208909) fix(ui): update the sidebar on startup and recovery screens (#207967) fix(whatsapp): quote the first queued swipe-reply answer (#208791) test(memory-wiki): generate metadata replacement transitions (#208932) fix(ui): hide Claude injected context from chat (#207234) fix(ui): count people instead of emoji in reaction badges (#207235) fix: keep Daybreak when another provider's model list fails (#208883) test(telegram): check the registered preload at polling worker startup (#208936) fix(qa): test Slack verbosity with one direct shell call (#208023) fix(qa): wait for Telegram messages before checking their formatting (#208024) feat(ios): show build details at the bottom of Settings (#208944) chore(ui): refresh control ui locales (#208937) fix: goals stop after native child-result handoffs (#193024) fix(ui): show current tool actions in collapsed chat activity (#208925) improve(ios): put About last in Settings (#208928) test(memory-wiki): generate human-note preservation regressions (#208921) ...
Related: #204372
What Problem This Solves
The Telegram live formatting check can report an empty inbox immediately after the Gateway accepts a send. In a basic group, it can also wait for a bot-side message ID that the independent observer never sees. Telegram assigns message IDs separately to each account in these groups. Failing main job · Telegram message ID sequences
User Impact
This is a QA change. The lane checks all six formatting fixtures against the messages received by its Telegram user, including their exact text, chunk count, media type and UTF-16 entity ranges.
Why This Change Was Made
Each fixture still requires a positive native Gateway receipt. The observer waits for the required number of chunks and advances only past messages it has checked. One run-specific closing message lets it detect an extra chunk delivered after the last fixture. The fixture text and 30-second observation budget stay the same.
Evidence
Contributor: @daniel-lxs
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw