INNER CODE UNIT · Python
start
browser-use/bux · agent/box_agent.py:337
def start(
self,
rows: int = 40,
cols: int = 120,
launch: str = 'claude',
dsp_enabled: bool = True,
window_id: str = 'bux-w1',
) -> None:
"""Attach the WS to a tmux window (creating the window on first attach).
Why tmux: the WS comes and goes (page nav, mobile backgrounding,
flaky network). Without tmux, every reconnect forks a fresh pty
and the user loses scrollback + in-flight commands. With tmux,
the pty + shell live in the tmux server independently of the
WS; reattach reads the existing screen state, no reset.
`window_id` is the tmux session name. The cloud picks it (default
`bux-w1`); we sanitize defensively. First attach to a window