mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5958] Enable Tool Use silently does nothing on Claude and Grok subscription connections #3300
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3300
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Sep 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5958
Originally assigned to: @SpicyMarinara on GitHub.
Found while verifying #5957. Small, self-contained, and it affects anyone on a subscription connection who turns tools on.
"Enable Tool Use" works normally on Claude and Grok subscription connections — it just accomplishes nothing, and nothing says so.
Neither subscription provider overrides
chatComplete, so both inherit the base implementation, which returnstoolCalls: []unconditionally (services/llm/base-provider.ts:776-814) regardless of whatoptions.toolsheld. Neither class readsoptions.toolsoroptions.toolChoiceanywhere — zero matches in both files. The Claude subscription provider hardcodestools: []into its SDK call (claude-subscription.provider.ts:408) with a class comment saying built-in tools are deliberately disabled because Marinara drives its own tool layer; the Grok CLI provider builds a flat text transcript with no tool schema at all.Downstream, the tool-round loop's guard
enableChatTools && provider.chatCompleteis true — the method exists, it just can't produce tool calls — so the loop runs,if (!result.toolCalls.length) breakfires after round 0 every time, and the model narrates as though tools were never configured.The user-visible result is a silent no-op: no error, no warning, no "tools aren't available on this connection" notice. The toggle in
FunctionCallingSection.tsxhas no provider awareness at all (no reference toclaude_subscription/grok_subscription/ any supports-tools flag), and neither does the server-side resolution. A player enables tools, sees the settings copy promising real dice, and gets nothing — with no way to discover why.(The Grok connection editor does carry a disclaimer, but it's about the Grok CLI's own internal tools/web-search/memory being disabled — a different concern from Marinara's function-calling schema being ignored.)
Fix shape: a supports-tools capability on the provider (or a name list, matching how other provider quirks are handled), surfaced in the tool settings so the toggle either explains that this connection ignores tools or is visibly unavailable. Wherever the copy currently promises tool-driven behavior in Game Mode, it should say the same thing.
Note for prioritization: the dice tag path (#5923) and the GM verb channel (#5798) are parsed out of narration text and need no tools API, so those keep working for these users. It's specifically the tools-API features that go quiet.
@kolacheee commented on GitHub (Sep 8, 2026):
One more cost worth noting here, found while verifying #5957: it isn't only that nothing happens — the engine still pays for the attempt. Full tool definitions are serialized into the request for these connections and sent, where they're ignored, so the user spends prompt budget on a schema the provider was never going to read. A
supportsToolCallscapability on the provider (zero hits for any such flag on staging) would fix both halves at once: skip attaching the definitions, and give the settings UI something to explain itself with.@SpicyMarinara commented on GitHub (Sep 9, 2026):
@SpicyMarinara owns this sweep implementation in draft #5982. Native-tool availability will be explicit in settings and server resolution, including subscription connections; existing text-command and dice-tag behavior stays available.