Write tool fails when using Claude Opus 4.5 with Gitlab Duo Subscription #7149

Closed
opened 2026-02-16 18:06:18 -05:00 by yindo · 3 comments
Owner

Originally created by @kashyapmanu on GitHub (Jan 22, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

TLDR: Gitlab Duo Claude Opus 4.5 does not respect the tool schema (write tool, bash tool etc).

  • Write tool often fails when using Opus 4.5 with Gitlab Duo Auth.
  • Often the error is the write tool expects a string but undefined is being passed to the tool.
  • Also when the error occurs the execution stops and it does not try to heal.
  • If passed the error via message it fixes itself. Also alternate way of writing via bash commands works fine.
  • Unfortunately I am using work laptop and can not paste the error. Apologies.

Please look into this if time permits. Thank you for the amazing tool

Plugins

None - Stock Open code

OpenCode version

1.3X - Latest

Steps to reproduce

  1. Gitlab Duo - Claude Opus 4.5
  2. Build Mode - Come up with a plan to xxxxxx in this codebase and implement the plan.

Screenshot and/or share link

No response

Operating System

Windows 11 - WSL2 - Ubuntu LTS

Terminal

Windows Terminal

Originally created by @kashyapmanu on GitHub (Jan 22, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description TLDR: Gitlab Duo Claude Opus 4.5 does not respect the tool schema (write tool, bash tool etc). - Write tool often fails when using Opus 4.5 with Gitlab Duo Auth. - Often the error is the write tool expects a string but undefined is being passed to the tool. - Also when the error occurs the execution stops and it does not try to heal. - If passed the error via message it fixes itself. Also alternate way of writing via bash commands works fine. - Unfortunately I am using work laptop and can not paste the error. Apologies. Please look into this if time permits. Thank you for the amazing tool ### Plugins None - Stock Open code ### OpenCode version 1.3X - Latest ### Steps to reproduce 1. Gitlab Duo - Claude Opus 4.5 2. Build Mode - Come up with a plan to xxxxxx in this codebase and implement the plan. ### Screenshot and/or share link _No response_ ### Operating System Windows 11 - WSL2 - Ubuntu LTS ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 18:06:18 -05:00
yindo closed this issue 2026-02-16 18:06:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9256: Using gitlab duo model opus 4.5 (edit tool error with Duo Opus 4.5)
  • #9331: Gitlab Duo opus 4.5 still show error (follow-up to #9256)

These issues appear to involve similar problems with Gitlab Duo and Claude Opus 4.5 tool calling failures. Feel free to ignore if your specific case differs.

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #9256: Using gitlab duo model opus 4.5 (edit tool error with Duo Opus 4.5) - #9331: Gitlab Duo opus 4.5 still show error (follow-up to #9256) These issues appear to involve similar problems with Gitlab Duo and Claude Opus 4.5 tool calling failures. Feel free to ignore if your specific case differs.
Author
Owner

@vglafirov commented on GitHub (Jan 22, 2026):

This looks like a duplicate of: https://github.com/anomalyco/opencode/issues/9331 The root cause is identified and related to the timeout on Gitlab AI Gateway. MR to fix that is pending approval.

@vglafirov commented on GitHub (Jan 22, 2026): This looks like a duplicate of: https://github.com/anomalyco/opencode/issues/9331 The root cause is identified and related to the timeout on Gitlab AI Gateway. [MR](https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/merge_requests/4307#note_3020300075) to fix that is pending approval.
Author
Owner

@kashyapmanu commented on GitHub (Jan 22, 2026):

Thank you Sir @vglafirov .
Apologies for the duplicate ticket.
As of now asking the model to write the response in chucks fixes the issue.

@kashyapmanu commented on GitHub (Jan 22, 2026): Thank you Sir @vglafirov . Apologies for the duplicate ticket. **As of now asking the model to write the response in chucks fixes the issue.**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7149