Files
orca/src/main/runtime/scrollback-limits.ts
T
2026-07-02 18:17:47 -07:00

9 lines
556 B
TypeScript

// Why: mobile subscribers hydrate the runtime headless emulator from the
// desktop renderer's xterm buffer. The renderer holds a 50k-row scrollback;
// shipping all of it across IPC + replaying through HeadlessEmulator is
// expensive and unnecessary for a phone screen. Cap at 1000 rows and 512 KiB so
// the seed covers a meaningful amount of agent context while keeping the
// round-trip bounded. See docs/mobile-prefer-renderer-scrollback.md.
export const MOBILE_SUBSCRIBE_SCROLLBACK_ROWS = 1000
export const MOBILE_SNAPSHOT_BYTE_BUDGET = 512 * 1024