You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extract resetSessionScopedUiState() helper as App.tsx per-session state grows #1394
The disconnect listener in App.tsx now resets four pieces of session-scoped UI state inline — the three per-call result panels (toolCallState, getPromptState, readResourceState) and the optimistic currentLogLevel:
At four setters this is below the abstraction threshold and reads fine inline — this is intentionally not actionable today. But if App.tsx accrues more per-session UI state, the reset list will grow and the right move is to extract a colocated resetSessionScopedUiState() callback (defined next to the setters it resets) and call it from the listener.
Trigger / acceptance
When a 5th+ piece of session-scoped UI state is added to App.tsx that must reset on disconnect, extract a resetSessionScopedUiState() callback colocated with the setters and have the disconnect listener call it.
The existing App.test.tsx disconnect test continues to assert each reset piece (extend it as new state is added).
Activity
refactor(app): extract resetSessionScopedUiState() helper (#1394) (#1398
cliffhall commentedon Jun 1, 2026
Fixed by #1398 (merged to v2/main).
feat(web): tool progress toasts + persist all per-screen state across…