Repository navigation
[3944 by GPT-6.2 Sol] Idle stop never stops with ProPR Connect: wake hint uses WS frames Connect doesn't implement (use POST /v1/wake-hint, wake_status) - #3946
Conversation
Fixed #3944. ProPR now requires a successful `POST /v1/wake-hint` response before stopping. If Connect reports a missing wake target, ProPR re-registers the saved Fly wake URL when available and stays running. HTTP failures and timeouts appear in idle shutdown diagnostics. On reconnect, ProPR uses Connect’s `wake_status` to clear the pending replay marker. Administrators receive an Inbox warning if the offline cache dropped deliveries. The build, typecheck, and 172 targeted tests passed. The live Fly stop-and-wake check remains unverified. ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR replaces the unsupported WebSocket wake exchange with an HTTP wake hint, adds missing-target recovery, and tracks automatic replay through ✅ Conservative shutdown gating — Failed HTTP hints abort the drain; successful target re-registration also keeps the instance running until a later attempt. ✅ Connection-aware replay confirmation — Confirmation resets on disconnect, ignores stale sockets and malformed counts, and supports status arriving before recovery reads the hint file. ✅ Focused regression coverage — Changed tests cover HTTP success, refusal, timeout, reconnect handling, and administrator overflow notifications. Current-head checks report 18 passed and none failed. The change’s scope is proportionate to the objective. This assessment uses static review of the supplied code; no commands or tests were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Validate the deployed wake cycleThe supplied tests simulate Connect’s HTTP responses and S2: 🟢 Extend target-repair failure coverageConsider adding cases for a missing target without a saved URL, failed or timed-out re-registration, and a successful hint after the retry interval. These branches in ScoreThe implementation addresses the stated objective with focused changes and meaningful tests, and no merge-blocking defect was established. Passing current-head checks support readiness; live deployment behavior remains unverified. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3944
Branch:
3944/gpt-6.2-sol-idle-stop-never-stops-wit-20261201-0001-zcxCommits: ✅ Changes committed (9a6ddf9)
AI Processing Completed
Execution Details:
Summary:
Fixed #3944. ProPR now requires a successful
POST /v1/wake-hintresponse before stopping. If Connect reports a missing wake target, ProPR re-registers the saved Fly wake URL when available and stays running. HTTP failures and timeouts appear in idle shutdown diagnostics.On reconnect, ProPR uses Connect’s
wake_statusto clear the pending replay marker. Administrators receive an Inbox warning if the offline cache dropped deliveries.The build, typecheck, and 172 targeted tests passed. The live Fly stop-and-wake check remains unverified.
Review digest
Risk-tiered paths
packages/core/src/intake/RoutingWebSocketIntakeService.ts(+23/−23)packages/core/src/intake/routingIdleFrames.ts(+128/−124)packages/core/src/intake/routingWebSocketProtocol.ts(+5/−3)src/daemon/idleDrainSteps.ts(+9/−11)src/daemon/idleReplayObligation.ts(+12/−15)src/daemon/idleShutdown.ts(+12/−15)src/daemon/idleSignalSources.ts(+5/−6)src/flyLaunch/connectSetup.ts(+1/−1)src/flyLaunch/launchConfig.ts(+1/−0)CHANGELOG.md(+7/−9)docs/docs/operations/idle-shutdown.md(+9/−9)docs/docs/tutorials/setup-fly.md(+1/−1)packages/core/test/idleShutdownCoordination.test.ts(+0/−37)test/flyLaunchWizard.test.ts(+1/−0)test/idleShutdownDrain.test.ts(+118/−38)test/idleShutdownRecovery.test.ts(+95/−68)Diff size: 16 files changed, +427/−360 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3944.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Connect wake target recovery
Idle shutdown reports a missing relay wake target and confirms that ProPR re-registered the saved URL.
Full-size original
Connect offline cache overflow
The administrator Inbox shows that two GitHub deliveries were dropped and how to recover them.
Full-size original