From 8333def91f0ff64aa21139706e62c4c8661e9af5 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Fri, 26 Jun 2026 10:06:57 -0500 Subject: [PATCH] fix(core): update OAuth callback branding --- packages/core/src/oauth/page.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/core/src/oauth/page.ts b/packages/core/src/oauth/page.ts index 2d03e765a05a..0c6b8c35737d 100644 --- a/packages/core/src/oauth/page.ts +++ b/packages/core/src/oauth/page.ts @@ -6,7 +6,7 @@ // offline and drop into any transport (`res.end(...)`, Effect `response.end`, // etc.). // -// The visual language mirrors the opencode app: the design tokens are a curated +// The visual language mirrors the OpenCode app: the design tokens are a curated // subset of the OC-2 semantic tokens in `packages/ui/src/styles/theme.css`, and // the wordmark is the same geometry as `packages/ui/src/components/logo.tsx`. // Keep this file in sync with those sources when the brand changes. @@ -25,8 +25,8 @@ export function success(options?: CallbackPageOptions) { body: renderCard({ status: "success", headline: "Authorization successful", - message: provider ? `opencode is now connected to ${escapeHtml(provider)}.` : "opencode is now authorized.", - footnote: "You can close this window and return to opencode.", + message: provider ? `OpenCode is now connected to ${escapeHtml(provider)}.` : "OpenCode is now authorized.", + footnote: "You can close this window.", }), script: options?.autoClose === false ? undefined : AUTO_CLOSE_SCRIPT, }) @@ -40,10 +40,10 @@ export function error(detail: string, options?: CallbackPageOptions) { status: "error", headline: "Authorization failed", message: provider - ? `opencode couldn't finish connecting to ${escapeHtml(provider)}.` - : "opencode couldn't complete authorization.", + ? `OpenCode couldn't finish connecting to ${escapeHtml(provider)}.` + : "OpenCode couldn't complete authorization.", detail, - footnote: "Close this window and try again from opencode.", + footnote: "Close this window and try again from OpenCode.", }), }) } @@ -100,7 +100,7 @@ function renderDocument(input: { title: string; body: string; script?: string }) - ${escapeHtml(input.title)} · opencode + ${escapeHtml(input.title)} · OpenCode @@ -116,8 +116,8 @@ function bootstrapScript(options: BootstrapOptions) { var TOKEN_URL=new URL(${scriptString(options.tokenPath)},window.location.origin).href; (function(){ var card=document.getElementById("oc-card"),headline=document.getElementById("oc-headline"),message=document.getElementById("oc-message"),detail=document.getElementById("oc-detail"),footnote=document.getElementById("oc-footnote"); - function fail(text){card.dataset.status="error";headline.textContent="Authorization failed";message.textContent=PROVIDER?("opencode couldn't finish connecting to "+PROVIDER+"."):"opencode couldn't complete authorization.";if(text){detail.textContent=text;detail.hidden=false}footnote.textContent="Close this window and try again from opencode."} - function ok(){card.dataset.status="success";headline.textContent="Authorization successful";message.textContent=PROVIDER?("opencode is now connected to "+PROVIDER+"."):"opencode is now authorized.";detail.hidden=true;footnote.textContent="You can close this window and return to opencode.";setTimeout(function(){try{window.close()}catch(e){}},2500)} + function fail(text){card.dataset.status="error";headline.textContent="Authorization failed";message.textContent=PROVIDER?("OpenCode couldn't finish connecting to "+PROVIDER+"."):"OpenCode couldn't complete authorization.";if(text){detail.textContent=text;detail.hidden=false}footnote.textContent="Close this window and try again from OpenCode."} + function ok(){card.dataset.status="success";headline.textContent="Authorization successful";message.textContent=PROVIDER?("OpenCode is now connected to "+PROVIDER+"."):"OpenCode is now authorized.";detail.hidden=true;footnote.textContent="You can close this window.";setTimeout(function(){try{window.close()}catch(e){}},2500)} try{ var hash=new URLSearchParams((window.location.hash||"").slice(1)); var search=new URLSearchParams(window.location.search||""); @@ -249,8 +249,8 @@ const STYLES = ` @media (prefers-reduced-motion: reduce) { .spinner { animation: none; } } ` -// opencode wordmark — same path geometry as packages/ui/src/components/logo.tsx (Logo). -const WORDMARK = ` +// OpenCode wordmark — same path geometry as packages/ui/src/components/logo.tsx (Logo). +const WORDMARK = `