App: replace a silent socket instead of hanging; blink the terminal cursor on a timer; keep one markdown cache entry per streamed reply
A socket that outlived a sleep or network change looked open, so every queued request waited its own 30 s timeout behind the last until the page was reopened. The client now replaces a socket whose request times out unheard (or after two timeouts in a row), and probes it with a ping after a quiet spell or on returning to the foreground. The terminal's blinking cursor ran a Ticker (a frame every vsync); a 530 ms timer now flips it. Streamed deltas no longer flood the markdown cache and evict finished answers. Adds tool/perf/idle_session_bench.mjs (idle frames, long-session heap, snapshot census) and notes/perf-hangs-idle.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -78,7 +78,6 @@ class ChatShellTerminalView extends StatefulWidget {
|
||||
|
||||
class _ChatShellTerminalViewState extends State<ChatShellTerminalView>
|
||||
with
|
||||
SingleTickerProviderStateMixin,
|
||||
ChatShellTerminalFindHost<ChatShellTerminalView>,
|
||||
ChatShellTerminalFeatures<ChatShellTerminalView> {
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user