Skip to content

fix(server): reconnect live goal clients after HTTP shutdown - #468

Merged
lg2m merged 4 commits into
fix/task-interruptionfrom
fix/task-reconnect
Oct 25, 2026
Merged

lg2m merged 4 commits into
fix/task-interruptionfrom
fix/task-reconnect

Conversation

@lg2m

@lg2m lg2m commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Stopping an HTTP server could leave its live SSE responses open, keeping clients attached to a retired endpoint. Shutdown now ends those streams so the same TUI client can reconnect, retain its goal and apply steering before its next file write. The stream-EOF regression failed before the fix and passes afterward.

Completes #3’s interruption/recovery coverage on top of #467: unrelated prompts leave paused goals unchanged, explicit resume is idempotent, and a real second CLI process resumes the same default-Auto goal from its saved checkpoint without resetting its deadline or usage. Native CI explicitly runs these cases on macOS and Windows. Existing process-kill, deadline and stop/pause/clear cases remain in place; the plan is updated.

Validation: the stream-EOF regression failed before the fix; all 36 server tests and the focused live-client/CLI/approval scenarios pass. Local fmt, lint, all-target/all-feature Clippy, and the affected nextest selection pass: 2,586/2,586 tests (14 skipped). Final-head CI passes on Linux, macOS and Windows, including real-binary smoke and the native recovery/reconnect/CLI scenarios. Codex reviewed exact head 7aba96c2 with no findings and a thumbs-up. No known regressions.

@lg2m lg2m added the ci:full label Oct 24, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T20:59:27.837061Z 7aba96c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: c6ab92b4f7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 7aba96c258

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m
lg2m added this pull request to stack #469 October 25, 2026 00:10
@lg2m
lg2m merged commit d4f339f into main Oct 25, 2026
8 checks passed
@lg2m
lg2m deleted the fix/task-reconnect branch October 25, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant