Skip to content

Commit 87662ac

Browse files
fix(miniapps): clarify CDP prompt and rename menu to Browser
- CDP "Send to AI" message lacked tab-reuse guidance, causing the AI to open new tabs instead of reusing the existing one - "Miniapps" menu label was an internal term; "Browser" is clearer for end users
1 parent 8caa03a commit 87662ac

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/MiniAppManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ void MiniAppManager::launchApp(const MiniAppDefinition &def)
150150
if (aiDock && !instance->cdpHttpUrl().isEmpty()) {
151151
menu.addAction(tr("Send to AI"), this, [instance, aiDock]() {
152152
const QString msg = QStringLiteral(
153-
"Connect to the browser via CDP at %1")
153+
"Connect to the browser via CDP at %1 "
154+
"(use the existing tab, do not create new tabs). ")
154155
.arg(instance->cdpHttpUrl());
155156
aiDock->insertTextToInput(msg);
156157
aiDock->setVisible(true);

src/dialogs/MainWindow.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
</widget>
383383
<widget class="QMenu" name="menuMiniApps">
384384
<property name="title">
385-
<string>Miniapps</string>
385+
<string>Browser</string>
386386
</property>
387387
<addaction name="actionEditMiniApps"/>
388388
</widget>

0 commit comments

Comments
 (0)