fix(remote-runtime): don't paint a red banner on a recoverable liveness reset
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.
š 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.
Comment @coderabbitai help to get the list of available commands.
Associating this PR with related issue(s): #7718
Associating this PR with related issue(s): #7718
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!