Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

docs(session-host): sessionHostCapture comment names the 10k emulator cap

review8a19f2105df0
diff --git a/src/core/session-host-backend.ts b/src/core/session-host-backend.ts
index 88328993b..2be71e353 100644
--- a/src/core/session-host-backend.ts
+++ b/src/core/session-host-backend.ts
@@ -173,8 +173,8 @@ export async function sessionHostPaneCommand(name: string): Promise<string | nul
/** `capture-pane` equivalent. `full` mirrors `captureSession`'s own `full` parameter: false asks
* for the recent ~200 lines only (AI naming / palette search), true asks for everything the
- * emulator is holding (bounded by `settings.tmuxScrollback`, exactly like tmux's own
- * `history-limit`). Includes full SGR/mode restoration — see `TerminalEmulator.serialize`. */
+ * emulator is holding (bounded by `xtermScrollback(settings.tmuxScrollback)` — at most 10k
+ * lines, the renderer's own cap, NOT tmux's `history-limit`; see shared/scrollback). Includes full SGR/mode restoration — see `TerminalEmulator.serialize`. */
export async function sessionHostCapture(name: string, full: boolean): Promise<string> {
return getClient().capture(name, full)
}