Skip to content

Commit 6774eb9

Browse files
Samiya CaurDevtools-frontend LUCI CQ
authored andcommitted
[AI Assistance] Show checkbox for selected history entry
Bug: 383436398 Change-Id: I1412dff52cb37ee9b7e09dcfecd0bd88d37e92cf Fixed: 383436398 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6088296 Commit-Queue: Ergün Erdoğmuş <[email protected]> Auto-Submit: Samiya Caur <[email protected]> Reviewed-by: Ergün Erdoğmuş <[email protected]>
1 parent 84b5d95 commit 6774eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front_end/panels/ai_assistance/AiAssistancePanel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,9 @@ export class AiAssistancePanel extends UI.Panel.Panel {
669669
continue;
670670
}
671671

672-
contextMenu.defaultSection().appendItem(title, () => {
672+
contextMenu.defaultSection().appendCheckboxItem(title, () => {
673673
void this.#switchAgent(agent);
674-
});
674+
}, {checked: (this.#currentAgent === agent)});
675675
}
676676

677677
const historyEmpty = contextMenu.defaultSection().items.length === 0;

0 commit comments

Comments
 (0)