diff options
| author | t <t@tjp.lol> | 2026-12-01 17:42:15 -0700 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-12-04 13:53:47 -0700 |
| commit | b4c1ad53077556e5401569a41a739f58a5ab2c86 (patch) | |
| tree | 0b121e7c16c7c7c385d68a2d6e4b24866b13f86f /README.md | |
| parent | 8c1c5786ebfe8dda40a70571f332e876b184ad4d (diff) | |
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.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -25,6 +25,8 @@ reasoning_levels = ["low", "medium", "high", "xhigh"] **Tools:** By default the `pantograph` MCP server exports the active Panto tools, including extension tools. They run with Panto's permissions, not agy's shell sandbox. Use a trusted rig; if it contains tools you don't want Neon to run, narrow `tools` or disable those extensions in the rig. Full input schemas are listed, including nested arrays and objects; an unsupported schema constraint rejects the call rather than disabling the catalog. ACP now selects a per-thread [custom main agent](https://antigravity.google/docs/subagents/) with `excludeDefaultComponents: true`, `tools: []`, and no inherited customizations or MCP. The agent file in the isolated profile declares only the thread's `pantograph` relay (none for `tools = []`); each exported tool requests eager loading so agy need not read schema files with a native tool. The same relay is passed explicitly to ACP `session/new` or `session/resume` so agy discovers it during setup. With tools exported, the adapter requires a live relay that served `tools/list` before sending the first prompt. Schema-cache timestamps are not used. The Panto rig prompt still uses ACP's advertised append extension. +**Slow tools:** The generated agy agent requests a 30-minute MCP timeout for its `pantograph` server. If agy times out an MCP call, the local tool may still finish. Panto records its result, but the adapter does not send it to a cancelled request, rerun the tool, or start a new prompt. The existing turn drains the result and any queued steering before it can finish. + **Native tool visibility:** During a prompt, reported ACP native calls such as `manage_task` appear above the input with their name and status. The component shows the latest six calls until the next prompt or session close; it isn't saved transcript history. It never executes tools or prints raw inputs/results. Calls through the Panto relay still get their ordinary Panto cards, not duplicates. **Live acceptance check:** Restart Panto after each config change and use a fresh thread in a disposable workspace without other agents, hooks or MCP servers. Generate a fresh marker with `uuidgen > panto-probe.txt` before each test; don't paste its contents into chat. |
