Skip to content

fix(roadmap): show the cause of a model call stop in the Job comment - #2938

Merged
dan-petty merged 5 commits into
mainfrom
fix/2922-qwen-tool-call-parse-failure
Oct 31, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/2922-qwen-tool-call-parse-failure

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement Job for #2747 stopped with a reason that hid the cause of the error. The step hid every quoted word of the error text of the provider. So the words XML syntax error on line 70: unexpected EOF were not in the comment.

This change does two things:

  • The reason reads the error text inside the gateway dict {'error': '<text>'}. That text still goes through the masker, the cut, the hiding of quoted parts, and the stop at the first = or ;. So a quoted secret with no known form stays hidden.
  • A model call that fails with a 400 inside an open stream gets one more line in the reason. The line says that the provider failed inside the stream, and that a tool call parsing failure of Ollama is a known cause. The step picks the line from the fields of the error, not from its text.

The cause is in the strict parser of Ollama (ollama/ollama issue 18563). No fix is in a release. So this change makes the cause readable and does not change the model, the route or the image. The proposal holds the evidence.

Closes #2922

…provider error (#2922)

The text of an error body kept no quoted word, so the comment of #2747 read
{<text>: <text>}. It now keeps them and masks secrets by their form. A 400
inside an open stream adds one line that names tool call parsing failed as a
known cause (ollama/ollama issue 18563).
…ain (#2922)

The reason reads the error text of the gateway dict and hides each quoted
part of it, as before. A quoted secret in colon form no longer reaches the
stop comment.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Oct 31, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

Review findings

Fixed:

  • Major (spec and safety): the first fix removed the hiding of quoted parts. A quoted secret with no = and no known form, such as db_password: hunter2, reached the stop comment. The hiding is back. The reason now reads only the text inside the gateway dict {'error': '<text>'} and applies every guard to it. New tests cover colon-form echoes with and without the wrapper and a plain quoted secret.
  • Minor: the docstring of the echo test and the archived change (proposal, design, tasks, spec) match the new rule.
  • Minor: the fail-to-pass run is cited above.

Not fixed:

  • The plain unquoted text password hunter2 and the file content line 1: the old code returned it in full too, so it is no regression. The stop at = and ; and the masker are the guards for that case, as for all stop text.

@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 22:02
@dan-petty
dan-petty merged commit e988710 into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the fix/2922-qwen-tool-call-parse-failure branch October 31, 2026 22:12
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.35.0](v0.34.0...v0.35.0)
(2026-10-31)


### Features

* **roadmap:** items have one owner label and a claim ends a Job
([#2935](#2935))
([8b7dc4b](8b7dc4b)),
closes [#2910](#2910)


### Bug Fixes

* **k8s:** set containerSecurityContext for mattermost
([#2939](#2939))
([5c79314](5c79314))
* **k8s:** specify runAsUser for mattermost-operator
([#2934](#2934))
([fbf7427](fbf7427))
* **roadmap:** show the cause of a model call stop in the Job comment
([#2938](#2938))
([e988710](e988710)),
closes [#2922](#2922)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): an implement step stops when Ollama cannot parse a qwen3-coder tool call, and the stop hides the cause

1 participant