Skip to content

0.4.0

Choose a tag to compare

@AmriaLin AmriaLin released this 03 Oct 07:05
· 6 commits to main since this release
dbe79e7

Interrupt recovery, bounded output and owned session state.

  • interrupt_command_by_id now cancels the read loop, so an interrupted command no longer leaves the session wedged; the 30-second auto-recovery path does the same
  • a second reader can no longer race the previous worker for the same channel; the cancelled worker settles on INTERRUPTED with exit code 130
  • OutputBuffer replaces OutputLimiter: head 8 KB + tail 32 KB stay in memory, anything past 64 KB spills to a file whose path is returned instead of borrowing exit code 124
  • truncation actually reaches the caller: truncated / spilled_path now travel from the worker through get_command_status() into ExecutionResult and CommandResult
  • SessionRegistry collects the twelve pieces of per-session state, removes cross-module private access and adds a per-session execution lock
  • output limits honour MCP_SSH_MAX_OUTPUT_BYTES, and the head/tail windows are clamped to it

Full Changelog: 0.3.0...0.4.0