Skip to content

fix(qa): Telegram picker fixture rejects native model discovery - #169476

Merged
obviyus merged 1 commit into
mainfrom
fix/qa-native-picker-discovery
Oct 12, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/qa-native-picker-discovery

Conversation

@obviyus

@obviyus obviyus commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

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: 5889e62f4902b8f3fa4b6eb2cecbbd26f5b8ceb0.

  • 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.

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The fixture rejects the stream-json discovery command, and the auth-only argument assertion fails.
  • After: The fixture returns both models and verifies that native requests contain only initialization messages.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-consistent fixture repair with reported harness validation and no actionable findings; it addresses one part of the broader failure report.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored test-only repair is outside the ordinary contributor proof gate; its body reports the native picker Gateway harness passing after the fixture update, without claiming live Telegram or inference.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Partial
User problem: QA validation rejects legitimate native discovery before completing the picker checks.
Reason: The collaborator-authored direction repairs a concrete fixture defect and preserves meaningful Gateway coverage; the report's independent callback failure remains separately owned.

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
Reviewed head: fb6a8a5c112d34239a496f9580e804ed24b8679c

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Native picker executable and invocation assertions changes intended behavior with a stated reason (48f76a5: Exercise native-ready picker choices without a model request using the then-sufficient auth-status fixture.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 48f76a5 adds test/e2e/qa-lab/runtime/telegram-model-picker-prepared-gateway.e2e.test.ts:849 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 48f76a5c1119; files: test/e2e/qa-lab/runtime/telegram-model-picker-prepared-gateway.e2e.test.ts)
  • Ayaan Zaidi: Raw commit fa3cde1 adds extensions/anthropic/cli-model-discovery.ts:32 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fa3cde1f3ce9; files: extensions/anthropic/cli-model-discovery.ts)

PR surface

Tests +64. Total +64 across 2 files. Added test files: 1.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A concrete main-branch QA failure impairs validation, with no product behavior change or demonstrated user-facing outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-12T00:29:49.047Z sha fb6a8a5 :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 8:35 PM ET / October 12, 2026, 00:35 UTC (Revision 2).

@obviyus
obviyus merged commit 494e949 into main Oct 12, 2026
89 checks passed
@obviyus
obviyus deleted the fix/qa-native-picker-discovery branch October 12, 2026 00:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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