Skip to content

test(core): wire-mesh-transport.ts accepting-side disconnect and dial dedup coverage - #115

Merged
Mearman merged 1 commit into
mainfrom
fix/mutation-wire-mesh-transport-coverage-p2
Sep 14, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/mutation-wire-mesh-transport-coverage-p2

Conversation

@Mearman

@Mearman Mearman commented Sep 14, 2026

Copy link
Copy Markdown
Member

Summary

Continuation of #101 (which merged the first two batches of agent-comms#64's wire-mesh-transport.ts slice into main). #101's own branch was deleted on merge while this third batch was still in progress, so it lands here as its own PR based on current main.

Adds two more direct WireMeshTransport regression tests:

  • the accepting side of a connectToPeer session (not just the dialling side) fires its own onPeerDisconnected when the peer it accepted from disconnects
  • a peer that disconnects is cleared out of the dial-dedup set (dataDials), so connectToPeer for the same peer id genuinely re-dials afterwards rather than being silently skipped

Test plan

  • pnpm typecheck && pnpm lint && pnpm test green locally
  • CI green

…anup

Adds:

- the accepting side of a connectToPeer session (the side that ran
  handleAcceptedConnection, not the dialling side) fires its own
  onPeerDisconnected when the peer it accepted from disconnects --
  distinct from, and previously only proven via, the dialling side's
  own symmetric watchForDisconnect wiring
- a peer that disconnects is cleared out of the dial-dedup set
  (dataDials), so connectToPeer for the same peer id genuinely
  re-dials afterwards rather than being silently treated as
  already-connected and skipped
@Mearman
Mearman marked this pull request as ready for review September 14, 2026 08:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 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-14T08:37:24.028452Z 40de77e 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 e408ca1 into main Sep 14, 2026
6 checks passed
@Mearman
Mearman deleted the fix/mutation-wire-mesh-transport-coverage-p2 branch September 14, 2026 10:26
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.21.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant