#18098·theia

Opening the chat session summary regenerates it instead of opening the existing one

Author: safisaCreated Sep 29, 2026Updated Sep 29, 2026

Bug Description:

The chat view's "Open summary" toolbar button re-runs the summary agent on every click instead of opening the existing summary. AI_CHAT_OPEN_SUMMARY_FOR_CURRENT_SESSION calls summarizeActiveSession(), which calls TaskContextService.summarize() with the default override = true, so the existing summary is never reused.

As a result, opening is slow (a full LLM round-trip), edits to the summary file are overwritten, and a duplicate summary entry is added for the session each time.

Steps to Reproduce:

  1. Chat with an agent, then click "Summarize Current Session" in the chat toolbar.
  2. Click "Open Current Session Summary".
  3. The "Summarize: ..." progress shows again and the file opens only after the agent finishes, with regenerated content.

Additional Information

  • Operating System: macOS
  • Theia Version: master (4f24ee401)