Skip to content
Python

Approval card names the service that fetches the page

Rohit C Prasadc35b557a1e01
diff --git a/surfaces/gui/src/cardPayloads.ts b/surfaces/gui/src/cardPayloads.ts
index b49154ae..39420ef6 100644
--- a/surfaces/gui/src/cardPayloads.ts
+++ b/surfaces/gui/src/cardPayloads.ts
@@ -29,6 +29,7 @@ export function approvalItemFromPayload(d: any): ApprovalItem {
category: d.category,
standingTarget: d.standing_target || undefined,
searchProvider: d.search_provider || undefined,
+ fetchProvider: d.fetch_provider || undefined,
siteWall: d.site_wall || undefined,
networkRequest: d.network_request
? {
diff --git a/surfaces/gui/src/components/ApprovalCard.tsx b/surfaces/gui/src/components/ApprovalCard.tsx
index b9d53c1b..03485227 100644
--- a/surfaces/gui/src/components/ApprovalCard.tsx
+++ b/surfaces/gui/src/components/ApprovalCard.tsx
@@ -626,6 +626,13 @@ export function ApprovalCard({
: t("approval.search_note")}
</div>
)}
+ {/* web_fetch through the search service (Settings ▸ Customization): the card names
+ the service that reads the page, since it sees the address. */}
+ {item.name === "web_fetch" && item.fetchProvider && (
+ <div className="approval-with" data-testid="approval-fetch-provider">
+ {t("approval.fetch_note_current", { provider: item.fetchProvider })}
+ </div>
+ )}
{/* MCP arguments (OPE-136 finding 5): everything the call carries, expandable —
for a stranger's tool the arguments are the only evidence there is. */}
{item.name.startsWith("mcp__") && item.args && Object.keys(item.args).length > 0 && (
diff --git a/surfaces/gui/src/gallery/states.contract.json b/surfaces/gui/src/gallery/states.contract.json
index c7824868..053dc91a 100644
--- a/surfaces/gui/src/gallery/states.contract.json
+++ b/surfaces/gui/src/gallery/states.contract.json
@@ -8935,6 +8935,15 @@
"reason": "Check the invoice object's PDF field",
"category": "network"
},
+ "web-fetch-via-provider": {
+ "name": "web_fetch",
+ "arguments": {
+ "url": "https://docs.stripe.com/api/invoices/object"
+ },
+ "reason": "Check the invoice object's PDF field",
+ "category": "network",
+ "fetch_provider": "exa"
+ },
"site-off-the-allowed-sites": {
"name": "web_fetch",
"arguments": {
@@ -9259,6 +9268,30 @@
"provenance": ""
}
},
+ "web-fetch-via-provider": {
+ "id": "gallery-item",
+ "session_id": "gallery-session",
+ "kind": "approval",
+ "title": "Run `web_fetch`?",
+ "body": "Check the invoice object's PDF field",
+ "state": "pending",
+ "resolution": null,
+ "inbox": "default",
+ "created_at": "2026-09-17T09:30:00Z",
+ "resolved_at": null,
+ "visibility": "inbox",
+ "session_title": "Mention #3 · Invoice PDF download",
+ "session_agent": "swe-lead",
+ "session_exists": true,
+ "data": {
+ "tool": "web_fetch",
+ "arguments": {
+ "url": "https://docs.stripe.com/api/invoices/object"
+ },
+ "escalation": null,
+ "provenance": ""
+ }
+ },
"site-off-the-allowed-sites": {
"id": "gallery-item",
"session_id": "gallery-session",
diff --git a/surfaces/gui/src/gallery/states/approval.ts b/surfaces/gui/src/gallery/states/approval.ts
index 15d8e4e4..e558794e 100644
--- a/surfaces/gui/src/gallery/states/approval.ts
+++ b/surfaces/gui/src/gallery/states/approval.ts
@@ -78,6 +78,18 @@ export const approvalStates: CardState[] = [
category: "network",
},
},
+ {
+ id: "web-fetch-via-provider",
+ title: "Web fetch through the search service",
+ note: "Settings ▸ Customization sends fetches through the search service (Exa, Firecrawl or Tavily). The card names it, since that service sees the page address.",
+ payload: {
+ name: "web_fetch",
+ arguments: { url: "https://docs.stripe.com/api/invoices/object" },
+ reason: "Check the invoice object's PDF field",
+ category: "network",
+ fetch_provider: "exa",
+ },
+ },
{
id: "site-off-the-allowed-sites",
title: "A site that is not on the allowed sites",
diff --git a/surfaces/gui/src/types.ts b/surfaces/gui/src/types.ts
index 4c5ecf7d..76f22a05 100644
--- a/surfaces/gui/src/types.ts
+++ b/surfaces/gui/src/types.ts
@@ -178,6 +178,10 @@ export type Item =
// web_search only (§1.9): the LIVE configured provider name, resolved server-side
// when the card was raised — the grant description names the actual destination.
searchProvider?: string;
+ // web_fetch only: the search service the page is read through, when Settings ▸
+ // Customization sends fetches through it (it sees the page address). Absent = this
+ // machine fetches the page.
+ fetchProvider?: string;
// OPE-219: the host the sandbox's allowed-sites wall stopped. The card says so and
// offers "Always allow <host>", which adds it to Settings ▸ Sandbox ▸ allowed sites.
siteWall?: string;