Copilot Chat runs for several minutes, generates thousands of lines, then silently stops with no UI error #191506
Replies: 2 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Your logs tell the whole story. Every tool is getting rejected because of The workaround is to flatten those schemas. Instead of using {
"oneOf": [{ "type": "string" }, { "type": "object", "properties": { ... } }]
}pick the more permissive shape and define it directly. Copilot's validator is much stricter than the actual JSON Schema spec. The no-UI-error behavior is the real bug here. Tool validation failures should surface a visible message before the model burns through 5-10 minutes of a session. Worth keeping this open as a bug report for that specifically. What extension is registering those tools? Looks like browser automation tooling given |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
VS Code
Body
Disclaimer: This is written by Ai, as I don't fully understand the issue. Essentially, my chats randomly stop with no error in the UI, usually after 5-20 minutes in agent mode.
I’m seeing a consistent issue with Copilot Chat where requests will run for 5–10 minutes, often generate a few thousand lines of output, and then abruptly stop with no error message shown in the UI.
The only visible result in the UI is that the response stops. There is no red error, no warning, and no indication that anything failed.
After inspecting logs, here’s what appears to be happening:
What’s happening
The model (Claude Opus / GPT‑4o‑mini) starts normally and generates large amounts of content.
When the agent transitions from reasoning to tool execution, Copilot validates the tool schemas.
All tools fail validation with warnings like:
Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
Because none of the tools register successfully, the agent has no valid next step.
Copilot then ends the request cleanly with finish reason: stop.
Importantly, this failure is not surfaced in the UI at all. From the user’s perspective, the request simply stops after several minutes, even though it is a hard failure.
What we think is causing it
Copilot’s tool runtime appears to support only a restricted subset of JSON Schema.
Specifically, top‑level oneOf, allOf, and anyOf are not supported, even though they are valid JSON Schema.
This limitation is not clearly documented.
Tools are rejected at runtime, but agents that depend on them continue running until they hit tool usage, causing late, silent termination.
What this is not
Not a timeout
Not a token limit
Not prompt length
Not a model failure
Not incorrect JSON Schema (schemas are valid)
Not user misconfiguration
Questions
Is the lack of UI error intentional when tool schemas fail validation?
Is there documentation for the supported JSON Schema subset for Copilot tools?
Are there plans to either support oneOf / allOf / anyOf, or surface a clear blocking error when tools are rejected?
Posting this because the delayed failure combined with no UI error makes this very difficult to diagnose. This has led to me having to use 5+ premium requests per message when this happens.
Full logs: 2026-04-03 10:51:38.505 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:51:38.505 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:38.505 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:51:38.505 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:43.946 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:51:43.970 [info] ccreq:eb640ad6.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 5465ms | [panel/editAgent]
2026-04-03 10:51:44.378 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:44.378 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:51:44.378 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:44.379 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:51:44.379 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:47.801 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:51:47.824 [info] ccreq:bebe1c15.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 3444ms | [panel/editAgent]
2026-04-03 10:51:48.040 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:48.040 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:51:48.040 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:48.040 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:51:48.040 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:51.366 [info] message 0 returned. finish reason: [stop]
2026-04-03 10:51:51.369 [info] request done: requestId: [ac7a885d-0f47-45ec-a6e4-2e74ddbb16fa] model deployment ID: []
2026-04-03 10:51:51.370 [info] ccreq:249c4877.copilotmd | success | gpt-4o-mini -> gpt-4o-mini-2024-07-18 | 484ms | [copilotLanguageModelWrapper]
2026-04-03 10:51:51.836 [info] message 0 returned. finish reason: [stop]
2026-04-03 10:51:51.839 [info] request done: requestId: [6d9f0a69-c1b9-467c-9a85-df29fd9196ec] model deployment ID: []
2026-04-03 10:51:51.840 [info] ccreq:5897696e.copilotmd | success | gpt-4o-mini -> gpt-4o-mini-2024-07-18 | 483ms | [copilotLanguageModelWrapper]
2026-04-03 10:51:55.027 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:51:55.032 [info] ccreq:02b8be60.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 33553ms | [tool/runSubagent]
2026-04-03 10:51:55.042 [info] [ToolCallingLoop] Subagent stop hook result: shouldContinue=false, reasons=undefined
2026-04-03 10:51:55.107 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:55.107 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:51:55.107 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:51:55.107 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:51:55.108 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:52:03.507 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:52:03.525 [info] ccreq:1ebcc69f.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 8416ms | [panel/editAgent]
2026-04-03 10:52:03.588 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:52:03.588 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:52:03.588 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:52:03.588 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:52:03.588 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:56:19.392 [warning] [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 5342afb0-53ae-46bb-9413-56799e37233a
2026-04-03 10:57:32.982 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:57:42.976 [info] ccreq:86a2ea9c.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 339386ms | [panel/editAgent]
2026-04-03 10:57:45.995 [info] Fetched model metadata in 426ms 8974b33a-d808-4055-abc2-698330c762b6
2026-04-03 10:57:46.075 [info] ccreq:23a768a9.copilotmd | markdown
2026-04-03 10:57:46.131 [info] Dropped current selection (12285 / 12285 tokens)
2026-04-03 10:57:46.275 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:57:46.275 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:57:46.275 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:57:46.275 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:57:46.275 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:57:46.598 [info] message 0 returned. finish reason: [stop]
2026-04-03 10:57:46.600 [info] request done: requestId: [a395d522-c943-45b6-bc3e-4c8876ebaad5] model deployment ID: []
2026-04-03 10:57:46.601 [info] ccreq:29334067.copilotmd | success | gpt-4o-mini -> gpt-4o-mini-2024-07-18 | 433ms | [copilotLanguageModelWrapper]
2026-04-03 10:58:26.164 [info] ccreq:ddaae4a0.copilotmd | cancelled | claude-opus-4.6 | 39894ms | [panel/editAgent]
2026-04-03 10:58:26.871 [info] Dropped current selection (12285 / 12285 tokens)
2026-04-03 10:58:27.223 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:27.224 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:58:27.224 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:27.224 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:58:27.224 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:33.572 [info] message 0 returned. finish reason: [stop]
2026-04-03 10:58:33.578 [info] request done: requestId: [b804fe7b-7a32-449a-8f8f-a231b5411a21] model deployment ID: []
2026-04-03 10:58:33.580 [info] ccreq:55d776b6.copilotmd | success | gpt-4o-mini -> gpt-4o-mini-2024-07-18 | 541ms | [copilotLanguageModelWrapper]
2026-04-03 10:58:34.741 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:58:34.776 [info] ccreq:6f50041b.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 7572ms | [panel/editAgent]
2026-04-03 10:58:34.985 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:34.985 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:58:34.985 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:34.985 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:58:34.985 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:39.508 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:58:39.517 [info] ccreq:5c1a0219.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 4532ms | [panel/editAgent]
2026-04-03 10:58:39.712 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:39.713 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:58:39.713 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:39.713 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:58:39.713 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:47.785 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:58:47.799 [info] ccreq:e018287f.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 8086ms | [panel/editAgent]
2026-04-03 10:58:47.893 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:47.894 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:58:47.894 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:47.894 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:58:47.894 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:58:55.714 [info] message 0 returned. finish reason: [stop]
2026-04-03 10:58:55.719 [info] request done: requestId: [81e93cb7-7a5f-4d42-89d5-1c57479351de] model deployment ID: []
2026-04-03 10:58:55.720 [info] ccreq:298747d4.copilotmd | success | gpt-4o-mini -> gpt-4o-mini-2024-07-18 | 526ms | [copilotLanguageModelWrapper]
2026-04-03 10:59:03.767 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:59:03.817 [info] ccreq:e3f62cb2.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 15923ms | [panel/editAgent]
2026-04-03 10:59:04.289 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:04.289 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:59:04.289 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:04.289 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:59:04.289 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:12.167 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:59:12.172 [info] ccreq:2f52afd5.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 7882ms | [panel/editAgent]
2026-04-03 10:59:13.510 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:13.510 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:59:13.510 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:13.510 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:59:13.510 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:17.182 [warning] [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 5342afb0-53ae-46bb-9413-56799e37233a
2026-04-03 10:59:19.114 [info] message 0 returned. finish reason: [stop]
2026-04-03 10:59:19.117 [info] request done: requestId: [545392db-9520-4600-9524-94e734d1ba9f] model deployment ID: []
2026-04-03 10:59:19.118 [info] ccreq:3bcf88c5.copilotmd | success | gpt-4o-mini -> gpt-4o-mini-2024-07-18 | 500ms | [copilotLanguageModelWrapper]
2026-04-03 10:59:26.622 [info] [messagesAPI] message 0 returned. finish reason: [stop]
2026-04-03 10:59:26.638 [info] ccreq:76a9d47f.copilotmd | success | claude-opus-4.6 -> claude-opus-4-6 | 13127ms | [panel/editAgent]
2026-04-03 10:59:26.734 [warning] Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:26.734 [warning] Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
2026-04-03 10:59:26.734 [warning] Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 10:59:26.734 [warning] Tool run_in_terminal failed validation: object has unsupported top-level schema keyword 'anyOf'
2026-04-03 10:59:26.734 [warning] Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
2026-04-03 11:01:25.306 [info] [GitExtensionServiceImpl] Initializing Git extension service.
2026-04-03 11:01:25.307 [error] Error getting a session: Canceled: Canceled
2026-04-03 11:01:25.422 [info] Logged in as Cyrus-DropPrint
2026-04-03 11:01:25.428 [info] Using the Electron fetcher.
2026-04-03 11:01:25.604 [info] ConversationFeature: Waiting for copilot token to activate conversation feature
2026-04-03 11:01:26.139 [info] Got Copilot token for Cyrus-DropPrint
2026-04-03 11:01:26.139 [info] Copilot Chat: 0.43.2026040204, VS Code: 1.115.0-insider
2026-04-03 11:01:26.158 [info] [context keys] Setting context key: github.copilot-chat.activated
2026-04-03 11:01:26.161 [info] activationBlocker from 'languageModelAccess' took for 593ms
2026-04-03 11:01:26.688 [info] [CopilotCLI] OpenTelemetry enabled: exporter=file, source=github.copilot
2026-04-03 11:01:26.719 [info] Fetched model metadata in 1132ms dbe4184a-99d2-41b3-a288-4d07a71befd0
2026-04-03 11:01:26.728 [info] Latest entry: ccreq:latest.copilotmd
2026-04-03 11:01:26.728 [info] ccreq:1250133a.copilotmd | markdown
2026-04-03 11:01:26.778 [info] [CopilotCLI] MCP server started. Lock file: C:\Users\cyrus.copilot\ide\5d012bcd-9c6c-49d6-8918-e7ff507d1a3a.lock
2026-04-03 11:01:26.778 [info] [CopilotCLI] Server URI: pipe:%5C%5C.%5Cpipe%5Cmcp-d08a20b1-ef91-4610-89b4-e59a7acc8952.sock#%2Fmcp
2026-04-03 11:01:26.804 [info] [CopilotCLI] Cleaned up 1 stale lock file(s).
2026-04-03 11:01:26.871 [info] AuthenticationService: firing onDidAuthenticationChange from handleAuthChangeEvent. Has token: true
2026-04-03 11:01:26.871 [info] copilot token sku: plus_monthly_subscriber_quota
2026-04-03 11:01:26.871 [info] ConversationFeature: Activating contributions
2026-04-03 11:01:26.871 [info] GitHub.vscode-pull-request-github extension is not yet activated.
2026-04-03 11:01:26.889 [info] Registering default platform agent...
2026-04-03 11:01:26.891 [info] ConversationFeature: onDidAuthenticationChange has token: true
2026-04-03 11:01:26.891 [info] [code-referencing] Public code references are enabled.
2026-04-03 11:01:26.891 [info] activationBlocker from 'conversationFeature' took for 1337ms
2026-04-03 11:01:27.367 [info] GithubAvailableEmbeddingTypesManager: Got embeddings. Primary: metis-1024-I16-Binary. Deprecated:
2026-04-03 11:01:27.369 [info] WorkspaceChunkSearchService: using embedding type metis-1024-I16-Binary
2026-04-03 11:01:27.371 [info] BYOK: Copilot Chat known models list fetched successfully.
2026-04-03 11:01:27.440 [info] Fetched model metadata in 570ms a92bf536-2d38-432e-9fa1-367eba663fb4
2026-04-03 11:01:27.445 [info] ccreq:65b7fef1.copilotmd | markdown
2026-04-03 11:01:27.595 [warning] [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 5342afb0-53ae-46bb-9413-56799e37233a
2026-04-03 11:01:27.596 [warning] [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 5342afb0-53ae-46bb-9413-56799e37233a
2026-04-03 11:01:27.699 [warning] [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 5342afb0-53ae-46bb-9413-56799e37233a
2026-04-03 11:01:27.995 [info] [GitExtensionServiceImpl] Successfully activated the vscode.git extension.
2026-04-03 11:01:27.995 [info] [GitExtensionServiceImpl] Enablement state of the vscode.git extension: true.
2026-04-03 11:01:27.995 [info] [GitExtensionServiceImpl] Successfully registered Git commit message provider.
2026-04-03 11:01:31.213 [warning] [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 5342afb0-53ae-46bb-9413-56799e37233a
2026-04-03 11:01:35.380 [info] TypeScript server plugin activated.
2026-04-03 11:01:35.380 [info] Registered TypeScript context provider with Copilot inline completions.
2026-04-03 11:02:08.611 [warning] [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 5342afb0-53ae-46bb-9413-56799e37233a
Beta Was this translation helpful? Give feedback.
All reactions