fix: enable session title generation for non-firstParty providers
This commit is contained in:
@@ -2676,7 +2676,7 @@ export function REPL({
|
|||||||
// useDeferredHookMessages) and attachment messages (appended by
|
// useDeferredHookMessages) and attachment messages (appended by
|
||||||
// processTextPrompt) — both pushed length past 1 on turn one, so the
|
// processTextPrompt) — both pushed length past 1 on turn one, so the
|
||||||
// title silently fell through to the "Claude Code" default.
|
// title silently fell through to the "Claude Code" default.
|
||||||
if (getAPIProvider() === 'firstParty' && !titleDisabled && !sessionTitle && !agentTitle && !haikuTitleAttemptedRef.current) {
|
if (!titleDisabled && !sessionTitle && !agentTitle && !haikuTitleAttemptedRef.current) {
|
||||||
const firstUserMessage = newMessages.find(m => m.type === 'user' && !m.isMeta);
|
const firstUserMessage = newMessages.find(m => m.type === 'user' && !m.isMeta);
|
||||||
const text = firstUserMessage?.type === 'user' ? getContentText(firstUserMessage.message.content) : null;
|
const text = firstUserMessage?.type === 'user' ? getContentText(firstUserMessage.message.content) : null;
|
||||||
// Skip synthetic breadcrumbs — slash-command output, prompt-skill
|
// Skip synthetic breadcrumbs — slash-command output, prompt-skill
|
||||||
|
|||||||
Reference in New Issue
Block a user