Repository navigation
fix: silence successful daemon diagnostics and simplify switch warnings - #205
Merged
Merged
Conversation
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryMakes successful daemon coordination silent and shortens switch warnings.
No actionable findings were identified. Reviews (1) · Last reviewed commit: "fix: silence successful daemon diagnosti..." · Reviewed by Greptile |
@loongphy/codex-auth-darwin-arm64
@loongphy/codex-auth-darwin-x64
@loongphy/codex-auth-linux-arm64
@loongphy/codex-auth-linux-x64
@loongphy/codex-auth-win32-arm64
@loongphy/codex-auth-win32-x64
@loongphy/codex-auth
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v0.4.0enabled automatic daemon coordination on everyswitch, which caused redundant stderr lines (Account files switched successfully; ...) even when the switch completed cleanly. SinceSwitched to <account>on stdout already confirms the switch andcodex app-server daemon restartstops the old daemon, starts a fresh one, and waits until it is ready, successful coordination needs no extra stderr chatter..reloadedand.restartedinprintCodexDaemonDiagnostic/writeCodexDaemonDiagnosticToalongside.not_running."Account files switched successfully; "prefix and the multi-lineCODEX_HOME=.../version+restartdump (along with the now-unusedwriteDaemonCommandToandwriteShellArgumentTohelpers and unusedhome/executableparameters)..deferred:Codex daemon reload deferred while a turn is running. Run `codex app-server daemon restart` to apply now..running:Codex daemon is still using the previous credentials; run `codex app-server daemon restart` to apply..unknown:Could not confirm Codex daemon status..reload_failed:Codex daemon auth reload failed..restart_failed:Codex daemon restart failed..timed_out:Codex daemon restart timed out after 120 seconds..unsupported:Automatic Codex daemon coordination is unsupported on this platform.--json("daemon": "...") and--livestatus reporting unchanged.docs/commands/switch.md,tests/cli_behavior_test.zig, andtests/cli_integration_test.zig.Test plan
zig buildclean with zero warnings.zig build test test-helpersfull suite green (including unit tests intests/cli_behavior_test.zigand integration tests intests/cli_integration_test.zig).zig build -Doptimize=ReleaseSafe) against an isolatedHOME/CODEX_HOMEfixture covering.reloaded,.restarted,.deferred, and.restart_failed.