Repository navigation
fix(qa): Telegram picker fixture rejects native model discovery - #169476
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR teaches the synthetic Claude executable used by the Telegram picker test to answer initialize-only native model discovery. Example: The Gateway discovers claude-haiku-4-5 and claude-sonnet-4-6 before rendering the model picker.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a confirmed fixture mismatch on current main without weakening the no-inference contract. No actionable patch defects were found, and collaborator-authored work is protected from automatic closure. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe QA fixture substitutes for the external Claude executable while the real Gateway and Telegram polling harness exercise catalog availability and picker callbacks. flowchart LR
A[Telegram polling fixture] --> B[Gateway model picker]
B --> C[Prepared model catalog]
C --> D[Claude discovery transport]
D --> E[Synthetic Claude executable]
E --> C
B --> F[Captured picker responses]
Technical reviewBest possible solution: Land the focused fixture repair while retaining all picker, availability, and no-inference assertions. Do we have a high-confidence way to reproduce the issue? Current-main source proves that native discovery exceeds the auth-only fixture contract, matching the reported assertion failure; this read-only review ran no tests. Is this the best way to solve the issue? Updating the external executable fixture at its owner is the appropriate repair: the arguments and response match the production transport, and existing behavioral assertions remain intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c8e7f1339f81. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +64. Total +64 across 2 files. Added test files: 1. View PR surface stats
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 follows the weaker of proof and patch quality; ✨ 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 October 11, 2026, 8:35 PM ET / October 12, 2026, 00:35 UTC (Revision 2). |
…claw#169476) ## What Problem This Solves Fixes the Telegram native-model picker proof rejecting legitimate Claude model discovery before checking the picker. This is an explicitly requested main CI repair. ## User Impact No product behavior changes. The proof continues to require a usable native model catalog without an inference request, and now exercises the actual initialize-only discovery protocol. ## Why This Change Was Made The native provider now calls `claude auth status --json` and then initializes the stream-JSON protocol to discover its model menu. The old fake executable rejected everything except auth status. Move that fake into a focused helper and implement the exact discovery argv plus an initialize-only response. Unexpected argv and non-initialize input still fail; all menu, availability and zero-provider-request assertions remain. ## Evidence Baseline: `11f576b23cf70615ca4504eb12fdba93591b9c8f`. - Before: `lists native CLI-bound models through Telegram polling and provider callbacks` failed at the auth-only argv assertion. Captured invocations were three auth-status probes and one stream-JSON initialize-only discovery launch. - After: the native picker case passed, including both catalog entries, usable native availability, exact allowed argv, initialize-only messages and zero model-provider requests. - The separate catalog-replacement case has a separate product repair; this PR does not change its assertions. - Independent autoreview: scoped-clean at P2. - Root test typechecks (all four shards), changed-file Oxlint/Oxfmt, and the line-cap ratchet passed. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes the Telegram native-model picker proof rejecting legitimate Claude model discovery before checking the picker. This is an explicitly requested main CI repair.
User Impact
No product behavior changes. The proof continues to require a usable native model catalog without an inference request, and now exercises the actual initialize-only discovery protocol.
Why This Change Was Made
The native provider now calls
claude auth status --jsonand then initializes the stream-JSON protocol to discover its model menu. The old fake executable rejected everything except auth status. Move that fake into a focused helper and implement the exact discovery argv plus an initialize-only response. Unexpected argv and non-initialize input still fail; all menu, availability and zero-provider-request assertions remain.Evidence
Baseline:
5889e62f4902b8f3fa4b6eb2cecbbd26f5b8ceb0.lists native CLI-bound models through Telegram polling and provider callbacksfailed at the auth-only argv assertion. Captured invocations were three auth-status probes and one stream-JSON initialize-only discovery launch.