chore(api): clamp sandbox duration#3200
Conversation
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit 4727aca. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Code Review
If the system clock experiences drift, now can be before sbx.StartTime, resulting in a negative duration. To prevent this, ensure the returned stop time is never before sbx.StartTime by falling back to sbx.StartTime when now is before it.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Prevents accidentally report duration than actual sandbox duration. Prerequisite for #3199