pub(super) fn lock_shell_for_agent(state: &AppState, shell_id: &str)Expand description
Lock shell_id out from human keyboard input for AGENT_LOCK_WINDOW_MS
from now — called BEFORE every agent write (input/resize), not after
(see the call sites’ own comment for why the ordering matters).
Best-effort: a failure to write the lock meta just means the human’s
input isn’t blocked this time, not that the agent’s write itself failed.