chore: rename default terminal title to Open Claude

This commit is contained in:
Raj Rasane
2026-04-02 10:38:22 +05:30
parent 302d9d4e44
commit 63546dcd9c
3 changed files with 61 additions and 61 deletions

View File

@@ -1127,7 +1127,7 @@ export function REPL({
// session from mid-conversation context. // session from mid-conversation context.
const haikuTitleAttemptedRef = useRef((initialMessages?.length ?? 0) > 0); const haikuTitleAttemptedRef = useRef((initialMessages?.length ?? 0) > 0);
const agentTitle = mainThreadAgentDefinition?.agentType; const agentTitle = mainThreadAgentDefinition?.agentType;
const terminalTitle = sessionTitle ?? agentTitle ?? haikuTitle ?? 'Claude Code'; const terminalTitle = sessionTitle ?? agentTitle ?? haikuTitle ?? 'Open Claude';
const isWaitingForApproval = toolUseConfirmQueue.length > 0 || promptQueue.length > 0 || pendingWorkerRequest || pendingSandboxRequest; const isWaitingForApproval = toolUseConfirmQueue.length > 0 || promptQueue.length > 0 || pendingWorkerRequest || pendingSandboxRequest;
// Local-jsx commands (like /plugin, /config) show user-facing dialogs that // Local-jsx commands (like /plugin, /config) show user-facing dialogs that
// wait for input. Require jsx != null — if the flag is stuck true but jsx // wait for input. Require jsx != null — if the flag is stuck true but jsx

View File

@@ -985,7 +985,7 @@ export const connectToServer = memoize(
const client = new Client( const client = new Client(
{ {
name: 'claude-code', name: 'claude-code',
title: 'Claude Code', title: 'Open Claude',
version: MACRO.VERSION ?? 'unknown', version: MACRO.VERSION ?? 'unknown',
description: "Anthropic's agentic coding tool", description: "Anthropic's agentic coding tool",
websiteUrl: PRODUCT_URL, websiteUrl: PRODUCT_URL,
@@ -1054,9 +1054,9 @@ export const connectToServer = memoize(
`Connection timeout triggered after ${elapsed}ms (limit: ${getConnectionTimeoutMs()}ms)`, `Connection timeout triggered after ${elapsed}ms (limit: ${getConnectionTimeoutMs()}ms)`,
) )
if (inProcessServer) { if (inProcessServer) {
inProcessServer.close().catch(() => {}) inProcessServer.close().catch(() => { })
} }
transport.close().catch(() => {}) transport.close().catch(() => { })
reject( reject(
new TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS( new TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS(
`MCP server "${name}" connection timed out after ${getConnectionTimeoutMs()}ms`, `MCP server "${name}" connection timed out after ${getConnectionTimeoutMs()}ms`,
@@ -1145,9 +1145,9 @@ export const connectToServer = memoize(
}) })
} }
if (inProcessServer) { if (inProcessServer) {
inProcessServer.close().catch(() => {}) inProcessServer.close().catch(() => { })
} }
transport.close().catch(() => {}) transport.close().catch(() => { })
if (stderrOutput) { if (stderrOutput) {
logMCPError(name, `Server stderr: ${stderrOutput}`) logMCPError(name, `Server stderr: ${stderrOutput}`)
} }
@@ -1627,7 +1627,7 @@ export const connectToServer = memoize(
logMCPError(name, `Connection failed: ${errorMessage(error)}`) logMCPError(name, `Connection failed: ${errorMessage(error)}`)
if (inProcessServer) { if (inProcessServer) {
inProcessServer.close().catch(() => {}) inProcessServer.close().catch(() => { })
} }
return { return {
name, name,
@@ -3280,7 +3280,7 @@ export async function setupSdkMcpClients(
const client = new Client( const client = new Client(
{ {
name: 'claude-code', name: 'claude-code',
title: 'Claude Code', title: 'Open Claude',
version: MACRO.VERSION ?? 'unknown', version: MACRO.VERSION ?? 'unknown',
description: "Anthropic's agentic coding tool", description: "Anthropic's agentic coding tool",
websiteUrl: PRODUCT_URL, websiteUrl: PRODUCT_URL,

View File

@@ -35,7 +35,7 @@ export async function sendNotification(
}) })
} }
const DEFAULT_TITLE = 'Claude Code' const DEFAULT_TITLE = 'Open Claude'
async function sendToChannel( async function sendToChannel(
channel: string, channel: string,