GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): don't treat hidden models as unavailable when saving default model by arvindmanikandan · Pull Request #18589 · pingdotgg/t3code

Conversation

@arvindmanikandan

@arvindmanikandan arvindmanikandan commented Oct 12, 2026 •
edited by juliusmarminge
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

A hidden saved model was rejected as unavailable when changing its traits in Settings. Validation now checks the provider catalog without picker visibility preferences, while retaining provider availability, project enablement, and driver compatibility checks. Hidden models stay out of the picker.

Both validation paths are updated: new-thread/project defaults and the shared validator used by text-generation, source-control writer, and review-guide settings. The contributor's commits are preserved; current main was merged and its per-environment provider snapshots retained. Thanks @arvindmanikandan for the original fix and reproduction in #18589.

Verification at 4deb4ef, based on 5307c23:

  • Focused modelSelection.test.ts: 39 passed. Replaced the original PR's one case with three cases for hidden selections, instance-local custom models, and missing/unavailable models/providers. Restoring visibility filtering made two cases fail; restoring the fix returned 39 passing.
  • Targeted lint and formatting, web typecheck, and git diff --check passed.
  • Independent full-diff reviews by Claude Opus 5.5 and GPT-6-Sol found no blockers in one round.
  • Live Linux web client, Chromium at 1280×800, isolated worktree state: pin GPT-6-Astra, hide it in Providers, then change reasoning Medium → High. Actual main source rejects the save; the reviewed head persists gpt-6-astra with reasoningEffort: high while it remains hidden. The existing picker trigger shows the first visible model's label in both captures; persisted settings confirm the hidden model was retained.

Before — actual main validators reject the save

Before: changing reasoning for the hidden saved default shows Default model not saved

After — the same hidden default saves High reasoning

After: High reasoning saves successfully for the hidden default

Not verified live: multi-environment/relay/tunnel saves, text-generation/source-control pickers, macOS, Windows, Electron desktop, iOS, or Android. Mobile does not use these web validators. No provider or wire-contract changes. Human approval for the product-default behavior and current-head CI remain merge gates; this takeover does not merge the PR.

Implemented with GPT-6.1-Sol, tests by GPT-6-Astra, reviews by Claude Opus 5.5 and GPT-6-Sol, through Codex/Claude in T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@arvindmanikandan
fix(web): don't treat hidden models as unavailable when saving defaul…
c16f222
…t model
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 12, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This targeted fix changes validation for the default model used by new threads, allowing hidden but still installed models to be saved. Because the PR changes product-default behavior, the change requires human review despite its limited scope and focused test coverage.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge ChatGPT Codex Connector

juliusmarminge commented Oct 12, 2026

Copy link
Copy Markdown
Member

Note

This comment is posted by Julius' dot

The hidden-model regression test covers the helper, but the PR doesn't show the Settings save flow before and after this fix. Please add screenshots showing the failing and successful save, your client/environment, and the focused test results, as required by the verification guide. I'm moving this to draft until that evidence is added; you can mark it ready again afterward.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9ad1e13d-c651-48a2-b8f7-ad46de8ef0cc
📥 Commits

Reviewing files that changed from the base of the PR and between 58d2532 and c16f222.

📒 Files selected for processing (4)
  • apps/web/src/components/settings/ProjectDefaultsSettings.tsx
  • apps/web/src/components/settings/useScopedModelAvailability.ts
  • apps/web/src/modelSelection.test.ts
  • apps/web/src/modelSelection.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The change adds isModelSelectableForInstance and uses it to validate selected models against target instances in project defaults and scoped model availability. Tests cover hidden catalog models, visible catalog models, and models absent from the catalog.

Changes: Model Selectability

Layer / File(s) Summary
Add instance model selectability check
apps/web/src/modelSelection.ts, apps/web/src/modelSelection.test.ts
Adds isModelSelectableForInstance, which checks instance model options without provider model preferences. Tests cover hidden and visible catalog models and a model absent from the catalog.
Use selectability check in settings
apps/web/src/components/settings/ProjectDefaultsSettings.tsx, apps/web/src/components/settings/useScopedModelAvailability.ts
Both settings flows use isModelSelectableForInstance for target-environment validation. Existing instance availability and driver-kind checks remain.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: ⚪ Minimal · up to c16f2

Saving a default model that is hidden in the picker should no longer report it as unavailable. Models that are not hidden behave as before, and unknown or unavailable models are still rejected. No merge-blocking risk is apparent.

Security Architecture Review

Security architecture risk: ⚪ Minimal · up to c16f2

Hidden models can now remain valid saved defaults without appearing in the picker. The examined save paths preserve instance availability checks and settings-write permissions. No material security risk introduced or worsened by this change was identified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The newly accepted inputs are preference-hidden models that otherwise satisfy the existing instance-specific eligibility checks. Their effect remains the selected environments' or projects' default model for new threads; the examined change does not add a target scope or grant additional settings-write authority.

Trust Boundaries and Controls

  • observed — The visibility filter is no longer used as a save restriction. Exact instance resolution, model-option membership, target enabled and available state, and driver matching remain visible controls. Before each persistence request, the unchanged scoped write path checks the required permissions for that environment. This establishes client-path control preservation, not independent verification of server enforcement.
Pre-merge checks: Passed 4
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main fix: hidden models are no longer treated as unavailable when saving a default model.
Description check Passed The description explains the problem, implementation, affected validation paths, verification results, screenshots, and known limitations. It does not use the template section headings explicitly and …
Full details: Description check

Explanation

The description explains the problem, implementation, affected validation paths, verification results, screenshots, and known limitations. It does not use the template section headings explicitly and does not include a direct maintainer approval comment, but it is otherwise mostly complete and focused.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot approved these changes Oct 12, 2026
View reviewed changes
@arvindmanikandan

arvindmanikandan commented Oct 12, 2026

Copy link
Copy Markdown
Author

@juliusmarminge added before/after screenshots of the Settings save flow, environment details, and the focused test results to the description.

to try to reproduce, have the default model set as something (in your claude settings.json or default model picker), then hide that from the provider model list, try to change reasoning and save it tries to save the hidden model and fails

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge self-assigned this Oct 19, 2026
@juliusmarminge

juliusmarminge commented Oct 19, 2026

Copy link
Copy Markdown
Member

Taking over this one as maintainer for batch web-misc-03. I will preserve your commits, update it against current main, and verify the Settings save behavior before handing it back unmerged. Thanks for the focused fix and reproduction.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

juliusmarminge added 2 commits October 19, 2026 14:54
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/hidden-default-mo…
a6a9a5b
…del-validation

# Conflicts:
#	apps/web/src/components/settings/ProjectDefaultsSettings.tsx
#	apps/web/src/components/settings/useScopedModelAvailability.ts
#	apps/web/src/modelSelection.ts
@juliusmarminge
fix(web): validate hidden saved models against provider availability
4deb4ef
@juliusmarminge

juliusmarminge commented Oct 19, 2026

Copy link
Copy Markdown
Member

Thanks @arvindmanikandan for the fix and regression coverage. The maintainer compared both approaches and landed #13479 at e3e89f4b2e for this problem. Your approach preserved hidden saved models during trait edits across default and utility-model settings, while the selected change makes Settings show and save the effective fallback model and its traits. If this covered anything the landed change does not, please bring it forward as a follow-up on main.

arvindmanikandan reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@juliusmarminge juliusmarminge

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@arvindmanikandan @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.