Skip to content

[codex] Make MCP lifecycle and view selection idempotent - #81

Open
farvend wants to merge 3 commits into
fosdickio:mainfrom
farvend:codex/fix-idempotent-lifecycle-logging
Open

farvend wants to merge 3 commits into
fosdickio:mainfrom
farvend:codex/fix-idempotent-lifecycle-logging

Conversation

@farvend

@farvend farvend commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Deduplicate server lifecycle messages and suppress redundant autostart callbacks.
  • Preserve and register the first active BinaryView correctly.
  • Update replacement views for the same file without duplicate logs.

Why

Repeated UI notifications could re-enter startup and view-selection paths. The previous assignment order could also let view pruning clear the first active view.

Impact

Server startup is quieter and idempotent, while the correct BinaryView remains selected.

Validation

  • python -B -m unittest discover -s tests -p "test_*.py" (2 tests)

@farvend
farvend marked this pull request as ready for review August 26, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant