Skip to content

Add --no-daemon to bypass the shared background server - #46088

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/acc6a7cb339df6433bb8273c796194cdceda37c1
Sep 17, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Add --no-daemon to bypass the shared background server

What changed

  • Run with --no-daemon without starting or probing the shared server, even when it is already running. Preserve the flag through resume and fork, and honor it for session archive commands.
  • Reject combinations with --remote, codex agents, and codex queue, which require a server connection. Point users to codex --no-daemon when the agents overview cannot start its shared server.
  • Centralize daemon eligibility checks and exclude launches using --profile or CODEX_EXEC_SERVER_URL from implicit daemon reuse.

Testing

Add coverage for flag propagation, incompatible command combinations, and daemon eligibility. Add a PTY test verifying that --no-daemon starts the TUI without creating daemon state or connecting to an existing control socket.

## What changed

- Run with `--no-daemon` without starting or probing the shared server, even when it is already running. Preserve the flag through `resume` and `fork`, and honor it for session archive commands.
- Reject combinations with `--remote`, `codex agents`, and `codex queue`, which require a server connection. Point users to `codex --no-daemon` when the agents overview cannot start its shared server.
- Centralize daemon eligibility checks and exclude launches using `--profile` or `CODEX_EXEC_SERVER_URL` from implicit daemon reuse.

## Testing

Add coverage for flag propagation, incompatible command combinations, and daemon eligibility. Add a PTY test verifying that `--no-daemon` starts the TUI without creating daemon state or connecting to an existing control socket.

GitOrigin-RevId: acc6a7cb339df6433bb8273c796194cdceda37c1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/acc6a7cb339df6433bb8273c796194cdceda37c1 branch from 9705b57 to 787823c Compare September 17, 2026 02:46
@copyberry
copyberry Bot merged commit 787823c into main Sep 17, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/acc6a7cb339df6433bb8273c796194cdceda37c1 branch September 17, 2026 02:47
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 17, 2026
@qianjunye
qianjunye deployed to issue-triage September 17, 2026 03:01 — with GitHub Actions Active
@qianjunye
qianjunye deployed to issue-triage September 17, 2026 03:01 — with GitHub Actions Active
@qianjunye
qianjunye deployed to issue-triage September 17, 2026 03:01 — with GitHub Actions Active
@qianjunye
qianjunye deployed to issue-triage September 17, 2026 03:02 — with GitHub Actions Active
@parm2006
parm2006 deployed to issue-triage September 17, 2026 03:12 — with GitHub Actions Active
@parm2006
parm2006 deployed to issue-triage September 17, 2026 03:12 — with GitHub Actions Active
@parm2006
parm2006 deployed to issue-triage September 17, 2026 03:12 — with GitHub Actions Active
@parm2006
parm2006 deployed to issue-triage September 17, 2026 03:13 — with GitHub Actions Active
@musasavi
musasavi deployed to issue-triage September 17, 2026 03:20 — with GitHub Actions Active
@musasavi
musasavi deployed to issue-triage September 17, 2026 03:20 — with GitHub Actions Active
@musasavi
musasavi deployed to issue-triage September 17, 2026 03:20 — with GitHub Actions Active
@musasavi
musasavi deployed to issue-triage September 17, 2026 03:21 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 787823cf Deployed Sep 17, 2026 by chensuhonglujun-prog via Generate label suggestions #46142
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.

8 participants