harden: bound the poll history and the timeout of actions run_watch #602
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#602
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
actionsRunWatch(internal/mcp/tools_actions_runs.go:98) appends one status line per poll tostatusLinesand returns them all at the end. The caller setstimeout_secondsandinterval_seconds, and neither has an upper limit. A long timeout with a short interval grows the list, and the tool result, with no bound. The loop also waits withtime.Sleep, so a cancelled request keeps polling until the next check.Fix
Acceptance
timeout_secondsstays as it is: 300 s default, set by the caller.run_watchis an intentional mirror of the CLIactions runs watch.