Open Bug 1911687 Opened 2 years ago Updated 8 months ago

ChatGPT sidebar query includes unnecessary `with "" selected` when no text is selected.

Categories

(Core :: Machine Learning: Frontend, enhancement)

enhancement
Points:
3

Tracking

()

People

(Reporter: cpeterson, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

When I:

  1. right click on a page without selecting any text on the page,
  2. select "Ask ChatGPT", and
  3. select one of the ChatGPT actions ("Summarize", "Simplify language", "Quiz me", or "Explain this"),

the sidebar submits a ChatGPT query like:

I’m on page "Example Domain" with "" selected. Please summarize the selection using precise and concise language. Use headers and bulleted lists in the summary, to make it scannable. Maintain the meaning and factual accuracy.

There is no need for the query to include with "" selected when no text is selected.

Blocks: 1900914
Blocks: 1911129
No longer blocks: 1900914
Whiteboard: [genai]

would need a different localized prompt string without the selection part or potentially it defaults to page text for this no-selection context menu flow

Blocks: 1922413
No longer blocks: 1911129
Points: --- → 3
Component: Machine Learning: General → Machine Learning: Frontend
You need to log in before you can comment on or make changes to this bug.