Skip to content

Commit 5e501ee

Browse files
authored
fix: reduce SSE wait_seconds from 30 to 5 in scenario watch (#85)
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.
1 parent c59c462 commit 5e501ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/axme/scenarios.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ func watchIntentLive(rt *runtime, cmd *cobra.Command, intentID string, bundle *s
642642
}
643643

644644
for {
645-
url := fmt.Sprintf("%s/v1/intents/%s/events/stream?since=%d&wait_seconds=30", baseURL, intentID, nextSeq)
645+
url := fmt.Sprintf("%s/v1/intents/%s/events/stream?since=%d&wait_seconds=5", baseURL, intentID, nextSeq)
646646
req, err := http.NewRequestWithContext(cmd.Context(), "GET", url, nil)
647647
if err != nil {
648648
return fmt.Errorf("watch: %w", err)

0 commit comments

Comments
 (0)