Apply PR #40845: feat(app): redesign non-modal settings

This commit is contained in:
opencode-agent[bot] 2026-08-07 15:48:10 +00:00
commit f7deeabdac
2 changed files with 594 additions and 760 deletions

1342
bun.lock

File diff suppressed because it is too large Load diff

View file

@ -47,9 +47,15 @@ export const SettingsProvidersV2: Component<{
}
const connected = createMemo(() => {
return providers
.connected()
.filter((p) => p.id !== "opencode" || Object.values(p.models).find((m) => m.cost?.input))
return providers.connected().filter(
(provider) =>
provider.id !== "opencode" ||
Object.values(provider.models).some((model) => {
if (typeof model !== "object" || model === null || !("cost" in model)) return false
const cost = model.cost
return typeof cost === "object" && cost !== null && "input" in cost
}),
)
})
const popular = createMemo(() => {