Files
vscode/src
Connor PeetandCopilot 47c84b8b1a Agent Host: stop the reconnecting banner nagging on a flapping transport (#334348)
* Agent Host: stop the reconnecting banner nagging on a flapping transport

A tunnel relay that drops and restores the transport every few seconds made the
banner appear on a session that worked fine throughout. Two causes.

The outage start time lived in a cached derived. While the host is connected
nothing reads the reconnecting state, so that derived lost its observers while
its cache survived them; the next outage on the same session inherited the
previous outage's start time and showed the banner immediately. It is now an
explicit value maintained by an autorun, which runs whether or not anything is
rendering the reconnecting state.

The delay before the banner appears was also shorter than a routine self-healed
reconnect. Such a reconnect preserves session state and the user would not
otherwise notice it, so the threshold now outlasts one.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Keep the outage-start derived alive instead of hand-maintaining it

recomputeInitiallyAndOnChange keeps the cached derived observed, so it
recomputes when the host reconnects rather than retaining a start time
nothing was left to invalidate. Restores the session keying and drops the
autorun that replaced it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-03 21:19:19 +00:00
..
…
…