Creating AITab page sometimes causes page to be pre-read unnecessarily
Categories
(Core :: Machine Learning: Frontend, 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
Updated•1 month ago
|
Here is what I found:
Root Cause
This is a prompt problem.
browser-contextmodule (browser-context/v1/generic.md) references an active tab and callsget_page_contenttool 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.
pagesmodule (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_contentorget_open_tabsfirst
- Why Gemini but not Qwen?
Both are originally meant to callget_page_contenttool unnecessarily (which is the root issue) but unlike Gemini followingpages/v1/generic.md, Qwen follows extra rules mentioned inpages/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
Comment 2•1 month ago
|
||
The severity field is not set for this bug.
:jlevinsohn, could you have a look please?
For more information, please visit BugBot documentation.
Updated•26 days ago
|
Description
•