Skip to content

Allow restarting managed background servers from the TUI - #53173

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8e4319fab84f13bf6e7335deb93364fccaff14a7
Oct 11, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8e4319fab84f13bf6e7335deb93364fccaff14a7

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Allow restarting managed background servers from the TUI

Why

Startup configuration warnings can reflect settings from when the background server started, even after those settings have been fixed. A restart lets users refresh the server without leaving the TUI.

What changed

  • Add a confirmed restart action to /daemon, warning that active or queued work in other chats may be interrupted. Reconnect automatically and let an in-progress restart finish if the TUI exits.
  • Verify that Codex manages a local server before enabling restart, including servers discovered with auto-start disabled and those started by codex agents.
  • Show a restart hint on the first startup configuration warning for managed servers, preserving the original diagnostic for copying and dismissal.
  • Repaint the full surface of centered dialogs to restore background colors over cached blank cells.

Testing

Add CLI integration coverage for agents startup and restarting a discovered daemon with auto-start disabled. Extend TUI tests for confirmation, cancellation, unmanaged servers, warning hints and dismissal, and dialog background rendering.

## Why

Startup configuration warnings can reflect settings from when the background server started, even after those settings have been fixed. A restart lets users refresh the server without leaving the TUI.

## What changed

- Add a confirmed restart action to `/daemon`, warning that active or queued work in other chats may be interrupted. Reconnect automatically and let an in-progress restart finish if the TUI exits.
- Verify that Codex manages a local server before enabling restart, including servers discovered with auto-start disabled and those started by `codex agents`.
- Show a restart hint on the first startup configuration warning for managed servers, preserving the original diagnostic for copying and dismissal.
- Repaint the full surface of centered dialogs to restore background colors over cached blank cells.

## Testing

Add CLI integration coverage for agents startup and restarting a discovered daemon with auto-start disabled. Extend TUI tests for confirmation, cancellation, unmanaged servers, warning hints and dismissal, and dialog background rendering.

GitOrigin-RevId: 8e4319fab84f13bf6e7335deb93364fccaff14a7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/8e4319fab84f13bf6e7335deb93364fccaff14a7 branch from cc5332e to 27065a9 Compare October 11, 2026 17:43
@copyberry
copyberry Bot merged commit 27065a9 into main Oct 11, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/8e4319fab84f13bf6e7335deb93364fccaff14a7 branch October 11, 2026 17:43
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-11T17:43:21.055604Z cc5332e PR opened
ℹ️ 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.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 11, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 27065a91 Deployed Oct 11, 2026 by victormcsrad-bit via Identify potential duplicates (all issues) #54496
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.