You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: fix chat timeouts during tool calls, reduce latency and UI jank (#1)
* perf(tools): reduce fetch_url timeout 15s→8s, web_search 10s→6s
* perf(storage): stop writing settings.json on every read
* perf(backend): parallelize pre-flight ops, cache context providers
- Run system prompt build + Brave key fetch in parallel (Promise.all)
- Remove duplicate getSettings() call; reuse settings from earlier read
- Cache TodoContextProvider and NotesContextProvider instances instead
of re-creating on every access via getter
* perf(ui): memoize remarkPlugins, debounce scroll-into-view
- Move [remarkGfm] array to module-level constant to prevent
re-allocation on every render (was defeating React memo)
- Debounce scrollIntoView with 80ms timer to prevent DOM thrashing
during fast delta streaming (was firing every animation frame)
* fix(chat): reset watchdog timer during tool execution
The 30s watchdog never reset while tools were executing, causing
"Model response timed out" errors during web search flows that
take 30-75s across multiple tool rounds.
Now resets on every onDelta and onToolStatus event. Increased
timeout from 30s to 60s to accommodate multi-round tool loops.
0 commit comments