Drop per-task port blocks; previews use any free loopback port

This commit is contained in:
Ian Gulliver
2026-10-21 20:49:00 -07:00
parent d88fd66c68
commit f0213e2aed
18 changed files with 441 additions and 425 deletions
+2 -3
View File
@@ -1519,7 +1519,7 @@ components:
Task:
type: object
required: [id, project_id, title, merge_title, branch, worktree_path, base_ref, port_base, color, status, created_by, created_at, state, merging, discarding, merging_into_parent, merge_after_review, summary_seq, background, merge_facts]
required: [id, project_id, title, merge_title, branch, worktree_path, base_ref, color, status, created_by, created_at, state, merging, discarding, merging_into_parent, merge_after_review, summary_seq, background, merge_facts]
properties:
id: { type: string }
project_id: { type: string }
@@ -1528,7 +1528,6 @@ components:
branch: { type: string }
worktree_path: { type: string }
base_ref: { type: string }
port_base: { type: integer, description: "The first of the task's block of ports (port_base to port_base+9), passed to its agent and terminal as PORT." }
color: { type: integer, description: "Index into the UI's task palette, assigned at creation: a color no active task holds, the one given out longest ago." }
status:
type: string
@@ -1864,7 +1863,7 @@ components:
properties:
task_id: { type: string }
name: { type: string }
port: { type: integer, description: "A port in the task's block, served at http://<byre's tailnet host>:<port>/." }
port: { type: integer, description: "The loopback port the task's server listens on, served at http://<byre's tailnet host>:<port>/. One active task holds a port at a time: exposing it from another task moves it there." }
created_at: { type: string, format: date-time }
Tailnet: