fix(ui): fix flash between home and new chat (#4143)

Co-authored-by: Theodore Li <theo@sim.ai>
This commit is contained in:
Theodore Li
2026-04-13 21:18:37 -04:00
committed by GitHub
co-authored by Theodore Li
parent 6587afb97e
commit d6dc9f73cd
@@ -1601,9 +1601,11 @@ export function useChat(
})
}
if (!workflowIdRef.current) {
router.replace(`/workspace/${workspaceId}/task/${payloadChatId}`, {
scroll: false,
})
window.history.replaceState(
null,
'',
`/workspace/${workspaceId}/task/${payloadChatId}`
)
}
}
}