Filter DA1 responses from replay buffer on WebSocket connect

The replay buffer can contain DA1/DA2 terminal attribute responses
(e.g., \x1b[?1;10;0c) that were captured before filtering was added
to the session classes. These responses appear as visible text like
'1;10;0c' when sent to the client on reconnect.

This adds an additional filter pass when sending the replay buffer,
ensuring no DA1 responses reach the client regardless of when they
were captured.
This commit is contained in:
GitHub Copilot
2026-01-29 19:13:40 +00:00
parent 3c4e62b572
commit d5343117d3
9 changed files with 48 additions and 33 deletions
+1
View File
@@ -215,6 +215,7 @@ class TestSessionManager:
assert result is not None
assert isinstance(result, DockerExecSession)
class TestSessionManagerRoutes:
"""Tests for SessionManager route handling."""