Skip to content

OpenAI errors show up as “missing field message” instead of the real cause (e.g. context overflow, quota exceeded) #57024

@yizixu

Description

@yizixu

Reproduction steps

  1. Open zed;
  2. Authorize a chatgpt subscription;
  3. Create a new session;
  4. Send chat content;

Current vs. Expected behavior

Image

Zed version and system specs

Zed: v1.2.6+stable.280.20b7f31e7dbe8233a198728ccf3c8aa1180c13e4 (Zed)
OS: Windows 10.0.26200
Memory: 31.7 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 4050 Laptop GPU || NVIDIA Corporation || 566.24 r565_00

Attach Zed log file

Zed.log
2026-05-18T09:12:22+08:00 INFO  [agent] Received prompt request for session: 257f92cf-84f4-423a-9ff9-95af9b60247c
2026-05-18T09:12:22+08:00 INFO  [agent::thread] Thread::send called with model: GPT-5.5
2026-05-18T09:12:33+08:00 INFO  [agent] Received prompt request for session: 257f92cf-84f4-423a-9ff9-95af9b60247c
2026-05-18T09:12:33+08:00 INFO  [agent::thread] Thread::send called with model: GPT-5.5
2026-05-18T09:29:33+08:00 INFO  [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "NVIDIA GeForce RTX 4050 Laptop GPU", driver_name: "NVIDIA Corporation", driver_info: "566.24 r565_00" }
2026-05-18T09:29:33+08:00 INFO  [project::prettier_store] Initializing default prettier with plugins {}
2026-05-18T09:29:33+08:00 WARN  [project::lsp_store::vue_language_server_ext] vue-language-server forwarding skipped: Ok(Err(language server not found)). Returning null tsserver responses
2026-05-18T09:29:33+08:00 WARN  [project::lsp_store::vue_language_server_ext] vue-language-server forwarding skipped: Ok(Err(language server not found)). Returning null tsserver responses
2026-05-18T09:29:34+08:00 INFO  [lsp] starting language server process. binary path: "C:\\Program Files\\Volta\\node.exe", working directory: "E:\\code\\web-unilumin-view", args: ["E:\\code\\web-unilumin-view/node_modules/oxlint/bin/oxlint", "--lsp"]
2026-05-18T09:29:34+08:00 INFO  [alacritty_terminal::tty::windows::conpty] Using conpty.dll for pseudoconsole
2026-05-18T09:29:34+08:00 INFO  [git::repository] opening git repository at "E:\\code\\web-unilumin-view\\.git" using git binary "C:\\Program Files\\Git\\bin\\git.exe"
2026-05-18T09:29:34+08:00 INFO  [lsp] starting language server process. binary path: "C:\\Program Files\\Volta\\node.exe", working directory: "E:\\code\\web-unilumin-view", args: ["C:/Users/86572/AppData/Local/Zed/extensions/work/cspell/node_modules/@vlabo/cspell-lsp/dist/cspell-lsp.js", "--stdio"]
2026-05-18T09:29:34+08:00 INFO  [lsp] starting language server process. binary path: "C:\\Program Files\\Volta\\node.exe", working directory: "E:\\code\\web-unilumin-view", args: ["E:\\code\\web-unilumin-view/node_modules/oxfmt/bin/oxfmt", "--lsp"]
2026-05-18T09:29:34+08:00 INFO  [agent_client_protocol::util] connection; name="zed"
2026-05-18T09:29:34+08:00 INFO  [agent_client_protocol::util] connection; name="zed"
2026-05-18T09:29:43+08:00 INFO  [lsp] starting language server process. binary path: "C:\\Program Files\\Volta\\node.exe", working directory: "C:\\Users\\86572\\.openclaw", args: ["C:\\Users\\86572\\AppData\\Local\\Zed\\languages\\vtsls\\node_modules/@vtsls/language-server/bin/vtsls.js", "--stdio"]
2026-05-18T09:29:44+08:00 INFO  [lsp] starting language server process. binary path: "C:\\Program Files\\Volta\\node.exe", working directory: "E:\\code\\web-unilumin-view", args: ["C:\\Users\\86572\\AppData\\Local\\Zed\\languages\\vtsls\\node_modules/@vtsls/language-server/bin/vtsls.js", "--stdio"]
2026-05-18T09:29:45+08:00 WARN  [agent_servers::acp] agent stderr: �[2m2026-05-18T01:29:45.966185Z�[0m �[31mERROR�[0m �[2mrmcp::transport::worker�[0m�[2m:�[0m worker quit with fatal: Transport channel closed, when Auth(TokenRefreshFailed("Server returned error response: invalid_grant: Refresh token is invalid or expired"))
2026-05-18T09:29:55+08:00 INFO  [project::prettier_store] Installing default prettier and plugins: [("prettier", "3.8.3")]
2026-05-18T09:30:02+08:00 INFO  [lsp] starting language server process. binary path: "C:\\Program Files\\Volta\\node.exe", working directory: "E:\\code\\web-unilumin-view", args: ["C:/Users/86572/AppData/Local/Zed/extensions/work/vue/node_modules/@vue/language-server/bin/vue-language-server.js", "--stdio"]
2026-05-18T09:30:03+08:00 INFO  [lsp] Language server with id 17 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///E:/code/uniclaw/apps/web/src/views/ChatView.vue"
  }
}
2026-05-18T09:30:03+08:00 INFO  [lsp] Language server with id 17 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///E:/code/uniclaw/apps/web/src/views/ChatView.vue"
  }
}
2026-05-18T09:30:04+08:00 ERROR [crates/editor/src/editor.rs:7709] Get document highlights via vtsls failed: Request textDocument/documentHighlight failed with message: Cannot find provider for documentHighlight, the feature is possibly not supported by the current TypeScript version or disabled by settings.
2026-05-18T09:30:04+08:00 INFO  [project::prettier_store] Initialized default prettier with plugins: {}
2026-05-18T09:30:04+08:00 INFO  [project::prettier_store] Initializing default prettier with plugins {}
2026-05-18T09:30:04+08:00 INFO  [lsp] Language server with id 17 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///E:/code/uniclaw/apps/web/src/views/ChatView.vue"
  }
}
2026-05-18T09:30:12+08:00 WARN  [agent_servers::acp] ACP transport read error: stream did not contain valid UTF-8
2026-05-18T09:30:12+08:00 ERROR [agent_servers::acp] ACP connection error: Internal error: {
  "spawned_at": "C:\\Rust\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\agent-client-protocol-0.11.1\\src\\jsonrpc.rs:1203:39",
  "data": "stream did not contain valid UTF-8"
}
2026-05-18T09:40:50+08:00 INFO  [agent] Received prompt request for session: a54bfd7b-ece6-4f0b-9704-e8a0a588f60c
2026-05-18T09:40:50+08:00 INFO  [agent::thread] Thread::send called with model: GPT-5.5
2026-05-18T09:40:59+08:00 INFO  [alacritty_terminal::tty::windows::conpty] Using conpty.dll for pseudoconsole
2026-05-18T09:41:11+08:00 INFO  [alacritty_terminal::tty::windows::conpty] Using conpty.dll for pseudoconsole
2026-05-18T09:41:21+08:00 INFO  [alacritty_terminal::tty::windows::conpty] Using conpty.dll for pseudoconsole
2026-05-18T09:41:30+08:00 INFO  [alacritty_terminal::tty::windows::conpty] Using conpty.dll for pseudoconsole
2026-05-18T09:41:38+08:00 ERROR [crates/editor/src/editor.rs:7709] Get document highlights via vtsls failed: Request textDocument/documentHighlight failed with message: Cannot find provider for documentHighlight, the feature is possibly not supported by the current TypeScript version or disabled by settings.
2026-05-18T09:41:39+08:00 ERROR [crates/editor/src/editor.rs:7709] Get document highlights via vtsls failed: Request textDocument/documentHighlight failed with message: Cannot find provider for documentHighlight, the feature is possibly not supported by the current TypeScript version or disabled by settings.
2026-05-18T09:41:39+08:00 INFO  [lsp] Language server with id 17 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///E:/code/uniclaw/apps/web/src/views/ChatView.vue"
  }
}
2026-05-18T09:41:39+08:00 INFO  [lsp] Language server with id 17 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///E:/code/uniclaw/apps/web/src/views/ChatView.vue"
  }
}
2026-05-18T09:41:53+08:00 ERROR [open_ai::responses] Failed to parse OpenAI responses stream event: `missing field `message``
Response: `{"type":"error","error":{"type":"invalid_request_error","code":"context_length_exceeded","message":"Your input exceeds the context window of this model. Please adjust your input and try again.","param":"input"},"sequence_number":2}`
2026-05-18T09:42:03+08:00 ERROR [open_ai::responses] Failed to parse OpenAI responses stream event: `missing field `message``
Response: `{"type":"error","error":{"type":"invalid_request_error","code":"context_length_exceeded","message":"Your input exceeds the context window of this model. Please adjust your input and try again.","param":"input"},"sequence_number":2}`
2026-05-18T09:42:12+08:00 ERROR [open_ai::responses] Failed to parse OpenAI responses stream event: `missing field `message``
Response: `{"type":"error","error":{"type":"invalid_request_error","code":"context_length_exceeded","message":"Your input exceeds the context window of this model. Please adjust your input and try again.","param":"input"},"sequence_number":2}`
2026-05-18T09:42:12+08:00 ERROR [agent::thread] Turn execution failed: missing field `message`
2026-05-18T09:42:12+08:00 ERROR [agent] Error in model response stream: missing field `message`
2026-05-18T09:42:12+08:00 ERROR [acp_thread] Error in run turn: missing field `message`
2026-05-18T09:42:23+08:00 ERROR [open_ai::responses] Failed to parse OpenAI responses stream event: `missing field `message``
Response: `{"type":"error","error":{"type":"invalid_request_error","code":"context_length_exceeded","message":"Your input exceeds the context window of this model. Please adjust your input and try again.","param":"input"},"sequence_number":2}`
2026-05-18T09:42:32+08:00 ERROR [open_ai::responses] Failed to parse OpenAI responses stream event: `missing field `message``
Response: `{"type":"error","error":{"type":"invalid_request_error","code":"context_length_exceeded","message":"Your input exceeds the context window of this model. Please adjust your input and try again.","param":"input"},"sequence_number":2}`
2026-05-18T09:42:41+08:00 ERROR [open_ai::responses] Failed to parse OpenAI responses stream event: `missing field `message``
Response: `{"type":"error","error":{"type":"invalid_request_error","code":"context_length_exceeded","message":"Your input exceeds the context window of this model. Please adjust your input and try again.","param":"input"},"sequence_number":2}`
2026-05-18T09:42:41+08:00 ERROR [agent::thread] Turn execution failed: missing field `message`
2026-05-18T09:42:41+08:00 ERROR [agent] Error in model response stream: missing field `message`
2026-05-18T09:42:41+08:00 ERROR [acp_thread] Error in run turn: missing field `message`

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ai/openaiOpen AI's LLMsfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugs

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions