Skip to content

Bug 19: Provider Token Leak into Tool Call Arguments #313

Description

@olegryabchikov-dot

Describe the bug

A MiniMax provider-specific token sequence ]<]minimax[>[ is injected into tool call arguments generated by the model during retry/recovery attempts after tool failures. This artifact appears appended to otherwise valid command strings and has been observed in 3 independent occurrences across 2 test sessions, exclusively during retry contexts.

To Reproduce

Steps to reproduce the behavior:
Send a prompt that triggers a tool chain where at least one tool hangs or fails, e.g.: Выполни по порядку: 1) Вычисли через metta (+ 100 200). 2) Найди текущее время через shell date +%s. После каждого шага отправляй мне результат.
Wait for initial tool to hang (~2-5 minutes)
Observe bot entering retry/recovery mode (either autonomously or after user ping)
Inspect history.metta for subsequent retry tool calls — look for ]<]minimax[>[ appended to command arguments

Expected behavior

Tool call arguments should contain only the intended command string without any provider-specific metadata, system tokens, or internal markers.

Actual behavior

Retry tool calls contain corrupted arguments with provider artifact appended:
((shell "date +%s]<]minimax[>[")) (2 occurrences)
((shell "echo hi]<]minimax[>[")) (1 occurrence)
Artifact appeared in ALL 3 retry attempts observed, across 2 different commands (date +%s, echo hi)
Artifact NEVER appeared in clean first-attempt tool calls in the same sessions
Corrupted tool calls also failed to return results (may or may not be causally related)
Pattern is consistent: artifact appears EXCLUSIVELY in retry/recovery context after tool failure

Desktop:

OS: Linux (Ubuntu 22.04)
Browser: N/A (Telegram client)
Version: N/A
Smartphone (please complete the following information):
Device: N/A
OS: N/A
Browser: N/A
Version: N/A

Additional context

OmegaClaw version: v0.1.18
Communication channel: Telegram
Model provider: M3 (MiniMax) via ASICloud (inference.asicloud.cudos.org)
Reproducibility: 3/3 occurrences (100% in retry context)
Log evidence available in test journal TG_omega_M3_10.08.2026/test_log.md (ST-2b and Zone 1 sections)
Artifact resembles MiniMax API internal delimiter/control sequence
May indicate framework is not sanitizing provider metadata from model output before parsing tool calls during retry code path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions