perf(webui): reduce repeated work and bound history rendering (#5703)
* perf(webui): reduce repeated work and bound history rendering * fix(webui): keep continuation reasoning with its answer * refactor(webui): reuse answer buffers and prepared copy text * perf(webui): restore conditional replay buffer initialization * fix(webui): remove code block pagination
This commit is contained in:
1 parent
1c451b5b5f
commit
1469d4811c
32 files changed
+1156
-361
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { createContext, useContext } from "react";
|
||||
|
||||
export const ThreadVisibilityContext = createContext(true);
|
||||
export function useThreadVisibility(): boolean {
|
||||
return useContext(ThreadVisibilityContext);
|
||||
}
|
||||
Reference in new issue
Block a user