ollama - 💡(How to fix) Fix Possible Claude CLI Bug [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15864Fetched 2026-04-29 06:11:41
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
1
Author
Participants
Timeline (top)
commented ×1labeled ×1

Code Example

$ ollama launch claude --model  qwen3.6:35b

pulling manifest
pulling f5ee307a2982: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ▏  23 GB/ 23 GB  117 MB/s      0s
pulling 5f3a3c817e78: 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  11 KB
pulling 86eff881e8d2: 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏   94 B
pulling 5d1c86a949f7: 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  462 B
verifying sha256 digest
writing manifest
success
╭─── Claude Code v2.1.120 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                    │ Tips for getting started                                                                                                  │
Welcome back Mike!Run /init to create a CLAUDE.md file with instructions for Claude│                                                    │ Note: You have launched claude in your home directory. For the best experience, launch it in a project directory instead. 
│                       ▐▛███▜▌                      │ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│                      ▝▜█████▛▘                     │ Recent activity                                                                                                           │
│                        ▘▘ ▝▝                       │ No recent activity                                                                                                        │
│         qwen3.6:35b · API Usage Billing ·          │                                                                                                                           │
│         mslinn@mslinn.com's Organization           │                                                                                                                           │
/home/mslinn                    │                                                                                                                           │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─── Claude Code v2.1.120 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                    │ Tips for getting started                                                                                                  │
Welcome back Mike!Run /init to create a CLAUDE.md file with instructions for Claude│                                                    │ Note: You have launched claude in your home directory. For the best experience, launch it in a project directory instead. 
│                       ▐▛███▜▌                      │ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│                      ▝▜█████▛▘                     │ Recent activity                                                                                                           │
│                        ▘▘ ▝▝                       │ No recent activity                                                                                                        │
│         qwen3.6:35b · API Usage Billing ·          │                                                                                                                           │
│         mslinn@mslinn.com's Organization           │                                                                                                                           │
/home/mslinn                    │                                                                                                                           │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

  Message from mslinn@mslinn.com's Organization:
  Read /home/mslinn/.claude/settings.json

❯ what directories can you see

I can see the current working directory is /home/mslinn. Let me check what's there.

  I can see the primary working directory is /home/mslinn. This appears to be a Linux home directory that is also a git repository.

  Would you like me to list the top-level directories and files in /home/mslinn?

Worked for 1m 46s

❯ i am timing how long it takes you to do common activities. the directory description took 1m 46s. let's see how long it takes you to tell me the number of directories in /etc

<|function_name>|<|function_call|>

Brewed for 1m 20s

❯ your response was nonsense. count the number of directories in /etc

I'll count the directories in /etc for you.

  <|name:execute_command|>|name:args:|args:{"command": "find /etc -maxdepth 1 -mindepth 1 -type d | wc -l"}<|/name:args:|name:execute_command|

Baked for 1m 29s

❯ you showed me what you should execute instead of the result of the execution

---
RAW_BUFFERClick to expand / collapse

What is the issue?

$ ollama launch claude --model  qwen3.6:35b

pulling manifest
pulling f5ee307a2982: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ▏  23 GB/ 23 GB  117 MB/s      0s
pulling 5f3a3c817e78: 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  11 KB
pulling 86eff881e8d2: 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏   94 B
pulling 5d1c86a949f7: 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  462 B
verifying sha256 digest
writing manifest
success
╭─── Claude Code v2.1.120 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                    │ Tips for getting started                                                                                                  │
│                 Welcome back Mike!                 │ Run /init to create a CLAUDE.md file with instructions for Claude                                                         │
│                                                    │ Note: You have launched claude in your home directory. For the best experience, launch it in a project directory instead. │
│                       ▐▛███▜▌                      │ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│                      ▝▜█████▛▘                     │ Recent activity                                                                                                           │
│                        ▘▘ ▝▝                       │ No recent activity                                                                                                        │
│         qwen3.6:35b · API Usage Billing ·          │                                                                                                                           │
[email protected]'s Organization           │                                                                                                                           │
│                    /home/mslinn                    │                                                                                                                           │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─── Claude Code v2.1.120 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                    │ Tips for getting started                                                                                                  │
│                 Welcome back Mike!                 │ Run /init to create a CLAUDE.md file with instructions for Claude                                                         │
│                                                    │ Note: You have launched claude in your home directory. For the best experience, launch it in a project directory instead. │
│                       ▐▛███▜▌                      │ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│                      ▝▜█████▛▘                     │ Recent activity                                                                                                           │
│                        ▘▘ ▝▝                       │ No recent activity                                                                                                        │
│         qwen3.6:35b · API Usage Billing ·          │                                                                                                                           │
[email protected]'s Organization           │                                                                                                                           │
│                    /home/mslinn                    │                                                                                                                           │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

  Message from [email protected]'s Organization:
  Read /home/mslinn/.claude/settings.json

❯ what directories can you see

● I can see the current working directory is /home/mslinn. Let me check what's there.

  I can see the primary working directory is /home/mslinn. This appears to be a Linux home directory that is also a git repository.

  Would you like me to list the top-level directories and files in /home/mslinn?

✻ Worked for 1m 46s

❯ i am timing how long it takes you to do common activities. the directory description took 1m 46s. let's see how long it takes you to tell me the number of directories in /etc

● <|function_name>|<|function_call|>

✻ Brewed for 1m 20s

❯ your response was nonsense. count the number of directories in /etc

● I'll count the directories in /etc for you.

  <|name:execute_command|>|name:args:|args:{"command": "find /etc -maxdepth 1 -mindepth 1 -type d | wc -l"}<|/name:args:|name:execute_command|

✻ Baked for 1m 29s

❯ you showed me what you should execute instead of the result of the execution

Relevant log output

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

extent analysis

TL;DR

The issue seems to be related to the execution of commands and providing results, which can be fixed by properly executing the commands and returning the output.

Guidance

  • The model is providing the command that should be executed instead of the result of the execution, indicating a potential issue with command execution or output handling.
  • To fix this, ensure that the model is properly executing the commands and returning the output, rather than just providing the command itself.
  • Verify that the execute_command function is working correctly and that the output is being properly handled and returned.
  • Check the documentation for the execute_command function to ensure it is being used correctly and that the output is being properly parsed and returned.

Example

# Example of how to execute a command and return the output
result = execute_command("find /etc -maxdepth 1 -mindepth 1 -type d | wc -l")
print(result)

Notes

The exact fix will depend on the implementation details of the execute_command function and how it is being used in the model. Without more information, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Modify the model to properly execute commands and return the output, rather than just providing the command itself. This will likely involve modifying the execute_command function or how it is being used in the model.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix Possible Claude CLI Bug [1 comments, 2 participants]