Repository navigation
fix(desktop): match Studio's example to the served model and hide stale keys - #1463
Merged
jonathan308 merged 3 commits intoOct 15, 2026
Conversation
…le keys Studio defaulted its model to the first downloaded eligible model and ignored endpoint.models. When the endpoint served another model, the copied curl example named a model the endpoint does not serve, and Apply serving mode would restart onto that model. Default to the served model and keep the example on a served model. A revealed key stayed on screen after the endpoint stopped, with Hide disabled. Treat the key as part of the running endpoint and keep Hide available. Copy and key reads had no error handling, so a failure was an unhandled rejection and "Copied" could appear; report them instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
had a problem deploying
to
benchmarks
October 13, 2026 22:56 — with
GitHub Actions
Error
Contributor
|
Found 5 test failures on Blacksmith runners: Failures
|
Studio's base-URL and example copy buttons shared one `copied` flag, so copying the base URL gave no feedback on its own button and switched "Copy example" to "Copied". Track which value was copied and confirm it on that button only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 01:34 — with
GitHub Actions
Error
Address the reviewed edge cases and add focused regression coverage. Independent behavior-preserving review completed; focused tests and formatting/type checks passed. No production, provider, or account operations performed.
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 19:59 — with
GitHub Actions
Error
jonathan308
merged commit Oct 15, 2026
0d7c57b
into
codex/desktop-mac-preview-20261012
20 of 22 checks passed
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three Studio (local API) defects in
features/Studio.tsx:The example request named an unserved model. The model select defaulted to the first downloaded, eligible model and ignored
endpoint.models. If the endpoint servedgemma-4-26bwhilegpt-oss-20bwas listed first, Copy example produced"model":"gpt-oss-20b", a request the running endpoint can't serve. Apply serving mode would also restart onto GPT-OSS unless the user noticed and changed the select.The revealed key outlived the endpoint. After Reveal, if the endpoint stopped, the key stayed on screen and Hide was disabled (
disabled={!endpoint}).Unhandled failures.
api.copyand theendpoint-keyread weren't caught. A failure became an unhandled promise rejection, and Copied could show although nothing was copied.Copy feedback on the wrong button (follow-up commit, found in the second audit pass). The base-URL and example copy buttons shared one
copiedflag. Copying the base URL gave no feedback on its own button and turned Copy example into Copied.Reproductions (jsdom, mocked native API):
gpt-oss-20b. After: select and example aregemma-4-26b.sk-local-teststays visible. After: removed.Found during a desktop UI audit. Base:
codex/desktop-mac-preview-20261012(unmerged desktop stack: #1354 plus the signed preview packaging commits). The diff contains only this fix. The Desktop / frontend check on this base also needs #1455.Before / After
flowchart LR subgraph Before["Before"] direction TB B1(["Endpoint serves Gemma"]):::user --> B2["model = models[0] (GPT-OSS)"]:::bad B2 --> B3(["Example: model gpt-oss-20b ✗<br/>Apply switches to GPT-OSS"]):::bad B4(["Reveal key, endpoint stops"]):::user --> B5(["Key still shown · Hide disabled"]):::bad end subgraph After["After"] direction TB A1(["Endpoint serves Gemma"]):::user --> A2["model = served[0] · example ∈ served"]:::fix A2 --> A3(["Example: model gemma-4-26b ✓<br/>Apply keeps Gemma"]):::good A4(["Reveal key, endpoint stops"]):::user --> A5["key shown only while endpoint runs"]:::fix A5 --> A6(["Key removed"]):::good end classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2 classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5 classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4Legend: blue = state/user action, red = defect, green = changed code / fixed outcome. Copy and key-read failures now show a notice.
Changes
features/Studio.tsx: the default model prefersendpoint.models(limited to downloaded, eligible models), and the example falls back to a served model. The key is derived from the endpoint being present. Copy and key reads are caught and show aNotice.tests/studio.test.tsx(new): the four reproductions above, each failing without its fix.CHANGELOG.md: Unreleased entry.Validation
Limitations
🤖 Generated with Claude Code