feat(sidebar): 镜像 agent 终端等待状态到 agentWaits(瞬态)

This commit is contained in:
HuanLinOTO
2026-09-09 13:29:27 +08:00
parent 993f7aaacd
commit 1fa777293f
3 changed files with 63 additions and 4 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ export function useHostFeeds(feeds: {
socket.onmessage = (event) => {
if (typeof event.data !== 'string') return
try {
const list = JSON.parse(event.data) as Array<{ uuid: string; title: string; command: string; exited: boolean }>
const list = JSON.parse(event.data) as Array<{ uuid: string; title: string; command: string; exited: boolean; waiting?: { needle: string; since: number } | null }>
if (!Array.isArray(list)) return
store.reduce(s => ctx.get('betterSidebar')?.isTabEnabled('terminal') === false
? s