Show a warning if checkpoints are taking too long to load #1342
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
We're hearing about some issues initializing checkpoints that cause the whole task to hang. We still need to get to the bottom of this, but in the meantime this adds a UI element after 5 seconds with a link to settings to disable checkpoints.
Implementation
It works by setting a timer for 5 seconds and checking if there are any messages in the chat.
Screenshots
Screen_Recording_2025-03-03_at_11.08.39_AM.mov
How to Test
I tested by adding a 10 second day to the ShadowCheckpointService initialization.
Important
Adds a warning in
ChatView
to notify users if checkpoints take longer than 5 seconds to load, with an option to disable checkpoints in settings.ChatView
if checkpoints take longer than 5 seconds to load.useEffect
to set a 5-second timer inChatView.tsx
.CheckpointWarningMessage
component inChatView.tsx
.This description was created by
for cd46ab5. It will automatically update as commits are pushed.