-
Notifications
You must be signed in to change notification settings - Fork 0
Display "thinking..." state while fetching network time in Christmas app #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display "thinking..." state while fetching network time in Christmas app #9
Conversation
Co-authored-by: atarukun <6511495+atarukun@users.noreply.github.com>
Co-authored-by: atarukun <6511495+atarukun@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a retry mechanism with exponential backoff for network date fetching and improves UX by showing a "thinking..." message instead of falling back to local time. The key changes ensure that failed API requests are retried more frequently (every 5 seconds) until successful, after which the fetch interval returns to once per hour.
- Adds a
_fetch_successflag to track API fetch status and separate retry/success intervals - Removes local time fallback, displaying "thinking..." when date is unavailable
- Updates retry logic to use shorter intervals after failures
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: atarukun <6511495+atarukun@users.noreply.github.com>
atarukun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Successfully implemented the "thinking" state for the Christmas countdown app with all review feedback addressed.
Latest Fix
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.