diff --git a/main_mcp.go b/main_mcp.go index ed6cdf5..80907a2 100644 --- a/main_mcp.go +++ b/main_mcp.go @@ -846,7 +846,9 @@ func explainTarget(p func(string, ...any), t output.TargetSummary) { if t.StoppedBy == "duration" { budget = "-max-duration" } - p(" %d names were not tested because %s ran out; raise it, or continue with -resume.", t.SkippedCap, budget) + // No resume state is written for a run that ends on a budget (only an + // interrupted run saves one), so -resume is not offered here (#320). + p(" %d names were not tested because %s ran out; raise it and run the scan again.", t.SkippedCap, budget) } if t.Wildcard { p(" The domain answers every name (a wildcard), so subenum dropped %d answers matching the wildcard; a real name that answers the same way is dropped too.", o.WildcardFiltered) diff --git a/main_mcp_test.go b/main_mcp_test.go index 9441376..a1f81e0 100644 --- a/main_mcp_test.go +++ b/main_mcp_test.go @@ -612,6 +612,10 @@ func TestE2EMCPExplainStats(t *testing.T) { t.Errorf("call %d: %q lacks %q (isError %v)", i, text, want, isErr) } } + // A capped run writes no resume state, so the advice must not offer -resume (#320). + if text, _ := toolText(t, replies[i]); !strings.Contains(text, "raise it and run the scan again") || strings.Contains(text, "-resume") { + t.Errorf("call %d: capped-run advice should only say to raise the budget and rerun: %q", i, text) + } } if text, isErr := toolText(t, replies[2]); !isErr || !strings.Contains(text, "not a subenum run-quality report") { t.Errorf("non-summary input: %q (isError %v)", text, isErr)