refactor: remove unused runtime and WebUI helpers (#5999)
* refactor: remove unused runtime and WebUI helpers * fix: preserve exported agent helper methods
This commit is contained in:
1 parent
d3d70f2065
commit
6ecb74aea9
17 files changed
+26
-143
No files matched your search
@@ -877,10 +877,6 @@ class WebSocketChannel(BaseChannel):
|
||||
return
|
||||
await self._commands.dispatch(connection, client_id, envelope)
|
||||
|
||||
def _prune_webui_request_operations(self) -> None:
|
||||
"""Compatibility hook for request-cache boundary tests."""
|
||||
self._commands.prune_request_operations()
|
||||
|
||||
# -- Outbound WebSocket events -----------------------------------------
|
||||
|
||||
async def stop(self) -> None:
|
||||
|
||||
@@ -1360,7 +1360,7 @@ def test_webui_request_cache_prunes_expired_completed_but_keeps_pending(
|
||||
)
|
||||
operations["fresh"] = SimpleNamespace(completed_at=now - 1)
|
||||
|
||||
channel._prune_webui_request_operations()
|
||||
channel._commands.prune_request_operations()
|
||||
|
||||
assert "pending" in operations
|
||||
assert "expired" not in operations
|
||||
@@ -1383,7 +1383,7 @@ def test_webui_request_cache_prunes_oldest_completed_at_capacity(
|
||||
completed_at=now - 1 + index / 1_000
|
||||
)
|
||||
|
||||
channel._prune_webui_request_operations()
|
||||
channel._commands.prune_request_operations()
|
||||
|
||||
assert "pending" in operations
|
||||
assert "completed-0" not in operations
|
||||
|
||||
Reference in new issue
Block a user