Copilot Chat v0.40.2026031601: Session & Cache Fixes

Copilot Chat v0.40.2026031601 fixes session logging initialization, improves Anthropic cache handling, and adds context guardrails for agents.

Copilot Chat v0.40.2026031601: Session & Cache Fixes

TL;DR

  • Fixed sessionLogDir not being set for new chats
  • Improved cache breakpoint handling for Anthropic Messages API
  • Added context management guardrails for Anthropic agents

Fixed

  • sessionLogDir not set for new chats — Session logging directory now properly initialized when creating new chat sessions.
  • Message-level cache breakpoints eviction — Stopped incorrectly evicting cache breakpoints when using Anthropic Messages API.

New

  • Context management prompt guardrails — Added safety guardrails for Anthropic agents to manage context more reliably.
  • View image tool setting — New configuration option for the view image tool in chat.
  • Compaction summaries tracking — Now tracks compaction summaries as an array with detailed metrics metadata for better observability.

Improved

  • Agent Debug display — Shows correct status and enriched runSubagent tool naming for better debugging visibility.
  • Image resizing — View image tool now uses resizeImage from core for consistency.
  • Dependencies — Updated undici from 7.22.0 to 7.24.0.

Update via VS Code extensions marketplace or run: code --install-extension GitHub.Copilot-Chat

Source: Copilot Chat