From b4c1ad53077556e5401569a41a739f58a5ab2c86 Mon Sep 17 00:00:00 2001 From: t Date: Tue, 1 Dec 2026 17:42:15 -0700 Subject: Drain slow MCP tool results after ACP cancellation or disconnect agy can time out and cancel or disconnect an MCP request while Panto is still running the local tool. Failing immediately broke the turn or risked replying to a cancelled request. Request a 30-minute MCP timeout (timeoutSeconds=1800) for the pantograph relay and track Panto's active tool handoff (s.issued) independently of the cancellable MCP call. Keep the ACP idle timer alive while s.issued is pending, let notifications/cancelled and MCP disconnects clear s.call without aborting the turn, hold completion in s.settle until the local tool result and any queued steering drain, and record failed_handoff so a failed handoff surfaces on continuation. Document slow-tool handling in README.md and add a late-tool acceptance fixture in check.lua, tests/fake-agy.lua, and tests/tui.exp. --- tests/tui.exp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/tui.exp') diff --git a/tests/tui.exp b/tests/tui.exp index b8cdf4d..77ef267 100644 --- a/tests/tui.exp +++ b/tests/tui.exp @@ -20,6 +20,7 @@ foreach {prompt answer} {hello primary-tool-ok again same-session-ok} { send -- "/reasoning high"; see {/reasoning high}; send -- "\r"; see {reasoning -> high} } else {see $answer} } +send -- "late-tool"; see {late-tool}; send -- "\r"; see {timeout-handled-ok} send -- "/fixture-notice "; see {/fixture-notice }; send -- "\r"; see {workflow-notice-ok} send -- "\003"; expect eof; wait set flag [open "$env(HOME)/.local/share/panto-antigravity/google/usage-failure" w]; close $flag -- cgit v1.3