From ce50cb5aa63553b49dc3b2a75a1e25dedea23b64 Mon Sep 17 00:00:00 2001 From: geobelsky Date: Sat, 4 Apr 2026 09:58:19 +0000 Subject: [PATCH] fix: reduce SSE wait_seconds from 30 to 5 in scenario watch The intent events SSE stream used wait_seconds=30, causing up to 30s delay between stream timeouts when waiting for human approval events. Reduce to 5s for faster reconnection and event pickup. --- cmd/axme/scenarios.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/axme/scenarios.go b/cmd/axme/scenarios.go index 99f638c..e268cb4 100644 --- a/cmd/axme/scenarios.go +++ b/cmd/axme/scenarios.go @@ -642,7 +642,7 @@ func watchIntentLive(rt *runtime, cmd *cobra.Command, intentID string, bundle *s } for { - url := fmt.Sprintf("%s/v1/intents/%s/events/stream?since=%d&wait_seconds=30", baseURL, intentID, nextSeq) + url := fmt.Sprintf("%s/v1/intents/%s/events/stream?since=%d&wait_seconds=5", baseURL, intentID, nextSeq) req, err := http.NewRequestWithContext(cmd.Context(), "GET", url, nil) if err != nil { return fmt.Errorf("watch: %w", err)