perf: speed up initial chat, channels, skills, and cron loading#901
perf: speed up initial chat, channels, skills, and cron loading#901
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 39ee1d8f20
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| await Promise.allSettled([ | ||
| loadSessions(), | ||
| loadHistory(hasExistingMessages), | ||
| ]); |
There was a problem hiding this comment.
Load sessions before starting history fetch
Running loadHistory() in parallel with loadSessions() introduces a startup race: if history for the old currentSessionKey returns first, it can populate messages for that old session, and then loadSessions may switch currentSessionKey without clearing those messages (see src/stores/chat.ts in loadSessions). That leaves the newly selected session showing the wrong transcript until another history load completes, and if that follow-up load fails the stale messages can persist because history failures keep existing messages. Please restore ordered loading (sessions first, then history) or clear messages when currentSessionKey changes.
Useful? React with 👍 / 👎.
…docs update (ValueCell-ai#863 ValueCell-ai#900 ValueCell-ai#901 ValueCell-ai#905 ValueCell-ai#910) Remove provider setup step, speed up initial loading, remove brave-web-search, update READMEs for LaTeX, add agent context files, strip first run sections.
No description provided.