diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-24 23:47:13 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-24 23:47:13 +0200 |
| commit | 9731b82818a2a199a8d826ae3e406c61572c2b6f (patch) | |
| tree | 195b1d1e6fe42847fb7bd6fe2bce15398f95f8ce /hyperstack-vm1-gptoss.toml | |
| parent | 9f45954847e7aa904ebda55e3c23277d7c7a3079 (diff) | |
reload-runtime: fix reload loop by calling ctx.reload() directly
The tool previously used pi.sendUserMessage("/reload-runtime", { deliverAs: "followUp" }),
which injected a user message that started a new AI turn and could cause the agent to
call reload_runtime again — resulting in a loop. Now the tool calls ctx.reload() directly
via a captured lastCtx, avoiding any follow-up message. Also tightened the tool description
to discourage repeated calls in the same turn.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'hyperstack-vm1-gptoss.toml')
0 files changed, 0 insertions, 0 deletions
