Expand description
Window CRUD, focus, workspace switching, and repair operations.
Functions§
- check_
and_ 🔒fix_ window - Check and fix a window — ensure it has a valid workspace with tabs.
- close_
window - Close a window and remove from client’s window list. Cascades cleanup through workspace → tabs → blocks, killing all shell processes.
- create_
window - Create a new window pointing to a workspace. If workspace_id is empty, auto-creates a new workspace + default tab (matches Go behavior).
- create_
window_ full - Create a new window with all required objects in a single transaction. If workspace_id is empty, creates workspace + tab + window + updates client all in one BEGIN/COMMIT — reducing 8+ lock acquisitions and fsyncs to 1.
- focus_
window - Focus a window (move to front of client’s window list).
- switch_
workspace - Switch a window to a different workspace.