Closed Bug 2017989 Opened 6 months ago Closed 5 months ago

[Models] [Search Handoff] Assistant is making 15+ search toolcalls in a row with select queries esp w/ duckduckgo

Categories

(Core :: Machine Learning: General, enhancement)

Firefox 149
enhancement

Tracking

()

VERIFIED FIXED
150 Branch
Tracking Status
firefox149 --- disabled
firefox150 --- verified
firefox151 --- verified

People

(Reporter: tburrell, Assigned: again)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai][models])

Attachments

(1 file, 3 obsolete files)

Assistant makes 15+ search toolcalls in a row for this query: https://mozilla.slack.com/archives/C0ADUFX0QRW/p1771523842601919?thread_ts=1771520791.301559&cid=C0ADUFX0QRW

This might be a problem with other search providers as well.

See Also: → 2018027

potentially content from duckduckgo with very long links is confusing the llm? this is currently doing pageExtractor.getReaderModeContent bug 1990614

https://searchfox.org/firefox-main/rev/0fce12de99c5e7d74536d8f93cf9778ce6199a1f/browser/components/aiwindow/models/Tools.sys.mjs#452

Blocks: 2000782
Depends on: 2013393
See Also: → 1990614
Whiteboard: [genai][chat] → [genai][models]

this is easy to reproduce by asking to search for multiple things, e.g., “find me shoes and seattle weather”

Check function description for get_open_tabs:

"Access the user's browser and return a list of most recently browsed tabs. Each tab is represented by a JSON with the page's url, title and description if available. Default to return maximum 15 tabs."

May be related.

Attachment #9551990 - Attachment is obsolete: true
Attachment #9551994 - Attachment is obsolete: true

Guard duplicate run_search tool calls within the same user message turn in fetchWithHistory(). When the model requests run_search after one has already executed for the current turn, the guard returns an error tool result instead of executing the search and navigating the browser. The model continues generating text and can search again on the next user message.

Attachment #9551989 - Attachment is obsolete: true
Attachment #9551997 - Attachment description: WIP: Bug 2017989 - Limit run_search to one execution per user message turn → Bug 2017989 - Limit run_search to one execution per user message turn
Pushed by again@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6db9ddbfe27c https://hg.mozilla.org/integration/autoland/rev/d99c7a8657b3 Limit run_search to one execution per user message turn r=ai-models-reviewers,cdipersio
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

Verified as fixed in our latest Beta 150.0b1 and our latest Nightly build 151.0a1 (2026-03-26), I tried this with Bing, Google as well as duck duck go and I'm getting suggestions each time without any search hand-offs.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: