Closed Bug 2009612 Opened 2 months ago Closed 5 days ago

Telemetry: Settings, Models

Categories

(Core :: Machine Learning: Frontend, task, P1)

task

Tracking

()

VERIFIED FIXED
151 Branch
Tracking Status
firefox150 + verified
firefox151 --- verified

People

(Reporter: cbellini, Assigned: gcardieri)

References

(Blocks 3 open bugs, Regressed 1 open bug)

Details

(Whiteboard: [genai][other])

Attachments

(2 files)

Probes to implement:

Events:

  • model_request
  • model_response
  • memories_optin
  • memories_optout
  • memories_panel_displayed
  • memory_removed_panel
  • memories_nuke

Metrics:

  • smart_window.model
See Also: → 2001527
Assignee: nobody → gcardieri
Summary: Telemetry: Settings, Models, Metering → Telemetry: Settings, Models

with bug 2021947 focusing on metering errors, this ticket is mostly settings related events for model selection and memory management

although i do see memories panel in comment 1 which is part of assistant ui probably handled in bug 2001527

Blocks: 1994503
See Also: → 2021947
Whiteboard: [genai] → [genai][other]
Assignee: gcardieri → nobody

giulia, bug 2023489 is updating MemoryStore.hardDeleteMemory to pass along what triggered deletion for both assistant and settings

Depends on: 2023489
Assignee: nobody → gcardieri
Status: NEW → ASSIGNED
Blocks: 2017416
Attachment #9555358 - Attachment description: WIP: Bug 2009612 - include settings telemetry and its tests → Bug 2009612 - include smart window settings telemetry
Blocks: 2024028
Attachment #9555358 - Attachment description: Bug 2009612 - include smart window settings telemetry → Bug 2009612 - include settings telemetry and its tests
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b29464df6fee https://hg.mozilla.org/integration/autoland/rev/0157fbc9d81f Revert "Bug 2009612 - include settings telemetry and its tests r=ai-frontend-reviewers,Gijs" for causing bc failures @browser_aiFeatures_smart_window_telemetry.js.

Backed out for causing bc failures @browser_aiFeatures_smart_window_telemetry.js.

Flags: needinfo?(gcardieri)
Regressions: 2026069
Status: ASSIGNED → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

Giulia, could you get this uplifted to 150 please, once this has been verified? Feel free to ping me here or on slack if you need help with this.

Rares, can we prioritize this for verification please? Thank you!

Flags: qe-verify+
Flags: needinfo?(rdoghi)

[Tracking Requested - why for this release]:
Required for Smart Window Feature Fx150 MVP launch.

Flags: needinfo?(gcardieri)

Hi Gijs, Im having some issues with a few of those events:

memories_optin - missing
memories_optout - missing

memories_panel_displayed - will not show up if its displayed in Sidebar when a memory is used and opened by the user, as far as I cant tell it only showed up after I visited settings.

Flags: needinfo?(rdoghi) → needinfo?(gijskruitbosch+bugs)

Hi @Rares,
The memories_optin and memories_optout are no longer part of this ticket, during development I talked with Vanessa from Data Science and we decided to change it. The updated metrics and events are listed in this google doc: https://docs.google.com/document/d/1EtlLGvLTSidFRoMMXGLLaNcxpYHjU-L5jYK7N88EGhw/edit?tab=t.0#heading=h.829h7k28fmpl

Here's an overall of what was implemented:

  1. (event)memories_panel_displayed: User opens the memories preferences panel - this applies only to the settings, not to the sidebar
  2. (event)settings_memories: User interacts with the checkboxes to change memories settings
  3. (event)settings_model: User selects a different model from the settings page
    4.(event) memories_nuke: User clicks on “Delete all” button for memories
  4. (metric) smart_window.model: Records the model selected by the user, or “custom-model”

Sorry this wasn't mentioned in the ticket, just in phabricator.

Flags: needinfo?(gijskruitbosch+bugs)

Thank you for clearing that up. This issue is Verified as fixed in our latest Nightly 51.0a1 (2026-03-27)

QA Whiteboard: [qa-ver-needed-c151/b150]
QA Contact: rdoghi

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: This patch adds part of the telemetry required for the smart window launch, if this is declined an important chunk of telemetry data would be lost for smart window.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: This patch has a summary of changes: https://phabricator.services.mozilla.com/D288768
  • Risk associated with taking this patch: low
  • Explanation of risk level: Telemetry to the smart window settings for a feature behind a pref.
  • String changes made/needed?: No
  • Is Android affected?: no
Attachment #9559323 - Flags: approval-mozilla-beta?

Include telemetry for smart window preferences.

Events:

  • memories nuke: when the delete all memories is clicked
  • settings_memories: when the user checks/unchecks the memories checkboxes
  • settings_model: when the user changes the model selection
  • memories_panel_displayed: when the memories panel is visible

Metrics:

  • model: when the model changes

Other updates:

  • Using the MODELS constants for the model names
  • Added a head_smart_window as a script to avoid repeating functions (over 40 lines of repetition)

Possible pain/reviewing points:

  • head_smart_window is added as a script, should we do another approach? I could add the functions in the head.js but then they would be imported by all tests which seems unnecessary
  • Global variable "previousAssistantModel" was needed to ensure when a custom model is selected we still know which model was previously set

Original Revision: https://phabricator.services.mozilla.com/D288768

:gcardieri can you take a look at the intermittent regression before we land this on beta? (bug 2026069)

Flags: needinfo?(gcardieri)

Hi @diannaS Just commented in intermittent test regression bug closing it as it hasn't failed since merge and was only seen on autoland twice while merging and should be safe to unblock uplift thanks

Flags: needinfo?(dsmith)
Attachment #9559323 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: needinfo?(dsmith)
QA Whiteboard: [qa-ver-needed-c151/b150] → [qa-ver-needed-c151/b150][uplift]

Verified as fixed in our latest Beta 150.0b3

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c151/b150][uplift] → [qa-ver-done-c151/b150][uplift]
Flags: qe-verify+
Flags: needinfo?(gcardieri)
Regressions: 2027892
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: