Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Placeholder guard: describe the refusal as the code decides it

Claudecb727779e9af
diff --git a/src/chrome/src/agent/agent.js b/src/chrome/src/agent/agent.js
index 64ce752d5..210908877 100644
--- a/src/chrome/src/agent/agent.js
+++ b/src/chrome/src/agent/agent.js
@@ -52420,10 +52420,10 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d
if (value) this._rememberCredentialValues(tabId, [value]);
}
- // A submission whose changed field still holds the page's own placeholder
- // text, which no message or card answer from the user gave, is the page's
- // example typed in as a value ("[email protected]" in an email box). It is
- // refused before any card, whether or not the user asked to confirm
+ // A submission whose edited field still holds the page's own placeholder
+ // text, a value the user did not supply for the current task, is the
+ // page's example typed in as a value ("[email protected]" in an email box).
+ // It is refused before any card, whether or not the user asked to confirm
// submissions (a scheduled run included), and the model is told to ask
// the user for the value. Grouped searches keep their approval.
_placeholderSubmitBlock(tabId, toolName, submitInfo) {
diff --git a/src/firefox/src/agent/agent.js b/src/firefox/src/agent/agent.js
index f020802e9..9f2984380 100644
--- a/src/firefox/src/agent/agent.js
+++ b/src/firefox/src/agent/agent.js
@@ -45690,10 +45690,10 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d
if (value) this._rememberCredentialValues(tabId, [value]);
}
- // A submission whose changed field still holds the page's own placeholder
- // text, which no message or card answer from the user gave, is the page's
- // example typed in as a value ("[email protected]" in an email box). It is
- // refused before any card, whether or not the user asked to confirm
+ // A submission whose edited field still holds the page's own placeholder
+ // text, a value the user did not supply for the current task, is the
+ // page's example typed in as a value ("[email protected]" in an email box).
+ // It is refused before any card, whether or not the user asked to confirm
// submissions (a scheduled run included), and the model is told to ask
// the user for the value. Grouped searches keep their approval.
_placeholderSubmitBlock(tabId, toolName, submitInfo) {