fix: BusTui.connect() reconnect loop leak + ISSUES.md cleanup #19#20
Conversation
|
Caution Review failedThe pull request is closed. Recent review infoRun configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Files selected for processing (1)
WalkthroughWalkthroughAdds a single ChangesBusTui reconnect loop fix and documentation sync
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Tip: You can configure your own custom pre-merge checks in the settings. Finishing TouchesGenerate unit tests (beta)
Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ISSUES.md`:
- Around line 94-99: Rewrite the paragraph in ISSUES.md (lines 94-99) to clarify
the current retry flow. Specifically explain that BusTui.connect() throws on
failure and does not perform retries, the initial "bus appears later" retry
logic is now handled by useServiceBus, and scheduleReconnect() with re-discovery
handles reconnection attempts after the bus is already running. Remove any
references to the old scheduleReconnect() approach that no longer applies, and
clearly separate the concerns: useServiceBus handles initial discovery retries,
while scheduleReconnect() handles reconnection once a bus instance exists.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
Review info
Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 5fdc6380-70ea-476e-a3cd-fa1b2dea7221
Files selected for processing (2)
ISSUES.mdsrc/bus-tui.ts
|
@coderabbitai — addressed in 031758c. The paragraph now clearly separates:
|
|
Tip For best results, initiate chat on the files or code changes.
That's a clean delineation and should prevent future confusion about which layer handles what. |
Closes #19
Changes
bus.close()inconnect()catch block to preventonclose → scheduleReconnectloop on dead instanceSummary by cubic
Fixes a reconnect loop leak in
BusTui.connect()by closing the bus whenopen()fails, preventing anonclose → scheduleReconnectloop on a dead instance. UpdatesISSUES.mdto reflect the current retry model (connect()throws on failure; initial discovery/retry lives inuseServiceBus;scheduleReconnect()handles post-connect drops), marks Issues #1/#3 as done, and removes the outdated example.Written for commit 031758c. Summary will update on new commits.
Summary by CodeRabbit
Bug Fixes
Documentation