caproom 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/caproom +5 -2
  2. package/package.json +2 -2
package/bin/caproom CHANGED
@@ -847,6 +847,7 @@ run_watchdog() {
847
847
  # the cap on the pty tree (same kill logic as normal).
848
848
  if [[ "$USE_PTY" -eq 1 ]]; then
849
849
  echo "caproom: pty mode — allocating pty via forkpty for '${1##*/}' (limit ${LIMIT_MB}m, verbatim forwarding)" >&2
850
+ stty -tostop 2>/dev/null || true
850
851
  printf '\033[?1049l\033[?1000l\033[?1002l\033[?1003l\033[?1006l\033[?2004l\033[?25h' >/dev/tty 2>/dev/null || true
851
852
  local saved_stty=""
852
853
  if [[ -t 0 ]]; then
@@ -915,6 +916,7 @@ run_watchdog() {
915
916
  fi
916
917
  # Clean stale tty modes before handing off, same snapshot hygiene as
917
918
  # the normal watchdog path but without taking foreground away.
919
+ stty -tostop 2>/dev/null || true
918
920
  printf '\033[?1049l\033[?1000l\033[?1002l\033[?1003l\033[?1006l\033[?2004l\033[?25h' >/dev/tty 2>/dev/null || true
919
921
  # Detached watchdog monitors the TUI's pid tree without owning stdio.
920
922
  # Resolve our own path (works via shim and direct invocation).
@@ -942,8 +944,9 @@ run_watchdog() {
942
944
  # Terminal hygiene: a TUI child (opencode, claude, ...) puts the tty in
943
945
  # raw + mouse-tracking mode. If WE kill it, it never restores, and the
944
946
  # user's shell then prints mouse reports like [[<35;25;15M as garbage.
945
- # Clear any stale mode from a previous kill BEFORE snapshot, then snapshot
946
- # the clean state so restore goes to sane, not back to garbage.
947
+ # Clear stale state before snapshot disable tostop to avoid SIGTTOU suspend
948
+ # when caproom backgrounds the TUI (ghostty reports [[<... as suspended tty output).
949
+ stty -tostop 2>/dev/null || true
947
950
  printf '\033[?1049l\033[?1000l\033[?1002l\033[?1003l\033[?1006l\033[?2004l\033[?25h' >/dev/tty 2>/dev/null || true
948
951
  local saved_stty=""
949
952
  if [[ -t 0 ]]; then
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "caproom",
3
- "version": "0.7.4",
4
- "description": "Memory-cap any command (AI coding agents, builds, background jobs) on macOS, Linux, and Windows real enforcement via Docker cgroups, Windows Job Objects, or a polling watchdog, plus park/wake to reclaim idle process memory without killing.",
3
+ "version": "0.7.5",
4
+ "description": "Memory-cap any command (AI coding agents, builds, background jobs) on macOS, Linux, and Windows \u2014 real enforcement via Docker cgroups, Windows Job Objects, or a polling watchdog, plus park/wake to reclaim idle process memory without killing.",
5
5
  "bin": {
6
6
  "caproom": "bin/caproom.js",
7
7
  "caproom-mcp": "bin/caproom-mcp.js"