Skip to content

Infinite loop in Zed #698

Description

@failable

Summary

Image Image Image

Expected Behavior

Should not happen.

Actual Behavior

Using API in Zed cause infinite loop.

Steps to reproduce the issue

Use this Zed config

"language_models": {
    "openai_compatible": {
      "Cmd": {
        "api_url": "https://api.commandcode.ai/provider/v1",
        "available_models": [
          {
            "name": "deepseek/deepseek-v4-flash",
            "max_tokens": 1000000,
            "max_output_tokens": 384000,
            "max_completion_tokens": 384000,
            "capabilities": {
              "tools": true,
              "images": false,
              "parallel_tool_calls": true,
              "prompt_cache_key": true,
              "chat_completions": true,
              "interleaved_reasoning": false,
              "max_tokens_parameter": true
            }
          }
        ]
      }
    },
  }

and play around with it.

Command Code Version

Using API

Operating System

macOS

Terminal/IDE

Zed

Shell

No response

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions