Skip to content

Comments

Fix cloud session title not applied when opening in chat panel#296937

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-session-titles-discrepancy
Draft

Fix cloud session title not applied when opening in chat panel#296937
Copilot wants to merge 2 commits intomainfrom
copilot/fix-session-titles-discrepancy

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

Cloud sessions opened from the Agent Sessions list show the wrong title (e.g., "Initial Implementation" instead of the descriptive title). The title.preferred option was applied in the editor path (ChatEditor.setInput) but ignored in the panel path (chatView.loadSession), which is the default target.

Added the missing setChatSessionTitle call after loadSession in ChatWidgetService.openSession for the panel path, gated to non-local sessions — mirroring the existing editor path logic.

Original prompt

This section details on the original issue you should resolve

<issue_title>Different cloud session titles in Agent Sessions vs chat tab</issue_title>
<issue_description>

Ref https://github.com/microsoft/vscode-internalbacklog/issues/6527, perhaps similar to https://github.com/microsoft/vscode-internalbacklog/issues/6026

  • code-insiders --transient
  • Setup Copilot
  • Review my sessions from the Agent Sessions list
  • Click on a session Add cloud storage service example with... from Agent Sessions list
    • Image
  • ❓ The session title and prompt in the now open chat panel tab is Initial Implementation, rather than Add cloud storage service example with...
    • Image
  • ❓ I explore other cloud sessions, and I run into the same, where the session name in the Agent Sessions list is more descriptive, but the content (prompt and title) in the chat panel just ends up being Initial Implementation

I wonder if this could be a consequence of #286335 (cc @bpasero) </issue_description>

Comments on the Issue (you are @copilot in this section)

@bamurtaugh I also seem to experience this to some extent for background agents:
  • Kick off a background agent task asking the agent to add a theme toggle to my app, let it run
  • At some point, the task title in the Agent Sessions view became Start implementation (or maybe it was the whole time?)
    • Image
  • When clicking on the background session, the prompt is formatted with an extra Start implementation prepended (that I hadn't written)

Duplicates:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

When opening a cloud/remote session from the Agent Sessions list in the
chat panel, the preferred title from options was not being applied to
the ChatModel. The title.preferred option was only handled in the editor
path (ChatEditor.setInput), but not in the panel path (chatView.loadSession).

This caused cloud sessions to display the first request's text as the
title (e.g., "Initial Implementation") instead of the descriptive title
from the Agent Sessions list (e.g., "Add cloud storage service...").

Mirror the editor path's behavior by calling setChatSessionTitle with
the preferred title after the panel loads the session, for non-local
sessions only.

Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix different cloud session titles in Agent Sessions Fix cloud session title not applied when opening in chat panel Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different cloud session titles in Agent Sessions vs chat tab

2 participants