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(opencode): project-defined models appear in that project's picker by juliusmarminge · Pull Request #24585 · pingdotgg/t3code

fix(opencode): project-defined models appear in that project's picker #24585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 21 commits into main from fix/issue-24459
Nov 12, 2026

Uh oh!

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

Merged

fix(opencode): project-defined models appear in that project's picker #24585

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d7fa8ea
test(opencode): project-defined models reach the workspace snapshot (…
juliusmarminge Oct 30, 2026
d29b9e6
fix(opencode): project-defined models appear in that project's picker
juliusmarminge Oct 30, 2026
6d2e28a
fix(opencode): OpenCode 1 projects list their own models too
juliusmarminge Oct 30, 2026
08d8467
fix(opencode): an unreadable project catalog keeps its known models
juliusmarminge Oct 30, 2026
a605290
fix(mobile): new-task and hidden-model pickers use the draft's directory
juliusmarminge Oct 30, 2026
f4feb1c
fix(web): the model picker's open provider tab lists project models
juliusmarminge Oct 30, 2026
ca458db
Merge remote-tracking branch 'origin/main' into fix/issue-24459
juliusmarminge Oct 30, 2026
9cd1814
fix(server): project model discovery retries until it reads, and foll…
juliusmarminge Oct 30, 2026
ed8c778
Merge remote-tracking branch 'origin/main' into fix/issue-24459
juliusmarminge Oct 30, 2026
6ae13e7
fix(server): project models survive machine model changes and load in…
juliusmarminge Oct 30, 2026
f089347
fix(mobile): model picker scans only the provider in view
juliusmarminge Oct 30, 2026
eac44a1
fix(mobile): pulling to refresh the model picker rescans the project'…
juliusmarminge Oct 30, 2026
958a273
test(opencode): unreadable project catalogs stay pending on OpenCode …
juliusmarminge Oct 30, 2026
b91ce46
fix(server): a machine model change rescans every folder catalog
juliusmarminge Oct 30, 2026
fcd760e
Merge remote-tracking branch 'origin/main' into fix/issue-24459
juliusmarminge Nov 11, 2026
10e72ad
test(server): drop registry assertion the merge-snapshot test already…
juliusmarminge Nov 11, 2026
de8689f
Merge remote-tracking branch 'origin/main' into fix/issue-24459
juliusmarminge Nov 11, 2026
0303070
Merge branch 'main' into fix/issue-24459
juliusmarminge Nov 11, 2026
3291c06
Merge remote-tracking branch 'origin/main' into fix/issue-24459
juliusmarminge Nov 11, 2026
bd0f5cd
fix(web): the model picker says it is searching while a project's mod…
juliusmarminge Nov 11, 2026
b46a78c
Merge branch 'main' into fix/issue-24459
juliusmarminge Nov 12, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

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

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

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

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(web): the model picker's open provider tab lists project models
While the picker is open, the active provider tab's workspace snapshot is
kept fresh for the composer's directory, so an unselected provider's
project-defined models appear without switching to it first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

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

@juliusmarminge @claude
juliusmarminge and claude committed Oct 30, 2026
commit f4feb1c8006a8227ee42dcbe54338c5180475637

There are no files selected for viewing

1 change: 1 addition & 0 deletions 1 apps/web/src/components/chat/ChatComposer.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
const composerControls = (
<ComposerControlsBar
environmentId={environmentId}
workspaceCwd={gitCwd}
routeKind={routeKind}
routeThreadRef={routeThreadRef}
draftId={draftId}
Expand Down
2 changes: 2 additions & 0 deletions 2 apps/web/src/components/chat/ComposerControlsBar.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const TEXT_CONTROL_STATES =

export function ComposerControlsBar(props: {
environmentId: EnvironmentId;
workspaceCwd: string | null;
routeKind: ChatComposerProps["routeKind"];
routeThreadRef: ChatComposerProps["routeThreadRef"];
draftId: ChatComposerProps["draftId"];
Expand Down Expand Up @@ -246,6 +247,7 @@ export function ComposerControlsBar(props: {
const composerModelPicker = (
<ComposerModelPicker
environmentId={environmentId}
workspaceCwd={props.workspaceCwd}
compact={false}
isComposerOwned
disabled={providerCatalogPending || isSendBusy}
Expand Down
8 changes: 8 additions & 0 deletions 8 apps/web/src/components/chat/ModelPickerContent.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
import { ChevronRightIcon } from "lucide-react";
import { ModelListRow } from "./ModelListRow";
import { ModelPickerSidebar } from "./ModelPickerSidebar";
import { useProviderWorkspaceSnapshotRefresh } from "./useProviderWorkspaceSnapshotRefresh";
import { getProviderStatusMessage, hasProviderSetup } from "./ProviderStatusBanner";
import {
modelPickerLegacySectionKey,
Expand Down Expand Up @@ -347,6 +348,8 @@ function WindowKeyDownListener({ onKeyDown }: { onKeyDown: (event: KeyboardEvent

export const ModelPickerContent = memo(function ModelPickerContent(props: {
environmentId: EnvironmentId | null;
/** Keeps the open provider tab's catalog fresh for this directory. */
workspaceCwd?: string | null;
activeInstanceId: ProviderInstanceId;
model: string;
selectedModels?: ReadonlyArray<{ instanceId: ProviderInstanceId; model: string }>;
Expand Down Expand Up @@ -437,6 +440,11 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {
return favorites.length > 0 ? "favorites" : props.activeInstanceId;
},
);
useProviderWorkspaceSnapshotRefresh({
environmentId: props.environmentId,
gitCwd: props.workspaceCwd ?? null,
instanceId: selectedInstanceId === "favorites" ? undefined : selectedInstanceId,
});
const favoritesSet = new Set(favorites.map((fav) => providerModelKey(fav.provider, fav.model)));
const [expandedLegacyInstances, setExpandedLegacyInstances] = useState(
() =>
Expand Down
2 changes: 2 additions & 0 deletions 2 apps/web/src/components/chat/ProviderModelPicker.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function lockBackgroundScroll(popup: HTMLElement | null) {

export const ProviderModelPicker = memo(function ProviderModelPicker(props: {
environmentId: EnvironmentId | null;
workspaceCwd?: string | null;
activeInstanceId: ProviderInstanceId;
model: string;
selectedModels?: ReadonlyArray<{ instanceId: ProviderInstanceId; model: string }>;
Expand Down Expand Up @@ -284,6 +285,7 @@ export const ProviderModelPicker = memo(function ProviderModelPicker(props: {
<ModelPickerContent
searchInputRef={searchInputRef}
environmentId={props.environmentId}
workspaceCwd={props.workspaceCwd ?? null}
activeInstanceId={activeInstanceId}
model={props.model}
{...(props.selectedModels !== undefined ? { selectedModels: props.selectedModels } : {})}
Expand Down
8 changes: 4 additions & 4 deletions 8 apps/web/src/components/chat/useProviderWorkspaceSnapshotRefresh.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ const idleRefreshAtom: Atom.Atom<unknown> = Atom.make<void>(undefined).pipe(
);

/**
* Keeps the selected provider's workspace snapshot fresh for the composer's
* cwd while mounted. Returns a check to run when the user types.
* Keeps a provider's workspace snapshot fresh for the composer's cwd while
* mounted. Returns a check to run when the user types.
*/
export function useProviderWorkspaceSnapshotRefresh(input: {
readonly environmentId: EnvironmentId;
readonly environmentId: EnvironmentId | null;
readonly gitCwd: string | null;
readonly instanceId: ProviderInstanceId | undefined;
}): () => void {
const { environmentId, gitCwd, instanceId } = input;
const atom =
gitCwd && instanceId
environmentId && gitCwd && instanceId
? providerWorkspaceSnapshotRefresh({ environmentId, instanceId, cwd: gitCwd })
: idleRefreshAtom;
return useAtomRefresh(atom);
Expand Down
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 01402809 — 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.