Skip to content

Agent mode not working in IntelliJ on Windows #6196

Open
@lisyoen

Description

@lisyoen

Before submitting your bug report

Relevant environment info

- OS:Windows 10
- Continue version:version: 1.0.21
- IDE version:IntelliJ IDEA 2025.1.1.1 (Ultimate Edition)
- Model:Qwen2.5-Coder-32B-Instruct
- config:
  
  - name: "S-Core/Qwen2.5-Coder-32B-Instruct"
    model: "S-Core/Qwen2.5-Coder-32B-Instruct"
    systemMessage: "한국어로 답변해줘. 생성한 코드 스니펫의 시작에 'AI AD '와 생성된 라인수를 합쳐서 한줄로 주석으로 달아줘.생성한 코드 스니펫의 끝에는 'AI END'를 한줄로 주석으로 달아줘."
    chatOptions:
      baseSystemMessage: test
    provider: "openai"
    apiKey: "{MY-API-KEY}"
    apiBase: "http://172.21.135.113:4000/v1"
    contextLength: 30000
    capabilities:
      - tool_use
    roles: [chat, edit, apply]
  
  OR link to assistant in Continue hub:

Description

I'm using IntelliJ on Windows for Java development.
While Chat, Edit, and Autocomplete modes all work as expected, Agent mode does not function properly.
Instead of executing the requested action, it only returns a raw response like the following:
{
"name": "builtin_create_new_file",
"arguments": {
"filepath": "docs/app.md",
"contents": "md\n## Overview\napp.ts......."
}
}

To reproduce

  1. Switch to Agent mode
  2. Ask: “Analyze the source code and save it as an MD file”
  3. Observe the response

Log output

{
  "name": "builtin_create_new_file",
  "arguments": {
    "filepath": "docs/app.md",
    "contents": "# app.ts Analysis\n\n## Overview\nThe `app.ts` file serves as the entry point for the webgame platform application. It sets up the Express server, configures middleware, and defines routes for handling HTTP requests.\n\n## Key Components\n\n### Express Server Setup\n- **Port Configuration**: The server listens on a port specified by the environment variable `PORT`, defaulting to 8000 if not set.\n\n### Middleware\n- **Static Files**: Serves files from the `uploads` directory at the `/uploads` URL path.\n- **CORS**: Configures Cross-Origin Resource Sharing (CORS) to allow requests from `http://lisyoen2.iptime.org:8001`. Allows GET, POST, PUT, DELETE, and OPTIONS methods, and accepts `Content-Type` and `Authorization` headers. Credentials (like cookies) are allowed, and the preflight request is handled with a 204 No Content status.\n- **JSON Parsing**: Parses incoming JSON requests.\n- **Request Logging**: Logs each request method and URL to the console.\n\n### Routes\n- **Root Route (`/`)**: Responds with a JSON array of games retrieved from the `getGames` utility function.\n- **Register Route (`/register`)**: Uses the `registerRouter` to handle game registration requests.\n- **Delete Route (`/delete`)**: Uses the `deleteRouter` to handle game deletion requests.\n\n## Code Snippets\n\n### Static Files Middleware\n\napp.use('/uploads', express.static(path.join(__dirname, '..', 'uploads')));\n\n\n### CORS Middleware\n\napp.use(cors({\n  origin: 'http://lisyoen2.iptime.org:8001',\n  methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],\n  allowedHeaders: ['Content-Type', 'Authorization'],\n  credentials: true,\n  preflightContinue: false,\n  optionsSuccessStatus: 204,\n}));\n\n\n### JSON Parsing Middleware\n\napp.use(express.json());\n\n\n### Request Logging Middleware\n\napp.use((req: Request, res: Response, next: NextFunction) => {\n  console.log(`요청: ${req.method} ${req.url}`);\n  next();\n});\n\n\n### Root Route Handler\n\napp.get('/', (req: Request, res: Response) => {\n  const games = getGames();\n  res.json(games);\n});\n\n\n### Register Route\n\napp.use('/register', registerRouter);\n\n\n### Delete Route\n\napp.use('/delete', deleteRouter);\n\n\n## Summary\nThis file initializes the Express server, configures necessary middleware for handling requests, and sets up routes for game registration and deletion. The server responds with game data at the root URL and delegates specific functionalities to separate route handlers."
  }
}

Metadata

Metadata

Assignees

Labels

ide:jetbrainsRelates specifically to JetBrains extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions