Drop per-task port blocks; previews use any free loopback port
This commit is contained in:
@@ -98,9 +98,8 @@ func (m *Manager) takeBounce(ctx context.Context, l *live, final string) (bool,
|
||||
}
|
||||
|
||||
func (m *Manager) taskGuidance(ctx context.Context, task api.Task) (string, error) {
|
||||
g := guidance + fmt.Sprintf("\n- This task's ports are %d to %d; $PORT holds the first. Run dev servers and anything else that listens on these, so parallel tasks don't collide, and listen on 127.0.0.1. To show the human a running server, call byre's expose_port tool."+
|
||||
"\n- This worktree starts with only what git tracks. Before other work in a new worktree, do any setup the project's AGENTS.md describes.",
|
||||
task.PortBase, task.PortBase+store.PortBlock-1)
|
||||
g := guidance + "\n- Run dev servers and anything else that listens on 127.0.0.1, on any free port. Other tasks' servers run on this Mac too, so when a port is taken, use another. To show the human a running server, call byre's expose_port tool." +
|
||||
"\n- This worktree starts with only what git tracks. Before other work in a new worktree, do any setup the project's AGENTS.md describes."
|
||||
if task.Title == "" {
|
||||
g += "\n- This task has no title yet. First thing, before any other work, call set_titles with a very short, distinct, to-the-point task title (two to four words) and a merge commit title that describes the work, and call it again whenever the work moves on."
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user