Closed Bug 2056271 Opened 1 month ago Closed

search_the_web tool swap forces tool calls into content

Categories

(Core :: Machine Learning: General, task)

task

Tracking

()

VERIFIED FIXED
155 Branch
Tracking Status
firefox153 + verified
firefox154 --- verified
firefox155 --- verified

People

(Reporter: bjohns, Assigned: bjohns)

References

Details

(Whiteboard: [aiasst])

Attachments

(3 files, 3 obsolete files)

In the current system, search_the_web tool is swapped out for run_search immediately. This means what when the tool call returns, the tool is no longer in the tools list - however, the model still recognizes that this tool exists and occasionally tries to re-call it. This causes parsing bugs in the LiteLLM endpoint, forcing the tool call into the content.

see: https://mozilla.slack.com/archives/C0ADUFX0QRW/p1784544790026229

The Bugbug bot thinks this bug should belong to the 'Core::Machine Learning: General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Machine Learning: General
Product: Firefox → Core
Assignee: nobody → bjohns
Status: NEW → ASSIGNED
Blocks: 2056938
Pushed by bjohns@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/355688820d70 https://hg.mozilla.org/integration/autoland/rev/f2d201ed4744 Removed run_search from tools and embedded behavior switch in search_the_web r=tetchart,Gijs
Blocks: 2057031
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Attachment #9615364 - Flags: approval-mozilla-release?
Attachment #9615371 - Flags: approval-mozilla-release?
Attachment #9615378 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: the stack serves to add search_the_web tool call to smart window, which gives the assistant the ability to answer user questions directly, rather than handing off to a search engine
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: ask the smart window assistant a question requiring web search (e.g. "what are the best things to do in fl?"). the assistant should respond directly -- possibly with references / links.

on occasion, the assistant may redirect to search engine, but it should generally respond directly.

  • Risk associated with taking this patch: medium
  • Explanation of risk level: most behavior is unchanged. search_the_web falls back to existing behavior.

medium due to size of stack.

  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9615391 - Flags: approval-mozilla-release?
Flags: qe-verify+
QA Whiteboard: [uplift][qa-ver-needed-c155/b154]
Attachment #9615371 - Attachment is obsolete: true
Attachment #9615371 - Flags: approval-mozilla-release?
Attachment #9615378 - Attachment is obsolete: true
Attachment #9615378 - Flags: approval-mozilla-release?
Attachment #9615364 - Attachment is obsolete: true
Attachment #9615364 - Flags: approval-mozilla-release?

Verified as fixed in our latest Nightly 155.0a1 (2026-07-23)

QA Contact: rdoghi
No longer blocks: 2057031

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: These patches add the search_the_web tool to the assistant, allowing the assistant to directly answer user queries, rather than handing off to a search engine.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: Ask the agent a question requiring web search. The agent should respond directly -- generally also providing links to sources (although this requirement is not part of the patch).

In some cases, the agent will still hand off to the search engine, but it should mostly answer queries directly.

  • Risk associated with taking this patch: low
  • Explanation of risk level: Fallback behavior reverts to baseline search engine.
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9615736 - Flags: approval-mozilla-beta?
Attachment #9615391 - Attachment is obsolete: true
Attachment #9615391 - Flags: approval-mozilla-release?
Attachment #9615736 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Blocks: 2057031

this is part of the 9 patch stack for potential exa v0 153 ride along uplifts https://phabricator.services.mozilla.com/D313875 (some abandoned for now until we get 154 beta verified)

Verified as fixed in our latest Beta 154.0b3

Attachment #9615391 - Attachment is obsolete: false

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: the stack serves to add search_the_web tool call to smart window, which gives the assistant the ability to answer user questions directly, rather than handing off to a search engine
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: ask the smart window assistant a question requiring web search (e.g. "what are the best things to do in fl?"). the assistant should respond directly -- possibly with references / links.

on occasion, the assistant may redirect to search engine, but it should generally respond directly.

  • Risk associated with taking this patch: medium
  • Explanation of risk level: most behavior is unchanged. search_the_web falls back to existing behavior.

medium due to size of stack, qa verified with 154

  • String changes made/needed?: yes, not exposed to localization with locales-preview
  • Is Android affected?: no
Attachment #9615391 - Flags: approval-mozilla-release+

Verified as fixed in our latest Release 153.0.3

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift][qa-ver-needed-c155/b154] → [uplift][qa-ver-done-c155/b154]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: