A desktop coding agent with free access to frontier models.
TypeScript
Use OmniRush labels in customer runtime views
Slendywye0075ea6187f
diff --git a/apps/app/src/app/utils/index.ts b/apps/app/src/app/utils/index.tsindex cc3f3c26..14950389 100644--- a/apps/app/src/app/utils/index.ts+++ b/apps/app/src/app/utils/index.ts@@ -36,7 +36,7 @@ export function modelEquals(a: ModelRef, b: ModelRef) {*/export const FRIENDLY_PROVIDER_LABELS: Record<string, string> = {omnirush: "omnirush.ai",- opencode: "OpenCode",+ opencode: "OmniRush",openai: "OpenAI",anthropic: "Anthropic",google: "Google",diff --git a/apps/app/src/components/chat/capability-call-line.tsx b/apps/app/src/components/chat/capability-call-line.tsxindex ad078db7..423488fc 100644--- a/apps/app/src/components/chat/capability-call-line.tsx+++ b/apps/app/src/components/chat/capability-call-line.tsx@@ -19,6 +19,7 @@ import { getCapabilityCallQuote, getCapabilityCallSentence, parseRecord } from "import { normalizeErrorText } from "@/lib/error-text"import { trackToolCallDuration } from "@/lib/tool-call-duration"import { isToolPartInFlight } from "@/lib/tool-activity"+import { displayRuntimeBrand } from "@/lib/display-runtime-brand"import { cn } from "@/lib/utils"import type { ConnectorToolIdentity } from "@/react-app/domains/connections/connector-tool-identity"@@ -63,11 +64,11 @@ function ConnectorMark({ connector }: { connector: ConnectorToolIdentity }) {}function formatTechnicalValue(value: unknown): string {- if (typeof value === "string") return value+ if (typeof value === "string") return displayRuntimeBrand(value)try {- return JSON.stringify(value, null, 2)+ return displayRuntimeBrand(JSON.stringify(value, null, 2))} catch {- return String(value)+ return displayRuntimeBrand(String(value))}}@@ -78,7 +79,7 @@ function failureInstruction(part: DynamicToolUIPart, reconnectName: string | nul}const errorText = part.state === "output-error" ? part.errorText : nullconst attribution = errorText ? attributeChatToolError(errorText) : null- if (attribution) return attribution.description+ if (attribution) return displayRuntimeBrand(attribution.description)// Structured provider errors ({ error, details: [{ message }] }) should// read as a sentence, never as raw JSON.@@ -92,14 +93,14 @@ function failureInstruction(part: DynamicToolUIPart, reconnectName: string | nul: nullconst message = detailMessage ?? (typeof record.message === "string" ? record.message : null)const summary = [code?.replace(/_/g, " "), message].filter(Boolean).join(" — ")- if (summary) return `The provider rejected the call: ${summary}.`+ if (summary) return displayRuntimeBrand(`The provider rejected the call: ${summary}.`)}const firstLine = errorText?.split("\n")[0]?.trim()- if (firstLine && !firstLine.startsWith("{") && !firstLine.startsWith("[") && !firstLine.startsWith("<")) return firstLine+ if (firstLine && !firstLine.startsWith("{") && !firstLine.startsWith("[") && !firstLine.startsWith("<")) return displayRuntimeBrand(firstLine)if (firstLine?.startsWith("<") && errorText) {const normalizedFirstLine = normalizeErrorText(errorText, { cap: 500 }).display.split("\n")[0]?.trim()- if (normalizedFirstLine && !normalizedFirstLine.startsWith("<")) return normalizedFirstLine+ if (normalizedFirstLine && !normalizedFirstLine.startsWith("<")) return displayRuntimeBrand(normalizedFirstLine)}return "The call failed. Full error is under Technical details."}@@ -108,7 +109,7 @@ export function TechnicalDetailsPanel({ part, resultUnavailable = false }: { parreturn (<div className="mt-2 flex flex-col gap-2 rounded-lg bg-muted p-2 text-xs"><div className="font-mono text-[11px] text-muted-foreground">- {part.toolName} · {part.toolCallId}+ {displayRuntimeBrand(part.toolName)} · {part.toolCallId}</div>{part.input !== undefined && part.input !== null ? (<pre className="max-h-40 overflow-auto whitespace-pre-wrap wrap-break-word">@@ -125,7 +126,7 @@ export function TechnicalDetailsPanel({ part, resultUnavailable = false }: { par) : null}{part.state === "output-error" && part.errorText ? (<pre className="max-h-60 overflow-auto whitespace-pre-wrap wrap-break-word opacity-80">- {part.errorText}+ {displayRuntimeBrand(part.errorText)}</pre>) : null}</div>@@ -170,7 +171,7 @@ export function CapabilityCallLine({// + Reconnect/Retry, technical details).if (isFailed) {const sentence = getCapabilityCallSentence(part, { includeQuery: false })- const quote = getCapabilityCallQuote(part)+ const quote = displayRuntimeBrand(getCapabilityCallQuote(part) ?? "")const initial = sentence.service?.charAt(0).toUpperCase() ?? nullreturn (<Collapsible@@ -181,10 +182,10 @@ export function CapabilityCallLine({><CollapsibleTriggerclassName="group flex min-w-0 max-w-full cursor-pointer items-center gap-2 text-start text-sm text-muted-foreground transition-colors hover:text-foreground"- aria-label={open ? `${sentence.past}. Hide failure details` : `${sentence.past} failed. Show what to do next`}+ aria-label={open ? `${displayRuntimeBrand(sentence.past)}. Hide failure details` : `${displayRuntimeBrand(sentence.past)} failed. Show what to do next`}>{connector ? <ConnectorMark connector={connector} /> : null}- <span className="min-w-0 truncate">{sentence.past}</span>+ <span className="min-w-0 truncate">{displayRuntimeBrand(sentence.past)}</span><span className="shrink-0 text-xs font-medium text-destructive">failed</span>{duration ? (<span className="shrink-0 text-xs tabular-nums text-muted-foreground/70">{duration}</span>@@ -204,7 +205,7 @@ export function CapabilityCallLine({</span>) : null}<span className="min-w-0 truncate text-sm font-medium text-foreground">- {sentence.present}+ {displayRuntimeBrand(sentence.present)}</span></div>{quote ? (@@ -267,7 +268,7 @@ export function CapabilityCallLine({}const sentence = getCapabilityCallSentence(part)- const line = statusUnknown ? `${sentence.present} — status unavailable` : inFlight ? sentence.present : sentence.past+ const line = displayRuntimeBrand(statusUnknown ? `${sentence.present} — status unavailable` : inFlight ? sentence.present : sentence.past)return (<Collapsible data-capability-call={part.toolName} open={open} onOpenChange={setOpen} className={className}><div className="flex min-w-0 items-center gap-2">diff --git a/apps/app/src/components/tools/bash.tsx b/apps/app/src/components/tools/bash.tsxindex 1f521a17..b9792f1b 100644--- a/apps/app/src/components/tools/bash.tsx+++ b/apps/app/src/components/tools/bash.tsx@@ -8,6 +8,7 @@ import {CollapsibleToolTrigger,} from "@/components/tools/collapsible-tool"import type { BashToolPart } from "@/lib/build-in-tools"+import { displayRuntimeBrand } from "@/lib/display-runtime-brand"interface BashToolProps {part: BashToolPart@@ -20,17 +21,24 @@ export function BashTool({ part }: BashToolProps) {<CollapsibleToolTrigger leftIcon={<SquareTerminalIcon className="size-4" />}><span className="flex gap-2"><span className="shrink-0">- {part.input.description}+ {displayRuntimeBrand(part.input.description)}</span><span className="opacity-80 truncate grow">- {part.input.command}+ {displayRuntimeBrand(part.input.command)}</span></span></CollapsibleToolTrigger><CollapsibleToolContent className="bg-muted rounded-lg p-2"><div className="flex flex-col gap-2 text-xs">- <pre>$ {part.input.command}</pre>- <pre className="opacity-80">{part.output}</pre>+ <pre>$ {displayRuntimeBrand(part.input.command)}</pre>+ <pre className="opacity-80">{displayRuntimeBrand(part.output ?? "")}</pre>+ <button+ type="button"+ className="self-start text-muted-foreground underline"+ onClick={() => void navigator.clipboard?.writeText(part.input.command)}+ >+ Copy exact command+ </button></div></CollapsibleToolContent></CollapsibleToolStep>diff --git a/apps/app/src/components/ui/tool.tsx b/apps/app/src/components/ui/tool.tsxindex 3036b41e..ea75c9c4 100644--- a/apps/app/src/components/ui/tool.tsx+++ b/apps/app/src/components/ui/tool.tsx@@ -15,6 +15,7 @@ import {} from "@/components/tools/error-attribution"import { useChatToolReconnect } from "@/components/tools/use-chat-tool-reconnect"import { getToolActivityLabel, isToolPartInFlight } from "@/lib/tool-activity"+import { displayRuntimeBrand } from "@/lib/display-runtime-brand"import { cn } from "@/lib/utils"import {Bot,@@ -120,7 +121,7 @@ function diffLineClass(line: string) {function DiffLines({ diff }: { diff: string }) {return (<div className="max-h-60 overflow-auto rounded-md font-mono leading-relaxed">- {diff.split("\n").map((line, index) => (+ {displayRuntimeBrand(diff).split("\n").map((line, index) => (<divkey={`${index}:${line}`}className={cn(@@ -164,7 +165,7 @@ const Tool = ({: isError && toolPart.errorText? attributeChatToolError(toolPart.errorText): null- const label = title ?? getToolActivityLabel(toolPart)+ const label = displayRuntimeBrand(title ?? getToolActivityLabel(toolPart))const hasInput = input !== null && input !== undefinedconst hasOutput = "output" in toolPart && toolPart.output !== undefinedconst resultText = hasOutput@@ -283,7 +284,7 @@ const Tool = ({<DiffLines diff={inputDiff} />) : (<pre className="whitespace-pre-wrap wrap-break-word">- {formatValue(input)}+ {displayRuntimeBrand(formatValue(input))}</pre>)) : null}@@ -292,13 +293,13 @@ const Tool = ({<DiffLines diff={toolPart.output} />) : (<pre className="max-h-60 overflow-auto whitespace-pre-wrap wrap-break-word opacity-80">- {formatValue(toolPart.output)}+ {displayRuntimeBrand(formatValue(toolPart.output))}</pre>)) : null}{isError && toolPart.errorText ? (<pre className="text-destructive max-h-60 overflow-auto whitespace-pre-wrap wrap-break-word">- {toolPart.errorText}+ {displayRuntimeBrand(toolPart.errorText)}</pre>) : null}{inFlight && !hasInput ? (diff --git a/apps/app/src/i18n/index.ts b/apps/app/src/i18n/index.tsindex 0aa44475..e4355241 100644--- a/apps/app/src/i18n/index.ts+++ b/apps/app/src/i18n/index.ts@@ -8,6 +8,7 @@ import fr from "./locales/fr";import ca from "./locales/ca";import es from "./locales/es";import ru from "./locales/ru";+import { displayRuntimeBrand } from "../lib/display-runtime-brand";export const LANGUAGE_PREF_KEY = "omnirush.language";/**@@ -68,6 +69,33 @@ const TRANSLATIONS: Record<Language, Record<string, string>> = {ru,};+// These entries describe implementation file names or commands. Their English+// copy uses product terms, so a localized runtime-name substitution would not+// present a path or command that does not exist on the user's machine.+const ENGINE_DETAIL_KEYS = new Set([+ "context_panel.permission_source_global",+ "context_panel.permission_source_workspace",+ "extensions.create_workspace_skill_hint",+ "mcp.auth.oauth_not_supported_hint",+ "mcp.auth.reauth_cli_hint",+ "plugins.add_hint",+ "plugins.desc",+ "session.cmd_reload_config_detail",+ "settings.nuke_survives_workspaces",+ "settings.environment.footer_hint",+ "settings.environment.validation_reserved",+ "settings.workspace_config_desc",+ "skills.failed_load_opencode",+ "skills.failed_parse_opencode",+ "skills.failed_update_opencode",+ "skills.no_opencode_found",+ "skills.no_opencode_workspace",+ "skills.no_skills",+ "skills.plugin_already_listed",+ "system.reload_body_config",+ "system.reload_body_plugins",+]);+/*** Type guard to validate if a value is a Language* Replaces long chains like: value === "en" || value === "zh"@@ -115,6 +143,7 @@ export const setLocale = (newLocale: Language) => {* Resolve a translation entry with the locale → English → null fallback chain.*/const lookupEntry = (loc: Language, candidateKey: string): string | null => {+ if (ENGINE_DETAIL_KEYS.has(candidateKey)) return TRANSLATIONS.en[candidateKey] ?? null;if (TRANSLATIONS[loc]?.[candidateKey]) return TRANSLATIONS[loc][candidateKey];if (loc !== "en" && TRANSLATIONS.en?.[candidateKey]) return TRANSLATIONS.en[candidateKey];return null;@@ -179,11 +208,11 @@ export const t = (typeof params?.count === "number" ? resolvePluralKey(loc, key, params.count) : key;const result = lookupEntry(loc, lookupKey);- if (result === null) return key;+ if (result === null) return displayRuntimeBrand(key);- if (!params) return result;+ if (!params) return displayRuntimeBrand(result);- let out = result;+ let out = displayRuntimeBrand(result);for (const [k, v] of Object.entries(params)) {if (k === "lng") continue;out = out.replace(`{${k}}`, String(v));diff --git a/apps/app/src/i18n/locales/en.ts b/apps/app/src/i18n/locales/en.tsindex b04ff950..55d411bd 100644--- a/apps/app/src/i18n/locales/en.ts+++ b/apps/app/src/i18n/locales/en.ts@@ -466,9 +466,9 @@ export default {"context_panel.permission_action_ask": "Asks you","context_panel.permission_action_deny": "Blocked","context_panel.permission_source_engine": "Engine default",- "context_panel.permission_source_global": "Your global opencode.json",+ "context_panel.permission_source_global": "Your global engine configuration","context_panel.permission_source_omnirush": "omnirush.ai",- "context_panel.permission_source_workspace": "This workspace's opencode.json",+ "context_panel.permission_source_workspace": "This workspace's engine configuration","context_panel.browse_button": "Browse","context_panel.config_access_unavailable": "omnirush.ai server config access is unavailable for this workspace.","context_panel.config_read_only": "omnirush.ai server is connected read-only for workspace config.",@@ -762,7 +762,7 @@ export default {"extensions.add_skill_description_hint": "Explain when an agent should load this skill.","extensions.add_skill_description_placeholder": "When should an agent use this skill?","extensions.add_skill_description_too_long": "Description must be 1024 characters or fewer.",- "extensions.create_workspace_skill_hint": "Saved to this workspace's .opencode/skills folder. The engine loads it for every session in this workspace after a reload.",+ "extensions.create_workspace_skill_hint": "Saved to this workspace's skills folder. The engine loads it for every session in this workspace after a reload.","extensions.add_skill_name_invalid": "Name must use lowercase letters, numbers, and single hyphens only.","extensions.add_command_body_label": "Command","extensions.add_command_body_placeholder": "Write what this command should do when someone runs it...",@@ -898,11 +898,11 @@ export default {"mcp.auth.manual_finish_title": "Remote server?","mcp.auth.oauth_completed_reload": "OAuth completed. Reload the engine to activate the MCP.","mcp.auth.oauth_failed": "OAuth authentication failed.",- "mcp.auth.oauth_not_supported_hint": "This could mean:\n• The MCP server doesn't advertise OAuth capabilities\n• The engine needs to reload to discover server capabilities\n• Try: opencode mcp auth {server} from the CLI",+ "mcp.auth.oauth_not_supported_hint": "This could mean:\n• The MCP server doesn't advertise OAuth capabilities\n• The engine needs to reload to discover server capabilities\n• Reconnect {server} from MCP settings","mcp.auth.open_browser_signin": "We'll open your browser to finish sign-in.","mcp.auth.port_forward_hint": "Tip: forward the callback port if needed: ssh -L 19876:127.0.0.1:19876 user@host","mcp.auth.reauth_action": "Reauthorize OAuth",- "mcp.auth.reauth_cli_hint": "Run: opencode mcp auth {server}",+ "mcp.auth.reauth_cli_hint": "Reconnect {server} from MCP settings.","mcp.auth.reauth_failed": "Reauthorization failed.","mcp.auth.reauth_remote_hint": "Reauthorize from the machine running this worker.","mcp.auth.reauth_running": "Reauthorizing...",@@ -1151,12 +1151,12 @@ export default {"join_org.success": "Connected to {clientName} ({host}). Continue signing in to finish.","join_org.title": "Join your organization","plugins.add": "Add",- "plugins.add_hint": "Add npm package names, e.g. opencode-wakatime",+ "plugins.add_hint": "Add npm package names, e.g. @scope/plugin","plugins.add_label": "Add plugin","plugins.added": "Added","plugins.config": "Config","plugins.config_label": "Config",- "plugins.desc": "Manage `opencode.json` for your project or global OpenCode plugins.",+ "plugins.desc": "Manage plugins for this project or your global engine configuration.","plugins.empty": "No plugins configured yet.","plugins.enabled": "Enabled","plugins.hide_setup": "Hide setup",@@ -1229,7 +1229,7 @@ export default {"session.cmd_diagnostics_export_title": "Export diagnostics","session.cmd_diagnostics_export_detail": "Save the sanitized diagnostics bundle as a JSON file","session.cmd_reload_config_title": "Reload omnirush.ai config",- "session.cmd_reload_config_detail": "Re-read opencode.jsonc (providers, MCP servers, models) without restarting",+ "session.cmd_reload_config_detail": "Re-read provider, MCP server, and model configuration without restarting","session.cmd_sessions_detail": "{count} available across workspaces","session.cmd_sessions_meta": "Jump","session.cmd_sessions_title": "Search sessions",@@ -1571,7 +1571,7 @@ export default {"settings.nuke_survives_app": "The installed omnirush.ai app and protocol registration stay installed.","settings.nuke_survives_bootstrap": "Bootstrap / organization server: {path}","settings.nuke_survives_title": "Will survive",- "settings.nuke_survives_workspaces": "Workspace folders and your files inside them are not touched, but each workspace's omnirush.ai state (.opencode/omnirush) is removed.",+ "settings.nuke_survives_workspaces": "Workspace folders and your files inside them are not touched, but each workspace's app state is removed.","settings.off": "Off","settings.on": "On","settings.open_deeplink_action": "Opening...",@@ -1759,7 +1759,7 @@ export default {"settings.environment.empty_body": "Add keys like ANTHROPIC_API_KEY, GOOGLE_API_KEY, ELEVENLABS_API_KEY, or GITHUB_TOKEN for services your agents and MCP servers need.","settings.environment.empty_title": "No environment variables yet","settings.environment.empty_value": "(empty)",- "settings.environment.footer_hint": "OMNIRUSH_ and OPENCODE_ keys are reserved for app/runtime wiring. Configure OpenCode runtime settings from your shell.",+ "settings.environment.footer_hint": "App and engine environment keys are reserved for runtime wiring. Configure engine settings from your shell.","settings.environment.override_hint": "Environment variables set before omnirush.ai starts take precedence over values saved here.","settings.environment.hide": "Hide","settings.environment.hide_value": "Hide value for {key}",@@ -1787,7 +1787,7 @@ export default {"settings.environment.title": "Environment variables","settings.environment.validation_duplicate": "A variable with this name already exists.","settings.environment.validation_empty": "Name is required.",- "settings.environment.validation_reserved": "OMNIRUSH_ and OPENCODE_ names are managed by omnirush.ai/OpenCode.",+ "settings.environment.validation_reserved": "App and engine environment names are managed by omnirush.ai.","settings.environment.validation_shape": "Use letters, digits, and underscores; do not start with a digit.","settings.environment.value_label": "Value","settings.environment.table_actions": "Actions",@@ -1888,10 +1888,10 @@ export default {"skills.desktop_required": "Skill management requires the desktop app.","skills.enter_plugin_name": "Enter a plugin package name.","skills.failed_load_active": "Failed to load active plugins.",- "skills.failed_load_opencode": "Failed to load opencode.json",- "skills.failed_parse_opencode": "Failed to parse opencode.json",+ "skills.failed_load_opencode": "Failed to load engine configuration",+ "skills.failed_parse_opencode": "Failed to parse engine configuration","skills.failed_to_load": "Failed to load skills",- "skills.failed_update_opencode": "Failed to update opencode.json",+ "skills.failed_update_opencode": "Failed to update engine configuration","skills.filter_all": "All","skills.filter_installed": "Installed","skills.host_mode_only": "Local workspace only",@@ -1909,15 +1909,15 @@ export default {"skills.installing_skill_creator": "Installing skill creator...","skills.loading": "Loading…","skills.no_description": "No description yet.",- "skills.no_opencode_found": "No opencode.json found yet. Add a plugin to create one.",- "skills.no_opencode_workspace": "No opencode.json in this workspace yet.",- "skills.no_skills": "No skills detected in `.opencode/skills`, `.claude/skills`, or `~/.agents/skills`.",+ "skills.no_opencode_found": "No engine configuration found yet. Add a plugin to create one.",+ "skills.no_opencode_workspace": "No engine configuration in this workspace yet.",+ "skills.no_skills": "No skills detected in workspace or user skill folders.","skills.no_skills_found": "No skills found yet.","skills.pick_project_first": "Pick a project folder first.","skills.pick_project_for_active": "Pick a project folder to load active plugins.","skills.pick_project_for_plugins": "Pick a project folder to manage project plugins.","skills.pick_workspace_first": "Pick a workspace folder first.",- "skills.plugin_already_listed": "Plugin already listed in opencode.json.",+ "skills.plugin_already_listed": "Plugin already listed in engine configuration.","skills.plugin_management_host_only": "Plugin management requires the desktop app.","skills.plugins_host_only": "Plugins are only available in the desktop app.","skills.refresh": "Refresh",@@ -1978,11 +1978,11 @@ export default {"status.settings": "Settings","system.reload_body_agents": "omnirush.ai loads agents at startup. Reload the engine to make updated agents available.","system.reload_body_commands": "omnirush.ai loads commands at startup. Reload the engine to make updated commands available.",- "system.reload_body_config": "OpenCode reads opencode.json at startup. Reload the engine to apply configuration changes.",+ "system.reload_body_config": "The engine reads its configuration at startup. Reload it to apply changes.","system.reload_body_default": "omnirush.ai detected changes that require reloading the omnirush.ai instance.","system.reload_body_mcp": "omnirush.ai loads MCP servers at startup. Reload the engine to activate the new connection.","system.reload_body_mixed": "omnirush.ai detected omnirush.ai configuration changes. Reload the engine to apply them.",- "system.reload_body_plugins": "OpenCode loads npm plugins at startup. Reload the engine to apply opencode.json changes.",+ "system.reload_body_plugins": "The engine loads npm plugins at startup. Reload it to apply configuration changes.","system.reload_body_skills": "omnirush.ai can cache skill discovery/state. Reload the engine to make newly installed skills available.","system.reload_failed": "Failed to reload the engine.","system.reload_required": "Reload required",diff --git a/apps/app/src/lib/display-runtime-brand.ts b/apps/app/src/lib/display-runtime-brand.tsnew file mode 100644index 00000000..cad6ff23--- /dev/null+++ b/apps/app/src/lib/display-runtime-brand.ts@@ -0,0 +1,8 @@+/** Presentation-only name for text supplied by the local agent runtime. */+export function displayRuntimeBrand(value: string): string {+ return value.replace(/opencode/gi, (name) => {+ if (name === name.toUpperCase()) return "OMNIRUSH"+ if (name[0] === name[0]?.toUpperCase()) return "OmniRush"+ return "omnirush"+ })+}diff --git a/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsx b/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsxindex 9a4b3fef..78e6722d 100644--- a/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsx+++ b/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsx@@ -579,7 +579,12 @@ function RuntimeConfigSourceBlock(props: {<div><div className="font-medium text-gray-12">{props.title}</div><div className="text-[11px] text-gray-9">{props.description}</div>- {props.path ? <div className="mt-1 break-all font-mono text-[11px] text-gray-8">{props.path}</div> : null}+ {props.path ? (+ <details className="mt-1 text-[11px] text-gray-8">+ <summary className="cursor-pointer">Reveal technical path</summary>+ <div className="break-all font-mono">{props.path}</div>+ </details>+ ) : null}{props.exists !== undefined ? <div className="text-[11px] text-gray-9">{props.exists ? "Found" : "Not found"}</div> : null}<div className="text-[11px] text-gray-9">Keys: {formatKeys(props.keys)}</div></div>@@ -652,7 +657,7 @@ export function AdvancedRuntimeConfigSourcesSection(props: AdvancedRuntimeConfig</div></div><RuntimeConfigSourceBlock- title="Project opencode config"+ title="Project engine configuration"description="Workspace-level omnirush.ai config owned by the user/project."path={props.configStatus.sources.projectOpencode.path}exists={props.configStatus.sources.projectOpencode.exists}@@ -660,8 +665,8 @@ export function AdvancedRuntimeConfigSourcesSection(props: AdvancedRuntimeConfigconfig={props.configStatus.sources.projectOpencode.config}/><RuntimeConfigSourceBlock- title="Global opencode config"- description="User-level omnirush.ai config under ~/.config/opencode."+ title="Global engine configuration"+ description="User-level engine configuration."path={props.configStatus.sources.globalOpencode.path}exists={props.configStatus.sources.globalOpencode.exists}keys={props.configStatus.sources.globalOpencode.keys}@@ -686,8 +691,11 @@ export function AdvancedRuntimeConfigSourcesSection(props: AdvancedRuntimeConfig<div>Stored keys: {formatKeys(props.configStatus.runtimeKeys)}</div></div><div>- <div className="font-medium text-gray-12">User opencode.jsonc</div>- <div className="break-all">{props.configStatus.userOpencode.path}</div>+ <div className="font-medium text-gray-12">User engine configuration</div>+ <details>+ <summary className="cursor-pointer">Reveal technical path</summary>+ <div className="break-all">{props.configStatus.userOpencode.path}</div>+ </details><div>{props.configStatus.userOpencode.exists ? "Found" : "Not found"}</div><div>User-owned keys: {formatKeys(props.configStatus.userOpencode.keys)}</div></div>diff --git a/apps/app/src/react-app/domains/settings/pages/cloud-account-view.tsx b/apps/app/src/react-app/domains/settings/pages/cloud-account-view.tsxindex 3b271c17..8c66ecf8 100644--- a/apps/app/src/react-app/domains/settings/pages/cloud-account-view.tsx+++ b/apps/app/src/react-app/domains/settings/pages/cloud-account-view.tsx@@ -182,7 +182,7 @@ function DenSignedOutPanel({const permissionLabels = {allowCustomProviders: "Add AI providers",- allowZenModel: "Use OpenCode models",+ allowZenModel: "Use OmniRush models",allowMultipleWorkspaces: "Create more workspaces",allowControlSettings: "Change app settings",allowManageExtensions: "Add tools, skills & MCP servers",diff --git a/apps/app/src/react-app/domains/settings/pages/debug-view.tsx b/apps/app/src/react-app/domains/settings/pages/debug-view.tsxindex 23729d4b..e8a8f7dd 100644--- a/apps/app/src/react-app/domains/settings/pages/debug-view.tsx+++ b/apps/app/src/react-app/domains/settings/pages/debug-view.tsx@@ -24,6 +24,7 @@ import type {import type { OpencodeExecutionSnapshot } from "../../../../app/lib/desktop-types";import { formatRelativeTime, isDesktopRuntime } from "../../../../app/utils";import { t } from "../../../../i18n";+import { displayRuntimeBrand } from "@/lib/display-runtime-brand";import {AlertDialog,AlertDialogAction,@@ -582,7 +583,7 @@ export function DebugView(props: DebugViewProps) {<div className="mb-1 text-[10px] font-medium uppercase tracking-wider text-dls-secondary">{t("settings.last_error")}</div>- <pre className={miniPreClass}>{props.opencodeConnectCard.error}</pre>+ <pre className={miniPreClass}>{displayRuntimeBrand(props.opencodeConnectCard.error)}</pre></div>) : null}</div>diff --git a/apps/app/src/react-app/domains/settings/pages/mcp-view.tsx b/apps/app/src/react-app/domains/settings/pages/mcp-view.tsxindex 0bda3e46..9f21a197 100644--- a/apps/app/src/react-app/domains/settings/pages/mcp-view.tsx+++ b/apps/app/src/react-app/domains/settings/pages/mcp-view.tsx@@ -2515,7 +2515,7 @@ function McpAdvancedConfigSection(props: {</>)}</Button>- <a href="https://opencode.ai/docs/mcp-servers/" target="_blank" rel="noopener noreferrer" className="inline-flex items-center gap-1 text-xs text-dls-secondary transition-colors hover:text-dls-text">+ <a href="https://modelcontextprotocol.io/docs/learn/architecture" target="_blank" rel="noopener noreferrer" className="inline-flex items-center gap-1 text-xs text-dls-secondary transition-colors hover:text-dls-text">{t("mcp.docs_link")}<ExternalLink size={11} /></a>diff --git a/apps/app/src/react-app/domains/settings/pages/plugins-view.tsx b/apps/app/src/react-app/domains/settings/pages/plugins-view.tsxindex cebe3500..359c6258 100644--- a/apps/app/src/react-app/domains/settings/pages/plugins-view.tsx+++ b/apps/app/src/react-app/domains/settings/pages/plugins-view.tsx@@ -285,7 +285,7 @@ export function PluginsView(props: PluginsViewProps) {<div className="flex-1"><TextInputlabel={t("plugins.add_label")}- placeholder="opencode-wakatime"+ placeholder="@scope/plugin"value={extensions.pluginInput()}onChange={(event) =>extensions.setPluginInput(event.currentTarget.value)diff --git a/apps/desktop/electron/runtime.mjs b/apps/desktop/electron/runtime.mjsindex 6bc4a24c..e9bb57d1 100644--- a/apps/desktop/electron/runtime.mjs+++ b/apps/desktop/electron/runtime.mjs@@ -1790,7 +1790,7 @@ export function createRuntimeManager({resolvedSource: null,version: null,supportsServe: false,- notes: ["OpenCode binary not found in bundled sidecars or PATH."],+ notes: ["OmniRush binary not found in bundled sidecars or PATH."],serveHelpStatus: null,serveHelpStdout: null,serveHelpStderr: null,@@ -1801,10 +1801,10 @@ export function createRuntimeManager({const helpResult = spawnSync(resolved.path, ["serve", "--help"], { encoding: "utf8" });const notes = [`Using ${resolved.source}: ${resolved.path}`];if (versionResult.status !== 0) {- notes.push("OpenCode version probe failed.");+ notes.push("OmniRush version probe failed.");}if (helpResult.status !== 0) {- notes.push("OpenCode serve --help probe failed.");+ notes.push("OmniRush serve --help probe failed.");}return {@@ -2493,7 +2493,7 @@ export function createRuntimeManager({async function engineRestart(options = {}) {const projectDir = engineState.projectDir;if (!projectDir) {- throw new Error("OpenCode is not configured for a local workspace");+ throw new Error("OmniRush is not configured for a local workspace");}if (options.deferredRun === true) {const request = restartRequest(options, "deferred");@@ -2592,7 +2592,7 @@ export function createRuntimeManager({status: -1,stdout: "",stderr:- "Guided install is not supported on Windows yet. Install the OmniRush.ai-pinned OpenCode version manually, then restart OmniRush.ai.",+ "Guided install is not supported on Windows yet. Install the required OmniRush runtime manually, then restart OmniRush.ai.",};}@@ -2622,7 +2622,7 @@ export function createRuntimeManager({const program = resolveBinary("opencode");if (!program) {- throw new Error("Failed to locate opencode.");+ throw new Error("Failed to locate the local agent runtime.");}const result = await runShellCommand(program, ["mcp", "auth", safeServerName], {diff --git a/apps/server/src/agent-context-diagnostics.ts b/apps/server/src/agent-context-diagnostics.tsindex 13e71b88..6e17cbd5 100644--- a/apps/server/src/agent-context-diagnostics.ts+++ b/apps/server/src/agent-context-diagnostics.ts@@ -1205,7 +1205,7 @@ function runtimeHealthCheck(const message = corrupt? "The selected workspace runtime configuration could not be safely decoded.": !engineConfigured- ? "The selected workspace does not have an OpenCode runtime endpoint configured."+ ? "The selected workspace does not have an OmniRush runtime endpoint configured.": absent? "The runtime configuration database or selected workspace row has not been initialized.": remote@@ -1707,11 +1707,11 @@ export async function runAgentContextDiagnostics(input: {: "required_connect_tool_ids_not_denied_by_effective_policy",message: cloudToolPolicyStatus === "denied"? !effectiveEngine && staticallyDeniedCloudAgentToolIds.size > 0- ? "A passively inspected static OpenCode policy denies one or more required OmniRush.ai Cloud capability tools."- : "The effective OpenCode agent policy hides one or more required OmniRush.ai Cloud capability tools."+ ? "A passively inspected static OmniRush policy denies one or more required OmniRush.ai Cloud capability tools."+ : "The effective OmniRush agent policy hides one or more required OmniRush.ai Cloud capability tools.": cloudToolPolicyStatus === "unavailable"? "Required OmniRush.ai Cloud tool visibility could not be verified from the effective selected-engine agent."- : "The effective OpenCode agent policy does not deny either required OmniRush.ai Cloud candidate tool ID; the live engine tool registry was not read.",+ : "The effective OmniRush agent policy does not deny either required OmniRush.ai Cloud candidate tool ID; the live engine tool registry was not read.",owner: cloudToolPolicyStatus === "available"? "omnirush-server": cloudToolPolicyStatus === "unavailable"@@ -1795,7 +1795,7 @@ export async function runAgentContextDiagnostics(input: {? "Multiple configuration layers define one or more MCP names; no effective winner is claimed.": !passiveLocalLayersAvailable? "Only server-managed runtime MCP layers were available for this workspace."- : "The server-managed runtime and selected project/global MCP sources were inventoried without claiming complete OpenCode resolution.",+ : "The server-managed runtime and selected project/global MCP sources were inventoried without claiming complete OmniRush resolution.",owner: effectiveEngine? "opencode-engine": layerHealthProblem ? "member" : inventory.collisions.length > 0 ? "member" : "omnirush-server",@@ -1804,7 +1804,7 @@ export async function runAgentContextDiagnostics(input: {? "Reduce the configured MCP count or inspect the engine and OmniRush.ai runtime sources directly.": "No action is required; review registration evidence for runtime-managed dynamic MCP connection state.": layerHealthProblem- ? "Repair the invalid or unreadable OpenCode configuration layer, then rerun diagnostics."+ ? "Repair the invalid or unreadable OmniRush configuration layer, then rerun diagnostics.": inventory.collisions.length > 0? "Review the listed MCP layer collisions and remove unintended duplicate definitions.": inventoryTotal > 200diff --git a/apps/server/src/config.ts b/apps/server/src/config.tsindex be4de111..a82acc7e 100644--- a/apps/server/src/config.ts+++ b/apps/server/src/config.ts@@ -185,10 +185,10 @@ export function printHelp(): void {" --host-token <token> Host approval token"," --approval <mode> manual | auto"," --approval-timeout <ms> Approval timeout",- " --opencode-base-url <url> OpenCode base URL to share",- " --opencode-directory <path> OpenCode workspace directory to share",- " --opencode-username <user> OpenCode server username",- " --opencode-password <pass> OpenCode server password",+ " --opencode-base-url <url> OmniRush base URL to share",+ " --opencode-directory <path> OmniRush workspace directory to share",+ " --opencode-username <user> OmniRush server username",+ " --opencode-password <pass> OmniRush server password"," --workspace <path> Workspace root (repeatable)"," --cors <origins> Comma-separated origins or *"," --read-only Disable writes",diff --git a/apps/server/src/engine-v2-preview.ts b/apps/server/src/engine-v2-preview.tsindex 76b23459..0da47088 100644--- a/apps/server/src/engine-v2-preview.ts+++ b/apps/server/src/engine-v2-preview.ts@@ -149,7 +149,7 @@ async function resolveBinary(config: ServerConfig): Promise<ResolvedBinary> {return { bin: binary, source: "cache" };} catch (error) {throw new Error(- `Unable to resolve OpenCode v2 (${pathError}; verified download: ${errorMessage(error)}). Set OMNIRUSH_OPENCODE2_BIN to a working opencode2 binary.`,+ `Unable to resolve OmniRush v2 (${pathError}; verified download: ${errorMessage(error)}). Configure a working runtime binary override in advanced settings.`,);}}@@ -332,7 +332,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Picconst pending = (async () => {if (previous) await previous.catch(() => undefined);const active = sidecar;- if (!active) throw new Error("OpenCode v2 is not running");+ if (!active) throw new Error("OmniRush v2 is not running");const runtime = runtimeMcpMap(await readEffectiveRuntimeOpencodeConfig(config, workspaceId));const desired = new Map(Object.entries(runtime).flatMap(([name, value]) => {const mapped = mapRuntimeMcpToV2(value);@@ -348,7 +348,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Picconst result = await active.fetchJson(`/api/mcp/${encodeURIComponent(name)}`, {method: "DELETE", directory, timeoutMs: 15_000,});- if (result.status !== 204 && result.status !== 404) throw new Error(`OpenCode v2 MCP removal failed (${result.status})`);+ if (result.status !== 204 && result.status !== 404) throw new Error(`OmniRush v2 MCP removal failed (${result.status})`);applied.delete(name);changed = true;}@@ -358,7 +358,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Picconst result = await active.fetchJson(`/api/mcp/${encodeURIComponent(name)}`, {method: "PUT", body: { config: mcpConfig }, directory, timeoutMs: 30_000,});- if (result.status !== 204) throw new Error(`OpenCode v2 MCP registration failed (${result.status})`);+ if (result.status !== 204) throw new Error(`OmniRush v2 MCP registration failed (${result.status})`);applied.set(name, fingerprint);changed = true;}@@ -367,7 +367,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Picwhile (true) {const result = await active.fetchJson("/api/mcp", { directory, timeoutMs: 5_000 });const entries = isRecord(result.json) ? result.json.data : undefined;- if (result.status !== 200 || !Array.isArray(entries)) throw new Error("OpenCode v2 MCP status is unavailable");+ if (result.status !== 200 || !Array.isArray(entries)) throw new Error("OmniRush v2 MCP status is unavailable");const pending = [...desired.keys()].some((name) => {const entry = entries.find((entry) => isRecord(entry) && entry.name === name);return !isRecord(entry) || !isRecord(entry.status) || entry.status.status === "pending";@@ -376,7 +376,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Picif (Date.now() >= deadline) {// Retry readiness on the next request rather than cache an// acknowledged registration as usable before its tools exist.- throw new Error("OpenCode v2 MCP connections did not settle");+ throw new Error("OmniRush v2 MCP connections did not settle");}await new Promise((resolve) => setTimeout(resolve, 100));}@@ -549,7 +549,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Picfunction recordStartError(error: unknown): void {running = false;- lastError = `${errorMessage(error)} Set OMNIRUSH_OPENCODE2_BIN to a working opencode2 binary to override resolution.`;+ lastError = `${errorMessage(error)} Configure a working runtime binary override in advanced settings.`;}async function stopRuntime(): Promise<void> {@@ -593,7 +593,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Picasync function ensureWorkspaceReady(directory: string): Promise<void> {if (mirrorInFlight) await mirrorInFlight;const active = sidecar;- if (!active) throw new Error("OpenCode v2 is not running");+ if (!active) throw new Error("OmniRush v2 is not running");const existing = workspaceReadiness.get(directory);if (existing) return existing;// V2 discovers configuration asynchronously for each new location. Its@@ -609,7 +609,7 @@ export function createEngineV2Preview(options: { config: ServerConfig; env?: Pic)) return;await new Promise((resolve) => setTimeout(resolve, 100));} while (Date.now() < deadline);- throw new Error("OpenCode v2 workspace provider configuration did not become ready");+ throw new Error("OmniRush v2 workspace provider configuration did not become ready");})();workspaceReadiness.set(directory, pending);try { await pending; } catch (error) {diff --git a/apps/server/src/managed-opencode.ts b/apps/server/src/managed-opencode.tsindex 032fe5aa..e38e4269 100644--- a/apps/server/src/managed-opencode.ts+++ b/apps/server/src/managed-opencode.ts@@ -89,7 +89,7 @@ export function createManagedProcessClose(// Re-check below; kill can race a natural exit.}if (!await waitForExit(options.killTimeoutMs ?? 500)) {- throw new Error("Managed OpenCode process did not exit after SIGKILL");+ throw new Error("Managed OmniRush process did not exit after SIGKILL");}})();return closePromise;@@ -148,7 +148,7 @@ class ManagedOpencodeExitError extends Error {readonly exitCode: number | null;constructor(exitCode: number | null, output: string) {- super(`OpenCode server exited with code ${exitCode}${output.trim() ? `\n${output}` : ""}`);+ super(`OmniRush server exited with code ${exitCode}${output.trim() ? `\n${output}` : ""}`);this.exitCode = exitCode;}}@@ -214,7 +214,7 @@ async function startManagedEngine2Server(let engineUrl: string;try {engineUrl = await new Promise<string>((resolve, reject) => {- const timeout = setTimeout(() => reject(new Error(`Timeout waiting for OpenCode server after ${timeoutMs}ms`)), timeoutMs);+ const timeout = setTimeout(() => reject(new Error(`Timeout waiting for OmniRush server after ${timeoutMs}ms`)), timeoutMs);let output = "";const done = (value: string) => {clearTimeout(timeout);@@ -332,7 +332,7 @@ async function startManagedOpencodeServer(let url: string;try {url = await new Promise<string>((resolve, reject) => {- const timeout = setTimeout(() => reject(new Error(`Timeout waiting for OpenCode server after ${options.timeoutMs ?? 15000}ms`)), options.timeoutMs ?? 15000);+ const timeout = setTimeout(() => reject(new Error(`Timeout waiting for OmniRush server after ${options.timeoutMs ?? 15000}ms`)), options.timeoutMs ?? 15000);let output = "";const done = (value: string) => {clearTimeout(timeout);@@ -347,7 +347,7 @@ async function startManagedOpencodeServer(for (const line of output.split("\n")) {if (!line.startsWith("opencode server listening")) continue;const match = line.match(/on\s+(https?:\/\/[^\s]+)/);- if (!match?.[1]) return fail(new Error(`Failed to parse OpenCode server URL from: ${line}`));+ if (!match?.[1]) return fail(new Error(`Failed to parse OmniRush server URL from: ${line}`));done(match[1]);}});diff --git a/evals/specs/connector-tool-call-branding.e2e.test.ts b/evals/specs/connector-tool-call-branding.e2e.test.tsindex 83b97d43..4dd10995 100644--- a/evals/specs/connector-tool-call-branding.e2e.test.ts+++ b/evals/specs/connector-tool-call-branding.e2e.test.ts@@ -17,7 +17,7 @@ test("connector-backed tool calls show first-class branding and human-readable l});await step("the completed connector action exposes its arguments and survives reload", async () => {- await user.see({ text: world.proof }, { timeoutMs: 60_000 });+ await user.see({ text: "Listed the channels." }, { timeoutMs: 60_000 });await user.see("Run task");expect(await world.den.mocks.connector.toolCalls({ name: "list_channels", sinceIso, atLeast: 1 })).toMatchObject([{ name: "list_channels", args: { limit: 3 } }]);@@ -36,6 +36,8 @@ test("connector-backed tool calls show first-class branding and human-readable lawait user.click({ role: "button", label: "Listed channels. Show technical details" });await user.see({ text: /mcp:.*:list_channels/ });await user.see({ text: /"limit":\s*3/ });+ await user.see({ text: `OmniRush diagnostic: ${world.proof}` });+ await user.notSee({ text: /OpenCode diagnostic/ });await user.screenshot();await user.reload();await user.see({ text: /^Listed channels$/ }, { timeoutMs: 30_000 });@@ -43,6 +45,7 @@ test("connector-backed tool calls show first-class branding and human-readable lawait user.notSee({ text: /omnirush-cloud_execute_capability/ });await user.click({ role: "button", label: "Listed channels. Show technical details" });await user.see({ text: /"limit":\s*3/ });+ await user.see({ text: `OmniRush diagnostic: ${world.proof}` });await user.click({ role: "button", label: "Listed channels. Hide technical details" });});diff --git a/evals/worlds/library.ts b/evals/worlds/library.tsindex c3651975..717ff58c 100644--- a/evals/worlds/library.ts+++ b/evals/worlds/library.ts@@ -336,7 +336,7 @@ export async function connectorBranding(seed: Seed) {allowUnauthenticatedMcp: true,tools: [{ name: "list_channels", description: "List Slack channels", inputSchema,- delayMs: 4_000, result: { content: [{ type: "text", text: proof }] } },+ delayMs: 4_000, result: { content: [{ type: "text", text: `OpenCode diagnostic: ${proof}` }] } },{ name: "read_history", description: "Read Slack history", inputSchema,delayMs: 4_000, result: { isError: true, content: [{ type: "text", text: "History lookup failed." }] } },],@@ -348,7 +348,7 @@ export async function connectorBranding(seed: Seed) {const workloads = await fetch(`${den.mocks.connector.url}/admin/agent-workloads`, {method: "POST", headers: { "content-type": "application/json" },body: JSON.stringify({ workloads: [- { promptMarker: prompt, latestUserTurn: true, finalReply: "Listed the channels.", finalReplyFrom: "last-tool-text", steps: steps("list_channels") },+ { promptMarker: prompt, latestUserTurn: true, finalReply: "Listed the channels.", steps: steps("list_channels") },{ promptMarker: failurePrompt, latestUserTurn: true, finalReply: "The history lookup failed.", steps: steps("read_history") },] }),});@@ -357,6 +357,24 @@ export async function connectorBranding(seed: Seed) {const modelId = "connector-display-model";const app = await seed.desktop({ den, as: "admin", model: `${providerId}/${modelId}` });const workspace = await seed.workspace(app, seed.tmpPath("connector-tool-call-branding"));+ await seed.evalIn(app, browserScript(async () => {+ const info = await window.__OMNIRUSH_ELECTRON__?.invokeDesktop?.("omnirushServerInfo");+ if (!info?.running || !info.baseUrl) throw new Error("Local server is unavailable");+ const baseUrl = String(info.baseUrl).replace(/\/+$/, "");+ const authorization = "Bearer " + String(info.ownerToken ?? info.clientToken ?? "");+ const deadline = Date.now() + 60_000;+ let status = 0;+ while (Date.now() < deadline) {+ const response = await fetch(baseUrl + "/managed-policy", {+ headers: { Authorization: authorization },+ signal: AbortSignal.timeout(10_000),+ });+ status = response.status;+ if (response.ok) return true;+ await new Promise((resolve) => setTimeout(resolve, 500));+ }+ throw new Error(`Desktop policy did not become ready (HTTP ${status})`);+ }), { awaitPromise: true, timeoutMs: 75_000 });await configureProvider(seed, app, workspace.workspaceId, providerId, modelId, {provider: { [providerId]: {npm: "@ai-sdk/openai-compatible", name: "Connector display model",