You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area:chatThe v3 surface a person sits in front of (internal/tui3)bugSomething the code does that it should notsev:seriousWrong or missing behaviour a person meets in ordinary use
On Windows with engine app/v312dadd64a, setup reports “Key works · 457 models available” and “Connected” for a credential whose first chat turn fails with HTTP 401, “User not found.”
Expected
Connect proves that OpenRouter accepts the credential before reporting success or saving it. Fetching a public model catalog is insufficient.
Repro
Launch the desktop app with an isolated, unconfigured profile and this engine revision.
Choose OpenRouter, enter a revoked credential, and press Connect.
Continue setup, select a model, and send a short chat message.
Compare setup's success with the turn's 401.
Evidence
Windows stability check, 2026-10-28, setup §1 and O2. At 12dadd64a, cmd/codeaf/appaccount.go:144 selects /models/user; :309 invokes appCheckKey; :471 sends GET with Authorization; :510 sets OK: true after parsing a 200 model list. A separate credential-free check using a deliberately invalid bearer value returned 200 with 457 models from both /models and /models/user, versus 401 from /key. No real credential was used for that check.
Since when
Pre-existing: /models/user selection is already present at 5c5e66c7f (2026-10-16), before the October 28 merges. The first affected release is unknown.
Likely cause / where to look
Engine-owned provider validation: appCheckKey treats a successful listing as authentication. The desktop forwards keys.check. Use an endpoint that actually rejects invalid credentials, then fetch models separately; cover invalid-credential/200-catalog behavior with a stub.
area:chatThe v3 surface a person sits in front of (internal/tui3)bugSomething the code does that it should notsev:seriousWrong or missing behaviour a person meets in ordinary use
Activity
app: setup proves OpenRouter accepts a key before it says the key works
app: setup proves OpenRouter accepts a key before it says the key works
app: setup proves OpenRouter accepts a key before it says the key works
app: setup proves OpenRouter accepts a key before it says the key wor…
AbirAbbas commentedon Nov 2, 2026
Fixed by #2040 (merged into app/v3 as d1b1a48): setup now proves OpenRouter accepts a key before it says the key works.