From a2c3d040d3a089525899760059d47f41fa0a6484 Mon Sep 17 00:00:00 2001 From: kami Date: Mon, 27 Jul 2026 21:43:17 +0400 Subject: [PATCH] fix(herdr): close B5's bootstrap-prompt race with an inline wait MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CLIAdapter.Lease's initial prompt used wait=0, skipping the inline wait Bootstrap already used. The spec (ยง5.1) requires inline wait on agent.prompt for bootstrap injection so the prompt isn't sent into a half-rendered pane. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01W1rkJ2hBMybnJctPbcy4tT --- internal/herdr/adapter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/herdr/adapter.go b/internal/herdr/adapter.go index 829c3b2..0e6b4ec 100644 --- a/internal/herdr/adapter.go +++ b/internal/herdr/adapter.go @@ -67,7 +67,7 @@ func (a CLIAdapter) Lease(ctx context.Context, task, worktree string) (Session, if err != nil { return Session{}, err } - if err := a.Client.Prompt(ctx, s.PaneID, fmt.Sprintf("Begin Orchestra task %s. Inspect the repository, understand the task context, and proceed with the requested work.", task), 0); err != nil { + if err := a.Client.Prompt(ctx, s.PaneID, fmt.Sprintf("Begin Orchestra task %s. Inspect the repository, understand the task context, and proceed with the requested work.", task), time.Minute); err != nil { return Session{}, err } return s, nil