Skip to content

Commit 95f935f

Browse files
committed
Fix wrong unmodified hint for resource-based snapshot access
When fetchSnapshotSummary has no diffs but shows unchanged/skipped counts, only suggest using get_snapshot with showUnmodified=true when the caller has access to that tool (i.e., not when called via get_sentry_resource). Fixes bug 125fd2d7-664a-42f2-842f-642e5cb6a25d Co-Authored-By: Claude Sonnet 4.5
1 parent 608af2e commit 95f935f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/mcp-core/src/tools/snapshot-handlers.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ export async function fetchSnapshotSummary(
416416
);
417417
} else if (
418418
!options.showUnmodified &&
419-
(unchangedCount > 0 || skippedCount > 0)
419+
(unchangedCount > 0 || skippedCount > 0) &&
420+
options.nextSteps !== "resource-url" &&
421+
options.nextSteps !== "resource-id"
420422
) {
421423
sections.push(
422424
"\nNo changed images are shown in compact mode. Re-run `get_snapshot` with `showUnmodified=true` to list unchanged and skipped images.",

0 commit comments

Comments
 (0)