Files
ShellBook/.agents/mind/gotchas.md
T

1.1 KiB

Gotchas

  • [2026-11-16] CRLF notebooks: step scripts must be LF-normalized in the parser, or bash sees cmd . Covered by a core test.

  • [2026-11-16] Host key flow: server emits run.hostKeyUnknown then run.finished (exit -1) for the aborted attempt; the web reducer must keep the prompt open (status: hostKey).

  • [2026-11-16] tmux under systemd: default KillMode=control-group kills the tmux server on restart; unit uses KillMode=process so Claude sessions survive (spec §6).

  • [2026-11-16] Env names: single data dir variable is SHELLBOOK_DATA_DIR (server config, auth, CLI, installer). SSH key: SHELLBOOK_SSH_KEY.

  • [2026-11-16] Exit codes vs errors: a non-zero script exit is a normal result (check ❌) and goes only in run.finished; run.error is for transport/setup failures.

  • [2026-11-16] Chat CLI permissions (#8): allowedTools only auto-approves; tools + restricted mode (2.1.248+) enforce the file/tool boundary. Synthetic fixture tests never invoke the real CLI; deployment must verify installed-version/login compatibility.

Archive