From 67a12c264c3451f34c19f699750194ee7cd39747 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:02:41 -0700 Subject: [PATCH] fix(native-chat): a chat is named from its first message at once, so a failed name generation no longer leaves 'Codex Chat' (#30392) * fix(native-chat): name a chat from its first message at once; the generated name replaces it A native chat's one stored name was written only by a best-effort, one-shot generation, so any failure left every surface on the 'Codex Chat' placeholder. The first prompt now names the chat when its first turn starts, and the generated name replaces it only while the field still holds that seed. * fix(native-chat): the chat names setting says a chat shows its first message until it is named --- .../agent-browser-focus-isolation.md | 42 +++++++------- .../structured-chat-naming.test.ts | 30 ++++++---- .../native-chat/structured-chat-naming.ts | 57 ++++++++++++------- .../runtime/structured-chat-naming-runtime.ts | 4 ++ .../components/settings/chat-naming-search.ts | 2 +- src/renderer/src/i18n/locales/en.json | 2 +- src/renderer/src/i18n/locales/es.json | 2 +- src/renderer/src/i18n/locales/fr.json | 2 +- src/renderer/src/i18n/locales/ja.json | 2 +- src/renderer/src/i18n/locales/ko.json | 2 +- src/renderer/src/i18n/locales/zh.json | 2 +- src/shared/conversation-name-generation.ts | 27 ++++++--- 12 files changed, 107 insertions(+), 67 deletions(-) diff --git a/docs/reference/agent-browser-focus-isolation.md b/docs/reference/agent-browser-focus-isolation.md index 07299d98e42..c969c258efb 100644 --- a/docs/reference/agent-browser-focus-isolation.md +++ b/docs/reference/agent-browser-focus-isolation.md @@ -17,18 +17,18 @@ A `` guest is an inner WebContents in the window's frame tree. Chromium that tree's focus, not by which debugger the command arrived on. A hidden-window probe (host `