inspector/clients
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall 5d8094357d fix(tui): surface a disconnect failure independently of connection status
Review catch (Copilot, PR #2039): folding the rejected disconnect into
`connectError` meant nobody ever saw it. InfoTab renders that value only
when `serverState.status === "error"`, and a failed disconnect leaves the
status "connected" — so the message existed in state and never on screen.
Worse, it fed `connectError ?? inspectorLastError`, where a stale value
would go on masking a later, real connection error.

Give it its own `disconnectError` state and a header banner that renders
regardless of status, cleared on the next connect or disconnect attempt
and on a server switch, so it can neither linger nor be attributed to
the wrong server. The tests now assert the rendered banner rather than
noting that nothing is visible.

Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-16 21:16:34 -04:00
..
cli chore(lint): enable no-floating-promises in all five ESLint scopes 2026-08-16 20:57:32 -04:00
launcher chore(lint): enable no-floating-promises in all five ESLint scopes 2026-08-16 20:57:32 -04:00
tui fix(tui): surface a disconnect failure independently of connection status 2026-08-16 21:16:34 -04:00
web chore(lint): enable no-floating-promises in all five ESLint scopes 2026-08-16 20:57:32 -04:00