Lock the right pane while focused, add project focus, quiet lead

This commit is contained in:
Ian Gulliver
2026-10-15 09:59:13 -07:00
parent bdd1ae48f0
commit fdd005b591
32 changed files with 576 additions and 227 deletions
+22 -1
View File
@@ -108,7 +108,7 @@ paths:
schema: { $ref: "#/components/schemas/Focus" }
put:
operationId: setFocus
description: Records the human switching the right pane's task or tab. The lead agent is told.
description: Records the human switching the right pane's project, task or tab.
requestBody:
required: true
content:
@@ -123,6 +123,20 @@ paths:
"400": { $ref: "#/components/responses/Error" }
"404": { $ref: "#/components/responses/Error" }
/api/me/pane-focus:
put:
operationId: setPaneFocus
description: Records whether the human is working in the right pane. While they are, the lead agent can't move it.
requestBody:
required: true
content:
application/json:
schema: { $ref: "#/components/schemas/PaneFocus" }
responses:
"204":
description: Recorded.
"400": { $ref: "#/components/responses/Error" }
/api/push/key:
get:
operationId: getPushKey
@@ -1099,6 +1113,7 @@ components:
type: object
required: [tabs, tab]
properties:
project_id: { type: string, description: The project the right pane shows; the task's project when task_id is set, absent for none. }
task_id: { type: string, description: The task the right pane shows; absent for none. }
tabs:
type: array
@@ -1106,6 +1121,12 @@ components:
items: { $ref: "#/components/schemas/TaskTab" }
tab: { $ref: "#/components/schemas/TaskTab" }
PaneFocus:
type: object
required: [focused]
properties:
focused: { type: boolean, description: True while the browser window has focus and the focused element is inside the right pane. }
TaskTab:
type: string
enum: [transcript, changes, files, inbox, todo]