Repository navigation
Conversation
- Change buildFallbackNick to accept attempt number for unique suffixes - Use numeric suffix (1, 2, 3...) instead of always '_' - Limit fallback attempts to 10 per connection to prevent infinite loops - Fixes issue where Nick_ ghosts would repeatedly connect/disconnect Fixes openclaw#96064
|
Thanks for the context here. I did a careful shell check against current Close: current main already fixes the IRC ghost-nick fallback loop through #96108, with a module-scoped fallback sequence and regression tests. This PR is now a weaker, conflicting branch because its counter remains scoped to one Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the merged current-main IRC fallback implementation from #96108 and close this superseded branch. Do we have a high-confidence way to reproduce the issue? Yes for the original pre-fix path: the PR base and latest release use a fixed underscore fallback with connection-local recovery state, and the merged canonical PR supplied ngircd live output. Current main no longer has that failure path because fallback suffix sequencing is module-scoped. Is this the best way to solve the issue? No for this branch. The merged implementation in #96108 is the better fix because its sequence crosses fresh connection attempts and includes regression coverage plus real IRC proof. Security review: Security review cleared: The PR diff only changes in-memory IRC nick fallback logic and adds no dependency, script, credential, permission, or package-supply-chain surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 3811001d2783; fix evidence: commit 6ce88ca51d05, main fix timestamp 2026-06-28T10:47:39-07:00. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fixes #96064
When multiple IRC accounts are configured, the nick collision recovery logic creates "ghost" nicks with underscore suffixes that connect and immediately disconnect in a loop.
Root Cause
The
buildFallbackNickfunction always returnsnick + "_"with no uniqueness. Combined with a per-connectionfallbackNickAttemptedflag that resets on each reconnect, this causes the same ghost nick to be used repeatedly.Changes
buildFallbackNicknow accepts anattemptparameter — allows generating unique fallback nicks (Nick1,Nick2, etc.) instead of alwaysNick_Track fallback attempt count instead of boolean flag — allows attempting multiple unique fallbacks instead of just one
Limit attempts to 10 per connection — prevents infinite loops if all fallbacks are taken
Before
After
Testing
buildFallbackNick("Test", 0)→"Test_"andbuildFallbackNick("Test", 1)→"Test1"Notes
This is a minimal fix. A more comprehensive solution might involve: