Skip to content

Commit 8b8dc6c

Browse files
OrKoNDevtools-frontend LUCI CQ
authored andcommitted
[AI Assistance] Do not react to Ask AI if the agent is loading
Bug: 377227220 Change-Id: Iea4859b6838d8ef8a644efbf646d46408faf364e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5999254 Reviewed-by: Ergün Erdoğmuş <[email protected]> Commit-Queue: Ergün Erdoğmuş <[email protected]> Auto-Submit: Alex Rudenko <[email protected]> Commit-Queue: Alex Rudenko <[email protected]>
1 parent 4cfd093 commit 8b8dc6c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

front_end/panels/freestyler/FreestylerPanel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,13 @@ export class FreestylerPanel extends UI.Panel.Panel {
525525
}
526526

527527
handleAction(actionId: string): void {
528+
if (this.#viewProps.isLoading) {
529+
// If running some queries already, focus the input with the abort
530+
// button and do nothing.
531+
this.#viewOutput.freestylerChatUi?.focusTextInput();
532+
return;
533+
}
534+
528535
let targetAgentType: AgentType|undefined;
529536
switch (actionId) {
530537
case 'freestyler.elements-floating-button': {

0 commit comments

Comments
 (0)