Repository navigation
fix(irc): prevent ghost nick collisions on rejoin after network delay - #96108
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 28, 2026, 5:06 AM ET / 09:06 UTC. Summary PR surface: Source +3, Tests +35. Total +38 across 2 files. Reproducibility: yes. for source-level reproduction: current main and v2026.6.10 still use a fixed underscore fallback, and fresh connectIrcClient calls recreate fallback state. The contributor also supplied copied ngircd live output for the after-fix path, but I did not rerun ngircd in this read-only review. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land one reviewed IRC client fix that makes fallback nicks unique across fresh connection attempts; this PR is currently the stronger candidate because its sequence crosses that boundary and includes live ngircd proof plus regression tests. Do we have a high-confidence way to reproduce the issue? Yes for source-level reproduction: current main and v2026.6.10 still use a fixed underscore fallback, and fresh connectIrcClient calls recreate fallback state. The contributor also supplied copied ngircd live output for the after-fix path, but I did not rerun ngircd in this read-only review. Is this the best way to solve the issue? Yes. The module-scoped sequence is the narrow maintainable repair for this reported fallback bug because it crosses fresh connectIrcClient calls, while the sibling connection-local counter would not. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7ba9212665a7. Label changesLabel justifications:
Evidence reviewedPR surface: Source +3, Tests +35. Total +38 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
…openclaw#96108) * fix(irc): prevent ghost nick collisions on rejoin after network delay * test(irc): add regression tests for fallback nick uniqueness Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: wendy-chsy <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
…openclaw#96108) * fix(irc): prevent ghost nick collisions on rejoin after network delay * test(irc): add regression tests for fallback nick uniqueness Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: wendy-chsy <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
…openclaw#96108) * fix(irc): prevent ghost nick collisions on rejoin after network delay * test(irc): add regression tests for fallback nick uniqueness Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: wendy-chsy <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 6ce88ca)
Summary
_, causing a ghost nick collision with the still-connected session.bot_,bot_2,bot_3).Linked issue
Closes #96064
Real behavior proof
bot_). The module-level counter producesbot_,bot_2,bot_3, ... across reconnect calls.testbot, the second attemptstestbotand receives ERR_NICKNAMEINUSE (433).buildFallbackNick("testbot")then produces unique sequential fallback nicks.ngircd -n -f /tmp/ngircd.confnode /tmp/irc-proof.mjs— full end-to-end verificationpnpm test extensions/irc/src/client.test.ts— 9 passedpnpm test extensions/irc/— 15/16 files passed (4 pre-existing locale failures in setup.test.ts unrelated to this change)pnpm build— cleanbuildFallbackNick("bot")returnsbot_,bot_2,bot_3, ... on successive calls. All nicks are unique and within the 30-char IRC limit. Each nick successfully connects to a real ngircd server. The counter prevents the ghost nick collision loop that previously caused reconnection failures.Tests and validation
Risk checklist
🤖 Generated with Claude Code