Skip to content

fix(ai-chat): reset conversations loading state on failure - #8

Merged
HaveNiceDa merged 1 commit into
HaveNiceDa:mainfrom
AshSgDe29071999:fix/conversations-loading-reset
Aug 3, 2026
Merged

fix(ai-chat): reset conversations loading state on failure#8
HaveNiceDa merged 1 commit into
HaveNiceDa:mainfrom
AshSgDe29071999:fix/conversations-loading-reset

Conversation

@AshSgDe29071999

@AshSgDe29071999 AshSgDe29071999 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Wrap refreshConversations() in try/finally so isLoadingConversations resets when loadConversations() rejects.
  • Log the failure instead of leaving an unhandled rejection.

Closes #7

Wrap refreshConversations in try/finally so a rejected
loadConversations call cannot leave the list stuck loading.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

@AshSgDe29071999 is attempting to deploy a commit to the haveniceda's projects Team on Vercel.

A member of the Team first needs to authorize it.

@HaveNiceDa
HaveNiceDa merged commit 920e332 into HaveNiceDa:main Aug 3, 2026
9 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

会话列表加载失败时 loading 状态无法复位

2 participants