Open Bug 2083216 Opened 1 month ago Updated 26 days ago

Creating AITab page sometimes causes page to be pre-read unnecessarily

Categories

(Core :: Machine Learning: Frontend, defect)

defect

Tracking

()

People

(Reporter: rrando, Assigned: hlin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

In smart window open
https://www.cbsnews.com/news/trump-katie-zacharia-white-house-press-secretary/?utm_source=firefox-newtab-en-us

Type 'create a page from this'

What should happen. 'Creating a page..' UI should show with tool call to generate_page
What actually happens 'Reading page...' UI (load page content tool call) followed by 'generate_page' tool call with read content.

Note that I can more easily reproduce this with Gemini as the default chat model, but not Qwen

Whiteboard: [aiaug]
Assignee: nobody → hlin

Here is what I found:

Root Cause

This is a prompt problem.

  • browser-context module (browser-context/v1/generic.md) references an active tab and calls get_page_content tool due to this instruction:

If the user references their tabs or asks questions that can be answered using a tab, retrieve the tab's content to inform your answer.

  • pages module (pages/v1/generic.md, the copy Gemini gets) doesn't override that for a direct request asking to create a page but only covers one specific case

Do not call get_page_content or get_open_tabs first

  • Why Gemini but not Qwen?
    Both are originally meant to call get_page_content tool unnecessarily (which is the root issue) but unlike Gemini following pages/v1/generic.md, Qwen follows extra rules mentioned in pages/v1/qwen3-235b-a22b-instruct-2507-maas.md, which let it skip the page read step:

Asking permission — Exception — pages: when the user has not asked for a page, do not create one unasked; end your reply with the page offer and its follow-up instead. When they ask for one, or accept your offer, call it immediately.

Fix Plan

  • Make "Do not call get_page-content" rule to cover every page creation request.
  • Fix evals accordingly

The severity field is not set for this bug.
:jlevinsohn, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jlevinsohn)
Severity: -- → S3
Flags: needinfo?(jlevinsohn)
You need to log in before you can comment on or make changes to this bug.