refactor: 工作空间改为单一终端,移除多 Tab 机制

- 移除新建终端按钮和 Tab 栏,只保留唯一默认终端
- AI 命令始终发往唯一终端,避免多终端时目标不确定
- 删除 createTerminalSession/closeTerminalTab/renderTerminalTabs 等多 Tab 相关代码
This commit is contained in:
thzxx
2026-04-08 16:35:54 +08:00
parent 8783cd9b59
commit 43f45cc09c
2 changed files with 16 additions and 88 deletions
-6
View File
@@ -179,7 +179,6 @@
<!-- 终端 Tab -->
<div class="ws-content" id="wsTerminalContent">
<div class="ws-term-tab-bar" id="wsTermTabBar"></div>
<div class="ws-term-output" id="wsTermOutput"></div>
<div class="ws-term-toolbar">
<span class="ws-term-hint" id="wsTermHint">等待 AI 执行命令...</span>
@@ -195,11 +194,6 @@
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>
</svg>
</button>
<button class="ws-toolbar-btn" id="wsNewTabBtn" title="新建终端">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/>
</svg>
</button>
</div>
</div>
</div>