Skip to content

There's a naming collision: both ChatContextKeys.chatSessionType (line 65) and ChatContextKeys.agentSessionType (line 103) use the same context key string 'chatSessionType'. This creates ambiguity and can lead to unexpected behavior. The agentSessionType export should use a different key string, such as 'agentSessionType'. #288692

@bpasero

Description

@bpasero

There's a naming collision: both ChatContextKeys.chatSessionType (line 65) and ChatContextKeys.agentSessionType (line 103) use the same context key string 'chatSessionType'. This creates ambiguity and can lead to unexpected behavior. The agentSessionType export should use a different key string, such as 'agentSessionType'.

	export const chatSessionType = new RawContextKey<string>('sessionType', '', { type: 'string', description: localize('chatSessionType', "The type of the current chat session.") });

Originally posted by @Copilot in #288181 (comment)

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priority

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions