- browser/components/aiwindow/ui/components/ai-window/ai-window.mjs @ 3240cbf16fa864221839d7f9a035e9929cf6d465
- browser/components/aiwindow/ui/components/ai-window/ai-window.mjs @ 3240cbf16fa864221839d7f9a035e9929cf6d465
diff a/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs b/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs (rejected hunks) @@ -599,10 +599,12 @@ ...
diff a/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs b/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs (rejected hunks)
@@ -599,10 +599,12 @@
this.#continueAfterToolResult();
}
}
async firstUpdated() {
+ const selectedTab = this.#getCurrentTab();
+
// Create a real XUL <browser> element from the chrome document
const doc = this.ownerDocument; // browser.xhtml
const browser = doc.createXULElement("browser");
browser.setAttribute("id", "aichat-browser");
@@ -1641,11 +1660,11 @@
// Hide chat-active state
this.#setBrowserContainerActiveState(false);
this.showStarters = false;
- this.loadStarterPrompts();
+ this.loadStarterPrompts(false, selectedTab);
}
showSearchingIndicator(isSearching, searchQuery) {
this.#dispatchMessageToChatContent({
role: "loading",
in addition, Git reported this error: while searching for:
// Hide chat-active state
this.#setBrowserContainerActiveState(false);
this.showStarters = false;
this.loadStarterPrompts();
}
showSearchingIndicator(isSearching, searchQuery) {
this.#dispatchMessageToChatContent({
role: "loading",
diff a/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs b/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs (rejected hunks) @@ -599,10 +599,12 @@ ...
diff a/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs b/browser/components/aiwindow/ui/components/ai-window/ai-window.mjs (rejected hunks)
@@ -599,10 +599,12 @@
this.#continueAfterToolResult();
}
}
async firstUpdated() {
+ const selectedTab = this.#getCurrentTab();
+
// Create a real XUL <browser> element from the chrome document
const doc = this.ownerDocument; // browser.xhtml
const browser = doc.createXULElement("browser");
browser.setAttribute("id", "aichat-browser");
@@ -1641,11 +1660,11 @@
// Hide chat-active state
this.#setBrowserContainerActiveState(false);
this.showStarters = false;
- this.loadStarterPrompts();
+ this.loadStarterPrompts(false, selectedTab);
}
showSearchingIndicator(isSearching, searchQuery) {
this.#dispatchMessageToChatContent({
role: "loading",
in addition, Git reported this error: while searching for:
// Hide chat-active state
this.#setBrowserContainerActiveState(false);
this.showStarters = false;
this.loadStarterPrompts();
}
showSearchingIndicator(isSearching, searchQuery) {
this.#dispatchMessageToChatContent({
role: "loading",