orca icon indicating copy to clipboard operation
orca copied to clipboard

fix(remote-runtime): don't paint a red banner on a recoverable liveness reset

Open daniel-rudaev opened this issue 4 months ago • 1 comments

failConnection() surfaced onError to every stream unconditionally, painting a red xterm banner even for streams that own an onTransportClose resubscribe handler and recover on their own. handleClose() already guards this behind !canHandleClose (#7718); this applies the same guard to failConnection so a transient liveness reset resubscribes silently instead of leaving a stale banner the user must dismiss by hand.

daniel-rudaev avatar Jul 13 '26 10:07 daniel-rudaev

Review Change Stack

šŸ“ Walkthrough

Walkthrough

Updated RemoteRuntimeTerminalMultiplexer.failConnection so streams with an onTransportClose handler no longer receive onError callbacks during transport failures. Streams without that handler continue to receive connection errors.

🚄 Pre-merge checks | āœ… 4 | āŒ 1

āŒ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check āš ļø Warning The description covers the summary but omits required template sections for screenshots, testing, AI review, security audit, and notes. Add the missing sections, including a screenshots or no visual change note, testing checklist, AI review with cross-platform checks, security audit, and notes.
āœ… Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage āœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check āœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check āœ… Passed Check skipped because no linked issues were found for this pull request.
Title check āœ… Passed The title is concise and accurately summarizes the main fix to recoverable remote-runtime connection failures.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

ā¤ļø Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot] avatar Jul 13 '26 10:07 coderabbitai[bot]

Associating this PR with related issue(s): #7718

AmethystLiang avatar Jul 22 '26 17:07 AmethystLiang

Associating this PR with related issue(s): #7718

AmethystLiang avatar Jul 22 '26 17:07 AmethystLiang

Thanks for calling out the red banner that survives a successful reconnect. Main now routes recoverable connection errors, including liveness resets, through the close/recovery path. That path calls onError only when the stream has no recovery handler, which covers this fix. I’m closing this as already addressed: current routing. Appreciate you catching it!

OrcaWin avatar Oct 27 '26 10:10 OrcaWin