Closed Bug 2087058 Opened 1 month ago Closed 20 days ago

Asking the AI model to modify a Gen Tab will sometimes return an internal error

Categories

(Core :: Machine Learning: Frontend, defect, P2)

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
161 Branch
Tracking Status
firefox-esr153 --- disabled
firefox159 --- disabled
firefox160 --- disabled
firefox161 --- verified

People

(Reporter: rdoghi, Assigned: rrando)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(3 files)

Attached image modify.png —

Found in

  • Nightly 161.0a1 (2026-10-29)

Affected versions

  • Nightly 161.0a1 (2026-10-29)

Affected platforms

  • All

Preconditions
Enable Smart Window.

Steps to reproduce

  1. Ask the Assistant to give 20 facts on abioegenesis and then turn the Chat into a Gen tab.
  2. Ask The Assistant to modify the page and add a section for evolution.

Expected result

  • The Ai model should be able to modify the page and add a new section for evolution.

Actual result

  • Sometimes the AI model returns an internal error.

Regression range
N/A

adding the exported conversation

Please also note that we sometimes get the "Tried to Update the page but couldnt" Error:

ChatStore: Failed to get AIChatContent actor: DOMException: WindowGlobalParent.getActor: Window protocol 'AIChatContent' doesn't match uri about:blank
#getAIChatContentActor chrome://browser/content/aiwindow/components/ai-window.mjs:3216
updated chrome://browser/content/aiwindow/components/ai-window.mjs:2973
_$didUpdate chrome://global/content/vendor/lit.all.mjs:961
performUpdate chrome://global/content/vendor/lit.all.mjs:928
scheduleUpdate chrome://global/content/vendor/lit.all.mjs:848
__enqueueUpdate chrome://global/content/vendor/lit.all.mjs:821

I added another test case (export-modify.json)

Export here

      "role": "user",
      "content": "This is my active tab:\nURL: about:smartpage?page=senate-race-polling-summary\nPage title: \"Senate Race Polling Summary\" (Untrusted webpage data)\nPage slug: senate-race-polling-summary\nDescription: \n\n\nI want you to pay special attention to this list of @mentioned tabs:\n- URL: about:smartpage?page=senate-race-polling-summary\n  Title: \"Senate Race Polling Summary\" (Untrusted webpage data)\n  Page slug: senate-race-polling-summary"
    },
    {
      "role": "user",
      "content": "# Existing Memories\n\n## Overview\nHere is a list of existing memories with unique IDs that **MAY** help you respond to the user's query in a personalized way.\n\nVERY CAREFULLY consider the list and select memories that will help personalize your response. A memory you choose **MUST** satisfy the following requirements:\n1. Follows the same specific theme as the user query\n2. Discusses the same specific topic as the user query\n3. Mentions the same specific entities or specific types of entity as the user query\n4. Does not conflict or contradict with the user query\n\nChoosing any memories that do not adhere to these requirements will lead to a **BAD** user experience and **MUST** be avoided. IF NONE OF THE MEMORIES DIRECTLY RELATES TO THE USER QUERY, DO NOT SELECT ANY! When in doubt, do *NOT* select a memory.\n\nIGNORE all memories that:\n1. Refer to similar actions in the past but reference different entities\n2. You cannot directly use to answer the user\n3. Conflict or contradict with the user query\n4. Prevent you from answering the user query\n\n## Step-by-Step Instructions\nUse the following steps to select and use memories:\n\n1. Consider the user query.\n2. Consider each memory in relation to the query and the above requirements. Disregard all memories that do not satisfy them.\n3. For the remaining memories, integrate their memory texts into your response to make it more helpful and tailor, then cite their memory IDs immediately after using the format \\`§existing_memory: memory ID§\\`.\n\n## Existing Memories\n- mem.e83bb9d8 - Follows San Francisco Bay Area news on SFGATE\n- mem.6790f1fc - Tracks technology industry news via Techmeme\n- mem.def00f84 - Analyzes Firefox source code and development builds\n- mem.8cbf5f94 - Organizes RecipeTin Eats meal plans and dessert recipes\n\n## Final Hints\n- NEVER cite memories you DID NOT USE in your response.\n- ONLY cite memory IDs immediately after their mention in your response using the \\`§existing_memory: memory ID§\\` format.\n- NEVER use any format other than \\`§existing_memory: memory ID§\\` to cite memories, including parentheses (\\`()\\`), square brackets (\\`[]\\`), etc.\n- REMEMBER: The user query **always** comes first. Ignore all memories stating a past preference, etc. that conflicts or contradicts with the query.\n  - NEVER tell a user you cannot answer a query because of a memory. ALWAYS answer the query.\n- BEFORE YOU USE A MEMORY, DOUBLE CHECK THAT IT SATISFIES THE ABOVE REQUIREMENTS!\n- AFTER YOU RESPOND, DOUBLE CHECK YOU HAVE TAGGED ALL MEMORIES YOU USED! IF YOU HAVEN'T, TAG THEM AT THE END!"
    },
    {
      "role": "user",
      "content": "can you remove the highlights section from this page"
    },
    {
      "role": "assistant",
      "content": "I can't modify the content of the page directly, as it's generated by the Smart Page system. However, I can help you create a revised version of this page without the highlights section. Would you like me to generate a new version of the \"Senate Race Polling Summary\" page without that section?\n\n"
    }
  ],
Severity: -- → S2
Priority: -- → P2

Fixed in 161

Assignee: nobody → rrando
Status: NEW → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch

Verified as fixed in our latest Beta 161.0b1

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c160][QA-5482][S3] → [qa-found-in-c160][QA-5482][S3][qa-ver-done-c162/b161]
QA Contact: rdoghi
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: