feat: add realtime terminal entry

This commit is contained in:
JOJO 2025-11-18 22:58:35 +08:00
parent aea1463730
commit 49d2a7b915
2 changed files with 13 additions and 0 deletions

View File

@ -1317,6 +1317,13 @@ async function bootstrapApp() {
},
// 重置Token统计
openRealtimeTerminal() {
const { protocol, hostname, port } = window.location;
const target = `${protocol}//${hostname}${port ? ':' + port : ''}/terminal`;
window.open(target, '_blank');
},
resetTokenStatistics() {
this.currentContextTokens = 0;
this.currentConversationTokens = {

View File

@ -531,6 +531,12 @@
</button>
<transition name="settings-menu">
<div class="settings-menu" v-if="settingsOpen">
<button type="button"
class="menu-btn realtime-entry"
@click="openRealtimeTerminal"
:disabled="streamingMessage || !isConnected">
实时终端
</button>
<button type="button"
class="menu-btn focus-entry"
@click="toggleFocusPanel"