inspector/clients
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall 38d2fd279d fix(web): apply settled settings to the live client, and reconcile on modal failure
Review round 7 on #2091, both findings.

Every settings continuation pushed through the `inspectorClient` it
closed over, and `onToggleConnection` rebuilds the client on each
(re)connect — so a write outliving a reconnect passed the server-id
guard and then wrote to a destroyed instance, while the replacement,
built from the stale list entry, kept the value the write replaced. The
live client is now mirrored in a ref alongside the active server id, and
all three continuations apply through it.

The modal save's failure path also stopped at taking itself out of
flight. A write that landed while it was pending had been told it was
not settled and applied nothing, so with the save failing there was
nothing left to apply the value that is actually on disk. It now
resolves and re-applies the baseline, the same as the toggle's failure
path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UL9retfvAXRgvi6EWk4SY4
Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-23 13:16:51 -04:00
..
cli chore(lint): fail lint on warnings (--max-warnings 0) 2026-08-23 10:47:29 -04:00
launcher chore(lint): fail lint on warnings (--max-warnings 0) 2026-08-23 10:47:29 -04:00
tui chore(lint): fail lint on warnings (--max-warnings 0) 2026-08-23 10:47:29 -04:00
web fix(web): apply settled settings to the live client, and reconcile on modal failure 2026-08-23 13:16:51 -04:00