The run's Claude Code has the caller's tools only through the MCP helper
(--tools "" turns its built-ins off). A run started anew (after an idle gap,
or magpie quitting for an update) was told the conversation in text with
every past call as [tool call Bash …]: hundreds of bare names and none of
the run's own. The model wrote Bash, Claude Code itself answered "Bash is
disabled for this session, in subagents as well as here.", nothing reached
magpie, and the turn ended without a call. renderClaudePrompt and
renderClaudeTurn now write a call of a tool the caller offers under
bridgeName (mcp__magpie__<Name>), and a forced tool_choice names it so too.
A call of a tool the caller doesn't offer (its framework's own) keeps its
name.
Verified: TestClaudePromptTellsPastCallsByTheRunsNames fails without the
change ("started anew: a call of the caller's Bash isn't told as the run's
mcp__magpie__Bash", the same for the next turn, and "You must call the Read
tool.") and passes with it. go vet, go test -tags nogui ./internal/gateway
(temp HOME, pinned caches), GOOS=linux go build -tags nogui and GOOS=windows
go build pass. Not tried against a real Claude subscription: the bare-name
call could not be brought about on demand (18 real runs called the right
name before this change).