Skip to content

[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

Merged
integry merged 1 commit into
3758-epic-runtime-abstraction-sc0from
3944/gpt-6.2-sol-idle-stop-never-stops-wit-20261201-0001-zcx
Dec 1, 2026
Merged

integry merged 1 commit into
3758-epic-runtime-abstraction-sc0from
3944/gpt-6.2-sol-idle-stop-never-stops-wit-20261201-0001-zcx

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3944

Branch: 3944/gpt-6.2-sol-idle-stop-never-stops-wit-20261201-0001-zcx
Commits: ✅ Changes committed (9a6ddf9)


AI Processing Completed

Execution Details:

Summary:
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.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (9 files)
    • 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)
  • Low risk (7 files)
    • 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

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

Connect offline cache overflow

The administrator Inbox shows that two GitHub deliveries were dropped and how to recover them.

Full-size original

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
@propr-dev propr-dev Bot changed the title 🔨 [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) ✅ [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) Dec 1, 2026

integry commented Dec 1, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ✅ [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) 🔨 [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) Dec 1, 2026
@propr-dev

propr-dev Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR replaces the unsupported WebSocket wake exchange with an HTTP wake hint, adds missing-target recovery, and tracks automatic replay through wake_status. It is merge-ready within the supplied review scope.

✅ 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 blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Validate the deployed wake cycle

The supplied tests simulate Connect’s HTTP responses and wake_status frames. A follow-up integration check against the deployed relay and Fly would confirm scheduled waking, delivery-triggered waking, and automatic replay together. The implementation summary already identifies this live check as unverified; it is useful deployment validation rather than a demonstrated code blocker.

S2: 🟢 Extend target-repair failure coverage

Consider 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 routingIdleFrames.ts appear conservative by inspection, but focused tests would help preserve their diagnostics and retry behavior. This is optional additional coverage.

Score

The 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

  • Model: GPT-6 Astra
  • Time: 44s
  • Tokens: 70,831 (70,146 in / 685 out)
  • Cost: $0.63

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1 S2

🤖 Review by ProPR

@integry
integry merged commit fe13774 into 3758-epic-runtime-abstraction-sc0 Dec 1, 2026
49 checks passed
@propr-dev propr-dev Bot changed the title 🔨 [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) [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) Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant