MCPcopy Index your code
hub / github.com/docker/docker-agent / ShouldReportRecoveryFailure

Method ShouldReportRecoveryFailure

pkg/tools/startable.go:256–260  ·  view source on GitHub ↗

ShouldReportRecoveryFailure returns true exactly once per recovery-failure streak — when a toolset that was previously started and working fails to restart (e.g. because the server revoked the OAuth token in the background). Unlike ShouldReportFailure (which fires for both initial and recovery fail

()

Source from the content-addressed store, hash-verified

254// (those are silent pending prompts and the dialog appears naturally on
255// the first interactive turn).
256func (s *StartableToolSet) ShouldReportRecoveryFailure() bool {
257 s.mu.Lock()
258 defer s.mu.Unlock()
259 return s.recoveryStreak.shouldReport()
260}
261
262// Unwrap returns the underlying ToolSet.
263func (s *StartableToolSet) Unwrap() ToolSet {

Calls 3

shouldReportMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45