The detach key — Ctrl-] (0x1d) by default, as in telnet/ssh escape conventions. The detach-key
preference rebinds it to another control key when Ctrl-] clashes with a keybinding inside the
agent's TUI: COTAL_DETACH_KEY, then the saved preference (cotal config set detach-key). Both
accept ctrl-<char> or ^<char> (e.g. ctrl-b, ^_). An unparseable COTAL_DETACH_KEY —
including a set-but-empty or whitespace-only one — throws (named), never silently falling back;
the caller turns that into a loud exit. A saved value was validated when it was written.
The detach key — Ctrl-] (0x1d) by default, as in telnet/ssh escape conventions. The
detach-keypreference rebinds it to another control key when Ctrl-] clashes with a keybinding inside the agent's TUI:COTAL_DETACH_KEY, then the saved preference (cotal config set detach-key). Both acceptctrl-<char>or^<char>(e.g.ctrl-b,^_). An unparseableCOTAL_DETACH_KEY— including a set-but-empty or whitespace-only one — throws (named), never silently falling back; the caller turns that into a loud exit. A saved value was validated when it was written.