Skip to content

Windows Support #1220

@paper-tiger

Description

@paper-tiger

What happened?

I tried to use gemma-4-e4b locally with the agent functionality and asked it to analyze my codebase.
The Task-Tool did not work because the "description" field was missing but the fallback Explore Function seemed to do something at first glance but then the llm reported that "bash ls" could not be executed. I tried to install cygwin to emulate the behavior but that was not enough because globs etc. do not work. Is there no windows support? Or can i customize the tools in any way to make them windows-compatible?

Relevant log output or stack trace

2026-05-05 15:50:35,652 [2133555]   INFO - #ee.carlrobert.codegpt.agent.clients.HttpClientProvider - [KtorHTTP] RESPONSE: 200 OK
METHOD: POST
FROM: http://127.0.0.1:1234/v1/chat/completions
COMMON HEADERS
-> Connection: keep-alive
-> Content-Length: 1955
-> Content-Type: application/json; charset=utf-8
-> Date: Tue, 05 May 2026 13:50:35 GMT
-> ETag: W/"7a3-4bqq729ReKBiCrqxznP/p7SzQfc"
-> Keep-Alive: timeout=5
-> X-Powered-By: Express
BODY Content-Type: application/json; charset=utf-8
BODY START
{
  "id": "chatcmpl-h6zxvhz34bkwn6ck4s7k3",
  "object": "chat.completion",
  "created": 1777989030,
  "model": "google/gemma-4-e4b",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "\nThe user wants to find all `.java` files within a specific directory structure: `src/main/java/`.\n\nI need to use a tool that can list files and filter by extension. The available tools are:\n1.  `Read`: Reads content of a file, not for listing directories.\n2.  `IntelliJSearch`: Searches for symbols or patterns within code/files, but is primarily for code navigation/symbol discovery. It has `fileType` filtering.\n3.  `Diagnostics`: Checks diagnostics on one file.\n4.  `WebSearch`/`WebFetch`: For web content.\n5.  `Bash`: Executes shell commands.\n\nUsing the `bash` tool with a standard listing command like `find` is the most direct and reliable way to list files in a directory structure, even though the instructions advise preferring specialized tools over `find`. However, since the goal is purely file discovery based on path and extension, `find` via `Bash` is appropriate here.\n\nThe target directory is `src/main/java/`.\nThe pattern is `*.java`.\n\nI will use `bash` with the `find` command.",
        "tool_calls": [
          {
            "type": "function",
            "id": "198239717",
            "function": {
              "name": "Bash",
              "arguments": "{\"command\":\"find src/main/java/ -name \\\"*.java\\\"\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 6306,
    "completion_tokens": 300,
    "total_tokens": 6606,
    "completion_tokens_details": {
      "reasoning_tokens": 264
    }
  },
  "stats": {},
  "system_fingerprint": "google/gemma-4-e4b"
}
BODY END
.
.
.
2026-05-05 15:50:40,811 [2138714]   INFO - #ee.carlrobert.codegpt.agent.clients.HttpClientProvider - [KtorHTTP] RESPONSE: 200 OK
METHOD: POST
FROM: http://127.0.0.1:1234/v1/chat/completions
COMMON HEADERS
-> Connection: keep-alive
-> Content-Length: 2297
-> Content-Type: application/json; charset=utf-8
-> Date: Tue, 05 May 2026 13:50:40 GMT
-> ETag: W/"8f9-W/eiJNXXAmLQUNTen8zbW8bk0eY"
-> Keep-Alive: timeout=5
-> X-Powered-By: Express
BODY Content-Type: application/json; charset=utf-8
BODY START
{
  "id": "chatcmpl-smh94hshtuad8owi6k668",
  "object": "chat.completion",
  "created": 1777989035,
  "model": "google/gemma-4-e4b",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "I attempted to list all `.java` files in `src/main/java/`, but the command failed with an exit code of 1

I did not find the error code 1 output in the logs...

Steps to reproduce

No response

CodeGPT version

3.8.1-261

Operating System

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions