Skip to content

Conversation

@eidriahn
Copy link
Contributor

Fixes issue #284498

The issue was caused by the fact that the copyAllCommand wasn't considering whether the click was done on normal searches or ai searches.

Test it:

Go to search -> AI Search
Search for anything
Right click on any result and select 'Copy All'
Paste the copied contents into a file and check if they correspond.

Copilot AI review requested due to automatic review settings December 26, 2025 13:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #284498 where the "Copy All" command in the search view wasn't distinguishing between normal search results and AI search results. The fix ensures that when copying all results, the command respects the context (AI or regular search) of the clicked element.

Key Changes:

  • Modified copyAllCommand to accept a match parameter to determine the search context
  • Added isAISearchResult helper function to identify if an element belongs to AI search results
  • Updated CopyAllCommandAction.run() to pass the match parameter through to the command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants