Skip to content

Commit f12c92b

Browse files
kevinelliottclaude
andcommitted
fix: increase health check timeout to 5 seconds
The default 2-second timeout was too short for Claude CLI which takes longer to start up. Increased default to 5 seconds. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fbe1d9a commit f12c92b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
agentpipe run -a claude:Alice -a gemini:Bob -p "Hello!"
163163
164164
# Use enhanced TUI
165-
agentpipe run --enhanced-tui -c examples/brainstorm.yaml
165+
agentpipe run --tui -c examples/brainstorm.yaml
166166
\`\`\`
167167
EOF
168168
@@ -266,6 +266,6 @@ jobs:
266266
cd homebrew-tap
267267
git config user.name "GitHub Actions"
268268
git config user.email "actions@github.com"
269-
git add Formula/agentpipe.rb
269+
git add Formulae/agentpipe.rb
270270
git commit -m "Update agentpipe to ${{ steps.get_version.outputs.VERSION }}" || echo "No changes to commit"
271-
git push || echo "No changes to push"
271+
git push || echo "No changes to push"

cmd/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func init() {
5555
runCmd.Flags().StringVarP(&initialPrompt, "prompt", "p", "", "Initial prompt to start the conversation")
5656
runCmd.Flags().BoolVarP(&useTUI, "tui", "t", false, "Use TUI interface")
5757
runCmd.Flags().Bool("skip-health-check", false, "Skip agent health checks (not recommended)")
58-
runCmd.Flags().IntVar(&healthCheckTimeout, "health-check-timeout", 2, "Health check timeout in seconds")
58+
runCmd.Flags().IntVar(&healthCheckTimeout, "health-check-timeout", 5, "Health check timeout in seconds")
5959
runCmd.Flags().StringVar(&chatLogDir, "log-dir", "", "Directory to save chat logs (default: ~/.agentpipe/chats)")
6060
runCmd.Flags().BoolVar(&disableLogging, "no-log", false, "Disable chat logging")
6161
runCmd.Flags().BoolVar(&showMetrics, "metrics", false, "Show response metrics (duration, tokens, cost)")
@@ -183,7 +183,7 @@ func startConversation(cmd *cobra.Command, cfg *config.Config) error {
183183

184184
timeout := time.Duration(healthCheckTimeout) * time.Second
185185
if timeout == 0 {
186-
timeout = 2 * time.Second
186+
timeout = 5 * time.Second
187187
}
188188

189189
healthCtx, cancel := context.WithTimeout(context.Background(), timeout)

0 commit comments

Comments
 (0)