mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-16 23:01:06 +02:00
docs(chat): tighten engine comments to intent
This commit is contained in:
parent
9879306ccc
commit
a44c67da97
1 changed files with 4 additions and 5 deletions
|
|
@ -80,10 +80,9 @@ const tokenUsageStore = chatStreamStore.tokenUsage;
|
||||||
const toolsWithUI = TOOLS_WITH_UI_ALL;
|
const toolsWithUI = TOOLS_WITH_UI_ALL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display-only setters the page provides while it is mounted. After the chat
|
* Display-only setters, valid only while the page is mounted. The stream drives
|
||||||
* page unmounts (in-app navigation) these are stale but harmless — the stream
|
* durable state through {@link chatStreamStore}; these just sync the mounted
|
||||||
* keeps writing to the module {@link chatStreamStore}, and the page re-derives
|
* page's local view and are ignored once it unmounts.
|
||||||
* its thread from the URL when it remounts.
|
|
||||||
*/
|
*/
|
||||||
export interface EngineView {
|
export interface EngineView {
|
||||||
setThreadId: Dispatch<SetStateAction<number | null>>;
|
setThreadId: Dispatch<SetStateAction<number | null>>;
|
||||||
|
|
@ -101,7 +100,7 @@ export interface EngineContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Error handling (relocated from the chat page)
|
// Error handling
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
async function persistAssistantErrorMessage({
|
async function persistAssistantErrorMessage({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue