complete onboarding by running the originally triggered prompt, e.g., summarize page
Categories
(Core :: Machine Learning, enhancement)
Tracking
()
People
(Reporter: Mardak, Assigned: Mardak)
References
(Blocks 1 open bug)
Details
(Whiteboard: [genai])
Attachments
(1 file, 1 obsolete file)
various entrypoints like bug 1969292 and bug 1970682 want to run summarize of the original page after selecting a provider. we might need to support any prompt if we end up always showing the text selection to match the behavior of bug 1970686
currently handleAskChat assumes it's called when a provider is configured, so maybe it should somehow save the prompt and context although that could get tricky as the sidebar can stay open without the user selecting a provider right away and perhaps closes the original tab
Updated•2 months ago
|
Assignee | ||
Comment 1•2 months ago
|
||
maybe we short circuit in handleAskChat when no provider is selected and stash the promptObj and context on the sidebar contentWindow, so when onboarding finishes, we re-call handleAskChat
or similarly, contentWindow.onOnboardingComplete = () => this.handleAskChat(promptObj, context)
and from chat.js probably from AWFinish window.onOnboardingComplete?.()
https://searchfox.org/mozilla-central/rev/d52edf7ea4236446e118a2edc815023c5479663f/browser/components/genai/chat.js#413
Assignee | ||
Comment 2•2 months ago
|
||
Refactor page summarization from chat.js and expose onboarding promise to wait if no provider. Allow actor to register for provider-less use cases.
Updated•2 months ago
|
Comment 4•2 months ago
|
||
bugherder |
Comment 6•2 months ago
|
||
This issue is verified a fixed in our latest Nightly 142.0a1 (2025-06-29)
Assignee | ||
Comment 7•2 months ago
|
||
Refactor page summarization from chat.js and expose onboarding promise to wait if no provider. Allow actor to register for provider-less use cases and show menu entry with appropriate copy and badging.
Original Revision: https://phabricator.services.mozilla.com/D254937
Updated•2 months ago
|
Comment 8•2 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: non-chatbot users would be unable to use page summarization experiment
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: 1. enable feature with browser.ml.chat.page 2. open page context menu and select summarize page
- Risk associated with taking this patch: low
- Explanation of risk level: feature behind an experiment pref with slight js refactoring of functionality originally verified in nightly 141
- String changes made/needed: none
- Is Android affected?: no
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 10•2 months ago
|
||
Verified as fixed in our latest Beta 141.0b5
Description
•