fix(chat): match question tool name exactly
Use an exact-match comparison for the question tool name instead of toLowerCase(), matching the convention used elsewhere in this file.
This commit is contained in:
@@ -105,7 +105,7 @@ export const projectTurnActivity = (input: ProjectActivityInput): ProjectActivit
|
|||||||
const messageHasQuestion = message.parts.some((part) => (
|
const messageHasQuestion = message.parts.some((part) => (
|
||||||
part.type === 'tool'
|
part.type === 'tool'
|
||||||
&& typeof part.tool === 'string'
|
&& typeof part.tool === 'string'
|
||||||
&& part.tool.toLowerCase() === 'question'
|
&& part.tool === 'question'
|
||||||
));
|
));
|
||||||
const messageIsCompactionSummary = isCompactionSummaryMessage(message);
|
const messageIsCompactionSummary = isCompactionSummaryMessage(message);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user