fix(herdr): close B5's bootstrap-prompt race with an inline wait
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W1rkJ2hBMybnJctPbcy4tT
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user