Skip to content

fix(core): name the actual mismatch when the mesh coordinator port is unusable - #146

Merged
Mearman merged 1 commit into
mainfrom
fix/mesh-init-error-message
Sep 16, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/mesh-init-error-message

Conversation

@Mearman

@Mearman Mearman commented Sep 16, 2026

Copy link
Copy Markdown
Member

Part of #53.

Investigated #53's own remaining scope. The "hard flag-day cutover" itself already happened -- there is no v1 code left anywhere in this repo, the package is already several major versions into v2 (currently 2.28.0), and the README's own "Breaking change (v2)" section documents it as a completed, no-migration-path cutover. That part of #53 is done.

The one concrete, still-open item #53's body actually names is the coordinator-port error message: init() degraded to a generic "Running without mesh -- agent-comms will be unavailable" whenever becomeCoordinator failed with EADDRINUSE, with no indication of what actually went wrong. connectToCoordinator has always already failed by the time this path is reached, so whatever holds the port isn't functioning as a reachable coordinator either -- most plausibly a stale process left over from a previous run, or a differently-versioned agent-comms instance nothing here can join. The message now says so explicitly (naming the port, naming the two plausible causes) while still including the underlying EADDRINUSE message for full diagnostic detail.

Test plan

  • RED test confirmed failing against the old message before the fix
  • pnpm typecheck
  • pnpm lint
  • pnpm test (772/772)
  • pnpm build

… unusable

init() degraded to a generic "Running without mesh -- agent-comms will be
unavailable" whenever becomeCoordinator failed with EADDRINUSE, with no
indication of why. connectToCoordinator has always already failed by this
point, so whatever holds the port isn't functioning as a reachable
coordinator either -- most plausibly a stale process left over from a
previous run, or a differently-versioned agent-comms instance that can't
be joined. The error now says so explicitly, and still includes the
underlying EADDRINUSE message for full diagnostic detail.
@Mearman
Mearman marked this pull request as ready for review September 16, 2026 06:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 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
🔒 Security Review Completed 2026-09-16T06:09:45.225555Z d4e6799 Draft marked ready
ℹ️ 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.

@Mearman
Mearman merged commit 97fcae2 into main Sep 16, 2026
6 checks passed
@Mearman
Mearman deleted the fix/mesh-init-error-message branch September 16, 2026 06:10
@Mearman Mearman mentioned this pull request Sep 16, 2026
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