feat(sidebar): agent 终端等待 banner(needle + 跳过等待按钮)

This commit is contained in:
HuanLinOTO
2026-09-09 13:37:08 +08:00
parent 1fa777293f
commit c4c856a450
25 changed files with 189 additions and 0 deletions
+4
View File
@@ -346,6 +346,10 @@ export const api = {
/** Release an agent terminal by uuid (tab closed while WS was down). */
agentPtyClose: (uuid: string) =>
call<{ ok: true }>('agent-pty.close', { uuid }),
/** Skip every active terminal_wait_for on one agent terminal (the wait
* banner's skip button). Idempotent: {skipped:0} when none is active. */
agentSkipWait: (uuid: string) =>
call<{ ok: true; skipped: number }>('agent-pty.skip-wait', { uuid }),
/** Terminal dependency status (issue #140): after a WS close 1011 with
* reason `pty-deps-missing` the view fetches the full repair details here
* (the close reason itself is capped at 123 bytes). */