mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
Update run title inference logic to set title only when it is not already defined.
removes bug where the chat session name updates to the latest user message while generating, before switching back to the original name.
This commit is contained in:
parent
48edd98fe0
commit
bc929b6c1b
1 changed files with 1 additions and 1 deletions
|
|
@ -1863,7 +1863,7 @@ function App() {
|
|||
const inferredTitle = inferRunTitleFromMessage(msg.content)
|
||||
if (inferredTitle) {
|
||||
setRuns(prev => prev.map(run => (
|
||||
run.id === event.runId && run.title !== inferredTitle
|
||||
run.id === event.runId && !run.title
|
||||
? { ...run, title: inferredTitle }
|
||||
: run
|
||||
)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue