Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion main_mcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions main_mcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading