-
|
Not sure if the problem is in model, llama-server, find /full/project/path -type f \( -name \"*.c\" -o -name \"*.h\" \) | head -n 20Looks like model tries multiple times until it gets to run it without double quotes, this succeeds: find /full/project/path -type f \( -name *.c -o -name *.h \) | head -n 20May it be some kind of over-escaping escape characters somewhere? Like if we try to run this in terminal this will return empty result: find /full/project/path -type f \( -name \\\"*.c\\\" -o -name \\\"*.h\\\" \) | head -n 20 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
From what I am seeing this might be a bug in Late. I am investigating. |
Beta Was this translation helpful? Give feedback.
-
|
Might not be caused by us. We take the raw string we receive and pass it without transformations back to bash -c. Probably best to check if this is caused by your setup with WSL. |
Beta Was this translation helpful? Give feedback.
-
|
FYI I have experienced a similar issue I have not had time to write up, yet. I am on Debian 13 (Trixie) using ollama. I see 400 errors from certain operations from ollama when using the gemma4 model due to invalid JSON (which when looking at the JSON is due to bad escaping when dealing with comments or shebang lines (beginning with '#')). The qwen3.6 model does not have the same problems though it requires a system prompt to tell it to use the current working directory instead of /home/testbed or /home/tb as the base directory for relative operations. |
Beta Was this translation helpful? Give feedback.
-
|
Agent got confused trying to edit file in the root of the project, actual location was like:
Model sent the
So nothing to fix here, I'll just add a project directory structure in agents.md (or add a find file mcp or tool working like Excerpt from llama-swap activity log (shortened instructions, changed paths/names): {
"model": "qwen3.6-35b-a3b",
"messages": [
{
"role": "system",
"content": "You are a **Coding Subagent** invoked --cut-- and what the issues are.\n"
},
{
"role": "user",
"content": "Goal: Fix the blue_byte assignment bug in SourceFile.c at line --cut-- This is a copy-paste error.\n\nIMPORTANT: Only change this one line. Do not modify any other code in the file.\n\n"
},
{
"role": "user",
"content": ""
},
{
"role": "assistant",
"content": "",
"reasoning_content": "The user wants me to fix a bug in the SourceFile.c file at line 344. I need to change `green_byte` to `blue_byte` in the assignment. Let me first read the file to understand the context, then make the edit.\n",
"tool_calls": [
{
"index": 0,
"id": "eyYqCkNdGc1Y1eA2KJFlFZcGUcdizq4j",
"type": "function",
"function": {
"name": "read_file",
"arguments": "{\"path\":\"/home/user/src/project/SourceFile.c\",\"start_line\":336,\"end_line\":346}"
}
}
]
},
{
"role": "tool",
"content": "Error executing tool read_file: open /home/user/src/project/SourceFile.c: no such file or directory",
"tool_call_id": "eyYqCkNdGc1Y1eA2KJFlFZcGUcdizq4j"
},
{
"role": "assistant",
"content": "",
"reasoning_content": "The file doesn't exist at that path. Let me search for it.\n",
"tool_calls": [
{
"index": 0,
"id": "ODPe4oHHvYDPvCazfw9QPNLbKa1clL34",
"type": "function",
"function": {
"name": "bash",
"arguments": "{\"command\":\"find /home/user/src/project -name \\\"SourceFile.c\\\" 2>/dev/null\"}"
}
}
]
},
{
"role": "tool",
"content": "",
"tool_call_id": "ODPe4oHHvYDPvCazfw9QPNLbKa1clL34"
}
],
"stream": true,
"tools": "--cut--"
} |
Beta Was this translation helpful? Give feedback.
Might not be caused by us. We take the raw string we receive and pass it without transformations back to bash -c. Probably best to check if this is caused by your setup with WSL.