diff --git a/DIVERGENCES.md b/DIVERGENCES.md index eb2babcd7e..6e8a3b08c1 100644 --- a/DIVERGENCES.md +++ b/DIVERGENCES.md @@ -35,6 +35,7 @@ upstream maintainers — see README → Syncing with upstream for why and how. | `packages/opencode/src/installation/index.ts` | Updater detects/queries/installs `codev-code` (npm-family); GitHub fallback → quickbeard/codev-code | `codev-code upgrade` and the update notification target OUR npm package, never stock opencode. brew/choco/scoop probes never match (no such packages). | Keep our package names. | | `packages/opencode/src/config/config.ts` | `share` defaults to `"disabled"` when unset | Sharing publishes sessions to upstream's share service; internal users must opt in via config. | Keep our default block. | | `packages/tui/src/component/dialog-provider.tsx`, `packages/tui/src/component/dialog-model.tsx`, `packages/opencode/src/cli/cmd/providers.ts` | Filter `opencode`/`opencode-go` out of provider pickers and the `/model` dialog (model list + Favorites/Recent; the model dialog's opencode-first sort became a plain name sort) | Upstream's hosted offerings (Zen/Go) are detours for gateway users. | Keep our filters. | +| `packages/tui/src/component/prompt/index.tsx` | Added an `isHostedZenModel` memo (current `providerID` is `opencode`/`opencode-go`) and gated the prompt footer's model/provider indicator on `!isHostedZenModel()` | Don't advertise the hosted Zen default (e.g. "Big Pickle · OpenCode Zen") in the prompt footer — same rationale as the provider/model filters. A configured gateway/real provider still shows its model. | Keep the memo + the extra `Show` condition; take upstream's surrounding changes. | | `packages/app/index.html` | `` → "CoDev Code" | Web UI tab title. | Keep our title. | | `packages/app/src/desktop-menu.ts`, `packages/app/src/components/windows-app-menu.tsx` | App-menu label "OpenCode" → "CoDev Code" | Visible menu branding. | Keep our labels. | | `packages/desktop/src/main/index.ts`, `packages/desktop/src/main/windows.ts` | APP_NAMES + window title → "CoDev Code" (Dev/Beta variants too) | Desktop app display name. | Keep our names. | diff --git a/packages/tui/src/component/prompt/index.tsx b/packages/tui/src/component/prompt/index.tsx index 115c10296e..b153cddd1f 100644 --- a/packages/tui/src/component/prompt/index.tsx +++ b/packages/tui/src/component/prompt/index.tsx @@ -209,6 +209,14 @@ export function Prompt(props: PromptProps) { const move = usePromptMove({ projectID: project.project, sessionID: () => props.sessionID }) const [cursorVersion, setCursorVersion] = createSignal(0) const currentProviderLabel = createMemo(() => local.model.parsed().provider) + // Fork: hide the model/provider footer indicator for upstream's hosted Zen + // offerings (the `opencode`/`opencode-go` providers) — they're detours for + // gateway users, and the same ids are filtered from the provider/model + // pickers. A configured gateway/real provider still shows its model. + const isHostedZenModel = createMemo(() => { + const id = local.model.current()?.providerID + return id === "opencode" || id === "opencode-go" + }) const hasRightContent = createMemo(() => Boolean(props.right)) function promptModelWarning() { @@ -1447,7 +1455,7 @@ export function Prompt(props: PromptProps) { <Show when={store.mode === "normal" && local.permission.mode === "auto"}> <text fg={fadeColor(theme.textMuted, agentMetaAlpha())}>auto</text> </Show> - <Show when={store.mode === "normal"}> + <Show when={store.mode === "normal" && !isHostedZenModel()}> <box flexDirection="row" gap={1}> <text fg={fadeColor(theme.textMuted, modelMetaAlpha())}>·</text> <text