Skip to content

BUG: Thinking Blocks not Working with Ollama #2030

@scriptgenerator64

Description

@scriptgenerator64
  • Disable all other plugins besides Copilot (required)
  • Log file generated via "Copilot: Create Log File" command or Settings -> Advanced -> Create Log File (required)
    copilot-log.md
  • Screenshot of note + Copilot chat pane + dev console added (optional)

Copilot version: 3.1.3
Model used: (ollama) gpt-oss:20b

(Bug reports missing the required items above will be closed)

Describe how to reproduce
Attempt to ask an ollama reasoning model (marked as reasoning in copilot) anything.

Expected behavior
Shows thinking blocks or just the final result with no thinking.

Screenshots
It instead gives the thinking block as a weird prefix to the output.
Image

Additional context
This has been an issue since at least 3.1.1, I elected to stay on 3.0.3 for the time being.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions