mirror of
https://github.com/stablyai/orca.git
synced 2026-09-28 08:02:43 +00:00
refactor(runtime): reuse the shared default chat label on a replacement tab
The replacement tab open-coded `'Claude Chat' : 'Codex Chat'` while every other publisher already calls `defaultAgentChatLabel`. One writer for the placeholder.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { defaultAgentChatLabel } from '../../shared/agent-session-chat-label'
|
||||
import type { RuntimeMobileSessionTabsSnapshot } from '../../shared/runtime-types'
|
||||
import type { ConversationReplacement } from '../native-chat/agent-session-wire/structured-conversation-command'
|
||||
|
||||
@@ -30,7 +31,7 @@ export function replaceConversationInSnapshot(
|
||||
id,
|
||||
sessionId: replacement.sessionId,
|
||||
agent: replacement.agent,
|
||||
title: replacement.agent === 'claude' ? 'Claude Chat' : 'Codex Chat',
|
||||
title: defaultAgentChatLabel(replacement.agent),
|
||||
replacesSessionId: replacement.sourceSessionId
|
||||
}
|
||||
: tab
|
||||
|
||||
Reference in New Issue
Block a user