Skip to main content

bind_session_to_terminal

Function bind_session_to_terminal 

Source
pub fn bind_session_to_terminal(
    session_id: &str,
    session_name: &str,
    project_path: &str,
    status: &str,
) -> bool
Expand description

Build a StatusCacheEntry for a session and write it to the cache.

Convenience function that mirrors the MCP server’s updateStatusLine(). Call this on session start/resume to bind the terminal to a session.