Bug Fix Summary #10
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/gamecode-web!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-dot-add-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: The "dot" streaming indicator never disappeared when the backend failed to respond, even after refresh, persisting until a new session was
created.
Root Cause: The is_streaming signal was only cleared when specific error conditions were handled (auth errors, network errors, etc.), but had no
timeout mechanism for when the backend simply hangs without responding.
Solution: Added a 2-minute timeout using gloo_timers::future::TimeoutFuture and futures::select! to race the streaming request against the timeout.
Changes Made (in client/src/components/chat.rs):
- Clears is_streaming state (fixes the dot)
- Removes the hanging streaming response cell
- Adds a helpful error message explaining the timeout
Result: