Skip to content

The agent that grows with you

Merge upstream main into fix/webapp-host-terminal-close

Adolanium71d4aac7cc6a
diff --cc hermes_cli/web_host_terminal_sessions.py
index ab487f6602b,714b7af68bb..986110fc864
--- a/hermes_cli/web_host_terminal_sessions.py
+++ b/hermes_cli/web_host_terminal_sessions.py
@@@ -31,10 -32,8 +32,12 @@@ RETENTION_SECONDS = 15 * 6
_MAX_SHELLS = 16
# Inbound frames buffered while one batch is written (backpressure bound).
_INPUT_BATCH_FRAMES = 64
+# How often a reader held up by that bound checks that the tab is still there (``_queue_frame``).
+# Once the connection is gone a check fails within about three: the first can still reach the
+# kernel before the peer's reset comes back.
+_LIVENESS_PROBE_SECONDS = 1.0
+ # How long a resize that undoes the previous one waits for the program to answer that one (``_resize``).
+ _RESIZE_ANSWER_SECONDS = 1.0
TOKEN_RE = re.compile(r"^[A-Za-z0-9_-]{43}$")