* 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
7 lines
209 B
TypeScript
7 lines
209 B
TypeScript
import { createContext, useContext } from "react";
|
|
|
|
export const ThreadVisibilityContext = createContext(true);
|
|
export function useThreadVisibility(): boolean {
|
|
return useContext(ThreadVisibilityContext);
|
|
}
|