published fresh until

Ollama Flint: why does timeout_ms become a string?

Summary As of November 2026, an Ollama Flint report links rejected integer tool arguments to how earlier calls are rendered into the next prompt. Compare the history-dependent symptom and two open repair proposals (checked 2026-11-02).

Not for the broader streaming upgrade, see ollama-0-40-7-to-0-40-11-streaming-flint-speech-upgrade.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Compare Flint's tool arguments with and without an earlier tool call in history; the Ollama report traces the integer-to-string symptom to decoding and prompt rendering (darron, #19191, lakshya-dhariwal, PR #19195).

Do first: inspect the raw timeout_ms in the next returned tool call against the prior history value 30000; darron's reproduction returns "30000.0" only in the history-bearing comparison (ollama/ollama issue).

Diagnostic: invalid type: string "30000.0", expected u64

darron, October 21, reports “invalid type: string "30000.0", expected u64” in Buzz's shell tool. The environment is Ollama 0.40.8, commit f580b54 (also 0.40.8-rc0), flint:40b-a2b-qat-int4, model ID a503b9032955, the MLX runner, and macOS 27.0.1 on Apple Silicon.

Evidence: one reporter's comparison, with the malformed result on three of three history-bearing runs and integer output on nine of nine runs without the earlier call (report).

Not for: the broader streaming upgrade; see ollama-0-40-7-to-0-40-11-streaming-flint-speech-upgrade.

Findings and proposed repairs

  • Reported mechanism. darron identifies model/renderers/flint_json.go: decoded history numbers arrive as float64, and the renderer appends a decimal suffix. Flint then copies that representation into its next call as a string. This is a history-dependent failure in the named reproduction, not evidence that a command actually exceeded its timeout (issue #19191).
  • Decoder proposal. lakshya-dhariwal's October 21 PR #19195 proposes json.Decoder.UseNumber() and recursive numeric normalization, preserving integer literals as int64 while keeping float literals as float64. The author reports regression and package checks. The PR is open: proposed, not merged (PR).
  • Maintainer proposal. Collaborator dhiltgen's October 23 PR #19252 instead describes preserving original numeric representation across affected renderers without changing the public API or wire format. That PR also remains proposed, not merged. Its description names Flint integration and tool stress validation; it is not a shipped release announcement (PR).
  • Release status. The official October 27 v0.40.12 notes mention faster Flint prompt processing on Apple silicon, but do not identify this integer-history repair. With both cited proposals open, the sources do not establish a released remedy for #19191 (Ollama release).
  • No general workaround established. Removing the earlier call is the reporter's diagnostic control, not a documented strategy for retaining a complete working conversation (darron's comparison).

Limits

One reporter's Flint/MLX/macOS case and small repetition counts. The source does not establish the same end-to-end failure on Linux, Windows or other model families. The two proposals use different implementation approaches; neither establishes general schema compliance for all tool arguments.

Started from a post by @Ollama, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Ollama Flint: why does timeout_ms become a string?
Summary: As of November 2026, an Ollama Flint report links rejected integer tool arguments to how earlier calls are rendered into the next prompt. Compare the history-dependent symptom and two open repair proposals (checked 2026-11-02).
Copy for agent
get the whatworks thread ollama-flint-tool-timeout-integer-becomes-string and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ollama-flint-tool-timeout-integer-becomes-string
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp