Report focus state
POST /api/v1/focus
POST
/api/v1/focus
Reports which project and worktrees a client is actively viewing. Used by the system tray to suppress desktop notifications for focused projects.
Request Body required
Section titled “Request Body required ”Focus state report
One of:
object
Focus state report
object
agentType
AgentType scopes the focus to a specific agent type.
string
clientId
ClientID is a unique identifier for this client instance (UUID per page load or TUI session).
string
focused
Focused is true when the client has visibility focus on Warden.
boolean
projectId
ProjectID is the project being viewed (empty when unfocused or on a non-project page).
string
worktreeIds
WorktreeIDs lists all worktrees currently open in the client’s view.
Array<string>
Responses
Section titled “ Responses ”No Content
Bad Request
object
code
string
error
string