microsoft / microsoft/copilot-for-eclipse

[Bug] Agent mode not working when project is empty or closed.

Open
#403 11 comments 0 reactions 1 assignee View on GitHub

@ethanyhou is already working on this.

Since Aug 12, 2026.

bug
Dominant language
Java
Stars
126
Forks
60
Avg merge
2d 6h
Merged PRs (30d)
5

Description

Image

Log:

{"jsonrpc":"2.0","id":"34","method":"conversation/create","params":{"workDoneToken":"7e9d8113-642a-4f11-b513-1954191a3619","turns":[{"request":"Hi"}],"capabilities":{"allSkills":false,"skills":["current-editor"]},"computeSuggestions":true,"references":[],"source":"panel","workspaceFolders":[],"ignoredSkills":[],"userLanguage":"en","model":"gpt-5.4-mini","modelInfo":{"id":"gpt-5.4-mini","reasoningEffort":"medium"},"chatMode":"Agent","customChatModeId":"Agent","needToolCallConfirmation":true}}

[2026-08-07T12:04:36.781998+08:00] LANGUAGE_SERVER_TO_LSP4E com.microsoft.copilot.eclipse.ls:
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"7e9d8113-642a-4f11-b513-1954191a3619","value":{"kind":"begin","title":"Conversation 00091301-192f-4737-aec5-d82cfe73f10b Turn 0434a413-9b80-4f69-bfec-34377081eb4d","conversationId":"00091301-192f-4737-aec5-d82cfe73f10b","turnId":"0434a413-9b80-4f69-bfec-34377081eb4d"}}}

[2026-08-07T12:04:36.840365600+08:00] LANGUAGE_SERVER_TO_LSP4E com.microsoft.copilot.eclipse.ls:
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"[agentPrompt] Rendering fresh global context for conversation/turn 00091301-192f-4737-aec5-d82cfe73f10b/0434a413-9b80-4f69-bfec-34377081eb4d"}}

[2026-08-07T12:04:36.841604300+08:00] LANGUAGE_SERVER_TO_LSP4E com.microsoft.copilot.eclipse.ls:
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":1,"message":"[agenticTurnProcessor] Error in processing turn 0434a413-9b80-4f69-bfec-34377081eb4d TypeError: Cannot read properties of undefined (reading 'filter') (at tsx element AgentPrompt > UserMessage > SubagentListPrompt)\n    at y0.collect (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:2411:12762)\n    at t.listCustomAgents (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:2411:23507)\n    at async $de.getAgents (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:3333:954)\n    at async $de.getAgentsForModelDispatch (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:3333:1202)\n    at async Itt.renderCopilot (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:3333:3037)\n    at async annotateError (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:69:4311)\n    at async C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:67:29695\n    at async Promise.all (index 0)\n    at async jZe._processPromptPieces (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:67:29606)\n    at async jZe._processPromptRenderPiece (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:67:30200)"}}

[2026-08-07T12:04:36.843185600+08:00] LANGUAGE_SERVER_TO_LSP4E com.microsoft.copilot.eclipse.ls:
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":1,"message":"[chat] Error processing turn 0434a413-9b80-4f69-bfec-34377081eb4d TypeError: Cannot read properties of undefined (reading 'filter') (at tsx element AgentPrompt > UserMessage > SubagentListPrompt)\n    at y0.collect (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:2411:12762)\n    at t.listCustomAgents (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:2411:23507)\n    at async $de.getAgents (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:3333:954)\n    at async $de.getAgentsForModelDispatch (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:3333:1202)\n    at async Itt.renderCopilot (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:3333:3037)\n    at async annotateError (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:69:4311)\n    at async C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:67:29695\n    at async Promise.all (index 0)\n    at async jZe._processPromptPieces (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:67:29606)\n    at async jZe._processPromptRenderPiece (C:\\snapshot\\copilot-language-server-internal\\dist\\main.js:67:30200)"}}

[2026-08-07T12:04:36.844225900+08:00] LANGUAGE_SERVER_TO_LSP4E com.microsoft.copilot.eclipse.ls:
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"7e9d8113-642a-4f11-b513-1954191a3619","value":{"kind":"end","conversationId":"00091301-192f-4737-aec5-d82cfe73f10b","turnId":"0434a413-9b80-4f69-bfec-34377081eb4d","error":{"message":"Cannot read properties of undefined (reading 'filter') (at tsx element AgentPrompt > UserMessage > SubagentListPrompt)","code":-1,"responseIsIncomplete":true}}}}

[2026-08-07T12:04:37.099601600+08:00] LANGUAGE_SERVER_TO_LSP4E com.microsoft.copilot.eclipse.ls:
{"jsonrpc":"2.0","id":"34","result":{"conversationId":"00091301-192f-4737-aec5-d82cfe73f10b","turnId":"0434a413-9b80-4f69-bfec-34377081eb4d","modelName":"GPT-5.4 mini","billingMultiplier":0,"modelInfo":{"id":"gpt-5.4-mini","reasoningEffort":"medium"}}}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.