Fix checkpoint warning to show configured timeout #9880
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.
Fixes the checkpoint initialization warning message to display the user's configured timeout value instead of the hardcoded 5-second warning threshold.
Changes:
src/core/checkpoints/index.tsto passtask.checkpointTimeout(configured value) instead ofWARNING_THRESHOLD_MS / 1000(hardcoded 5 seconds)checkpoint.test.tsto verify the warning uses the configured timeout valueBefore:
User sets checkpoint timeout to 30 seconds in settings, but warning shows "Waited 5 seconds for checkpoint initialization..."
After:
Warning correctly shows "Waited 30 seconds for checkpoint initialization..." when user has configured 30 seconds
View task on Roo Code Cloud
Important
Update checkpoint warning to use user-configured timeout in
index.tsand update tests incheckpoint.test.ts.getCheckpointServiceinindex.tsto usetask.checkpointTimeoutfor warning messages instead ofWARNING_THRESHOLD_MS.checkpoint.test.tsto test warning message with configured timeout value.This description was created by
for d85a5f2. You can customize this summary. It will automatically update as commits are pushed.