Skip to content

Commit e82faf5

Browse files
committed
fix(tui): [v0.9.4-branding] util/connected.ts drops OpenCode product-name in comments
Marker Guard step 9 (branding audit, LEAK_PATTERNS regex `/\bOpenCode\b/g`) flagged two mentions of the upstream product name in the new file's docstring comments. Reworded to reference the provider-id string literal (`` `"opencode"` ``, `` `opencode` provider ``) which is code identity, not branding. Same technical content, no product-name leak. The prior mention in `component/use-connected.tsx:6` is untouched — it lives inside an `altimate_change` block, which the branding audit whitelists as intentional fork commentary. Verified locally: `bun run script/upstream/analyze.ts --branding` reports 0 leaks.
1 parent 9b5d3a3 commit e82faf5

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎packages/tui/src/util/connected.ts‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
// rationale below only lived in one.
88
//
99
// The predicate: a user is "connected" if ANY registered provider is
10-
// connectable. For non-OpenCode providers we treat "registered" AS
11-
// connected — custom `altimate-code.json` entries, BYOK entries with no
12-
// per-token cost metadata, and self-hosted deployments legitimately omit
13-
// the `cost` field, and we should not force them through the welcome
14-
// picker on upgrade. For OpenCode specifically, `cost.input === 0` is a
15-
// deliberate marker of the free tier (no Zen key), which does NOT count
16-
// as connected — a nonzero (real) cost is what signals a paid Zen key.
10+
// connectable. For providers whose id is not `"opencode"` we treat
11+
// "registered" AS connected — custom `altimate-code.json` entries, BYOK
12+
// entries with no per-token cost metadata, and self-hosted deployments
13+
// legitimately omit the `cost` field, and we should not force them
14+
// through the welcome picker on upgrade. For the built-in `"opencode"`
15+
// provider specifically, `cost.input === 0` is a deliberate marker of
16+
// its free tier (no gateway key), which does NOT count as connected —
17+
// a nonzero (real) cost is what signals a paid gateway key.
1718
export type ConnectedProviderShape = {
1819
id: string
1920
models: Record<string, { cost?: { input?: number | null } | null }>

0 commit comments

Comments
 (0)