fix: font stack, sparklines, and DA1 response issues

- Restore terminal.options.fontFamily assignment for proper font stack handling
- Add dynamic service registration to DockerStatsCollector for docker watch mode
- Remove force_redraw on reconnect that caused DA1 responses to display as text
This commit is contained in:
GitHub Copilot
2026-01-29 18:38:49 +00:00
parent 6ad9bc9ad0
commit 3a6f797e84
6 changed files with 75 additions and 28 deletions
@@ -81,19 +81,12 @@ async def test_websocket_creates_session_on_resize(tmp_path):
await client.close()
assert created["args"] == ("test", 90, 25)
# Reconnect should trigger redraw without creating a new session
called = {"redraw": 0, "stdin": 0}
# Reconnect to an existing session should reuse it and send replay buffer
class DummySession:
def is_running(self):
return True
async def force_redraw(self):
called["redraw"] += 1
async def send_bytes(self, data: bytes):
called["stdin"] += 1
server.session_manager.routes["test"] = "sid"
server.session_manager.sessions["sid"] = DummySession()
@@ -111,9 +104,6 @@ async def test_websocket_creates_session_on_resize(tmp_path):
finally:
await client.close()
assert called["redraw"] == 1
assert called["stdin"] == 1
@pytest.mark.asyncio
async def test_websocket_ping_pong(tmp_path):