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 | 6eb999e2fafc7a9731155f69c696993dbf67da94 (patch) | |
| tree | a960304ff6d82ab6ed18a628d0c6208332bc2ddd /lib/hyperstack | |
| parent | f50d8dcb7515e7f12cf80d04fed93f15b87c4102 (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 'lib/hyperstack')
0 files changed, 0 insertions, 0 deletions
