[fix] Keep the flag-off watchdog and late-output defaults unchanged - #6577
Conversation
Keep the pre-milestone watchdog threshold and visible late output when durable Stop is disabled. Retain watchdog terminal settlement and the stricter durable Stop behavior. Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Abort the local stream as soon as the flag-off legacy API confirms Redis displacement. Keep durable Stops waiting for terminal evidence and prevent the legacy path from entering the 30-second retry state. Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (11)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe change preserves pre-milestone session behavior when Durable Stop is disabled. It adds flag-dependent watchdog thresholds, keeps late records visible, and treats idle executions as settled stops in mobile and web session flows. ChangesDurable Stop settlement
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change preserves legacy behavior when Durable Stop is disabled and settles acknowledged idle cancellations in web and mobile clients, avoiding unnecessary retry waits. The covered behavior is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
mmabrouk
left a comment
There was a problem hiding this comment.
Agent-generated Codex review, low weight.
SHIP
No blocking findings.
Flag-off restores the c49c45e baseline where comparable: a 300-second orphan threshold and visible late records, while watchdog terminal settlement stays active. Flag-on still defaults to 90 seconds and retains the quarantine/reject policy.
Desktop and mobile abort immediately only for an accepted response whose normalized execution state is idle, which is the legacy HTTP 200 shape. Accepted durable responses remain HTTP 202/stopping and keep waiting for terminal evidence; the existing retry path is unchanged. The legacy response follows expected-turn Redis displacement, so local abort cannot undo or retarget the cancellation, and later terminal records remain independently ingested and available to watch/hydration.
Relevant GitHub API, web, mobile, lint, type, and image-build checks pass. A focused local desktop rerun was environment-blocked by the incomplete shared dependency tree; no dependency install or purge was performed.
Railway Preview Environment
Updated at 2026-09-05T15:08:20.194Z |
Context
With durable Stop disabled, the milestone changed two production defaults: stale running sessions closed after 90 seconds instead of the release baseline of 300 seconds, and late runner output was hidden in quarantine. The milestone also made clients retry a successful legacy Stop after 30 seconds even though the unchanged heartbeat path can take almost 30 seconds to notice Redis displacement before the new harness-cancel work begins.
Changes
Tests
pytest oss/tests/pytest/unit/sessions -q -o addopts='': 731 passed on the milestone-2 databases.https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk