Log screen update failures

This commit is contained in:
GitHub Copilot
2026-01-29 19:25:12 +00:00
parent 635a6e018e
commit df06898739
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -247,8 +247,12 @@ class DockerExecSession(Session):
self._stream.feed(text)
if self._screen.dirty:
self._change_counter += 1
except Exception:
pass
except Exception as exc:
log.warning(
"Docker exec screen update failed (%s): %s",
type(exc).__name__,
exc,
)
async def _drain_pending_output(self) -> None:
if not self._pending_output:
+6 -2
View File
@@ -189,9 +189,13 @@ class TerminalSession(Session):
# Increment change counter when screen is modified
if self._screen.dirty:
self._change_counter += 1
except Exception:
except Exception as exc:
# Don't let pyte errors crash the session
pass
log.warning(
"Terminal screen update failed (%s): %s",
type(exc).__name__,
exc,
)
async def get_replay_buffer(self) -> bytes:
"""Get the contents of the replay buffer."""