Files
brave-core/browser
Pete Miller 68be1396f1 [AI Chat] Tab Management Tool - close action (#36894)
* [AI Chat] Tab Management Tool - close action

Adds the "close" action to the tab management tool, reimplemented on top
of the refactored handlers. Closing is asynchronous (beforeunload handlers
can delay WebContents destruction), so a self-owned TabsClosedWaiter waits
for the tabs to be destroyed, or a fallback timeout, before reporting the
resulting tab list. Duplicate tab_ids are de-duplicated and indices are
re-queried per close to avoid acting on a stale or destroyed WebContents.
2026-06-03 00:06:01 -07:00
..