fabro/apps/fabro-web/app/install-flow.ts
Bryan Helmkamp 9dd792c8b8
fix(install): exclude openai-compatible from v1 setup
Restrict the browser install flow to Anthropic, OpenAI, and Gemini,
remove the unused install-time base URL surface, and reject
openai_compatible with a stable 422 response.

Also fix the finishing health poller so it only redirects after the
server comes back healthy outside install mode instead of jumping early
on transient restart failures.
2026-04-19 11:43:38 -04:00

9 lines
289 B
TypeScript

export type FinishHealthPollResult =
| { kind: "error" }
| { kind: "response"; ok: boolean; mode?: string };
export function shouldRedirectAfterHealthPoll(
result: FinishHealthPollResult,
): boolean {
return result.kind === "response" && result.ok && result.mode !== "install";
}