Skip to content

Commit 9181bf9

Browse files
authored
fix: use plain UUID for thread-naming runs (CopilotKit#3664)
The thread naming creates an additional run, using a thread name that was something like "thread-naming:${originalthreadiduuid}:${newrandomuuid}" which shockingly is not a valid uuid. This just drops the first 2 parts and keeps the random uuid so langgraph can stop being mad.
2 parents b75d0b5 + 2142ece commit 9181bf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/runtime/src/v2/runtime/handlers/intelligence/thread-names.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function runTitleGenerationAttempt(params: {
130130

131131
agent.setMessages(messages);
132132
agent.setState({});
133-
agent.threadId = `thread-name:${threadId}:${randomUUID()}`;
133+
agent.threadId = randomUUID();
134134
const { newMessages } = await agent.runAgent({
135135
messages,
136136
state: {},

0 commit comments

Comments
 (0)