The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(webapp): say what a full host terminal input queue holds, not a 64-frame limit
unsupportedpastelsd11ff5fb0054
diff --git a/hermes_cli/web_host_terminal_sessions.py b/hermes_cli/web_host_terminal_sessions.pyindex 88d9d59d4d2..f9c79e8adda 100644--- a/hermes_cli/web_host_terminal_sessions.py+++ b/hermes_cli/web_host_terminal_sessions.py@@ -325,15 +325,21 @@ def _frame_cost(item) -> int:class _InputQueue(asyncio.Queue):- """The frames a tab sent while a batch is written, full at ``_INPUT_QUEUE_FRAMES`` frames that- together reach ``_INPUT_QUEUE_BYTES``.+ """The frames a tab sent while a batch is written, full once it holds at least+ ``_INPUT_QUEUE_FRAMES`` frames and at least ``_INPUT_QUEUE_BYTES`` charged by ``_frame_cost``.A full queue stops the reader, and with it the WebSocket library's own read of the socket oncethat buffers 32 unread frames: keepalive pongs then go unread, and a bind that pings (anynon-loopback Webapp) closes a live tab with 1011 after the ping timeout, dropping the inputqueued behind it. A frame count alone fills on a few dozen keys typed while a paste waits on a- program that is not reading, and a byte count alone on one large paste; needing both leaves the- reader reading through any typing, and never stops it before the frame count alone would.+ program that is not reading, and a byte count alone on one large paste; needing both gives+ typing far more room (one-byte keys fill it at 4,081 frames) and never stops the reader before+ the frame count alone would. Typing past that stalls the reader just as large frames do.++ So the frame count is not a strict limit: small frames can queue thousands. The payload ceiling+ stays about the frame count alone's: a frame is only taken while the queue holds fewer than+ ``_INPUT_QUEUE_FRAMES`` frames or charges under ``_INPUT_QUEUE_BYTES``, and each frame is at+ most the server's ``ws_max_size``."""def __init__(self):