Skip to content

ModelService: Cannot add model because it already exists! - Still occurs with parallel MCP tool calls (v1.109.2) #294345

Closed

Description

@ahmed775216

Bug Report

VS Code Version: 1.109.2 (591199d, x64)
OS: Ubuntu Linux x64
Copilot Chat Extension: Agent mode
Selected Model: Claude Opus 4.6
MCP Servers: mssql-mcp (stdio), postgres-mcp (stdio), memory MCP (stdio)

Description

The error Failed to render content: ModelService: Cannot add model because it already exists! still occurs in VS Code 1.109.2 when the agent makes parallel calls to the same MCP tool.

This was supposedly fixed in #275675 (PR #275870 — using tool call ID instead of tool ID), but the bug persists. Issue #283154 also reported this but was closed for lack of repro info.

Steps to Reproduce

  1. Configure multiple MCP servers (e.g., mssql-mcp, postgres-mcp) via stdio
  2. In Agent mode, give a prompt that requires parallel calls to the same MCP tool
  3. Example prompt: "Compare journal entries schema between MSSQL and PostgreSQL"
  4. The agent attempts to call mcp_mssql-mcp_execute_sql multiple times in parallel (e.g., to fetch schema of two different tables simultaneously)
  5. First call succeeds, but subsequent parallel calls to the same tool fail with:
Failed to render content: ModelService: Cannot add model because it already exists!

Expected Behavior

All parallel MCP tool calls should succeed, since each call has a unique call ID.

Actual Behavior

Only the first parallel call to a given MCP tool succeeds. Additional parallel calls to the same MCP tool name fail with the ModelService error. The chat session becomes partially broken and may need to be restarted.

Additional Context

Related Issues

/cc Connor Peet (@connor4312)

Activity

  1. connor4312 commented on Feb 17, 2026

    @connor4312
    Member

    Also easy to repro with steering messages that cause list re-rendering

  2. added
    bug
    and removed on Feb 17, 2026
  3. cwebster-99 commented on Feb 18, 2026

    @cwebster-99
    Member

    I ran into this today with the fabric-rti-mcp

  4. jjkavalam commented on Feb 26, 2026

    @jjkavalam

    I too ran into this today. (If others are seeing same error you can put a 👍 on this comment)

  5. added
    unreleased
    on Mar 2, 2026
  6. xlacia commented on Mar 3, 2026

    @xlacia

    Too. The most awful thing is, what i only can do is stop the session and waste my token.

  7. RipTheNet commented on Mar 4, 2026

    @RipTheNet

    Just stumble upon the same issue when using VSCode for MAC. I'm running the latest version (as of today) of VSCode, hope this is resolved soon.

  8. added
    insiders-released
    and removed
    unreleased
    on Mar 4, 2026
  9. added
    verified
    on Mar 5, 2026
  10. locked and limited conversation to collaborators on Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugchat-toolsinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions