mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 05:28:19 -05:00
context key fix
This commit is contained in:
@@ -6311,7 +6311,7 @@
|
||||
"chat/input/editing/sessionTitleToolbar": [
|
||||
{
|
||||
"command": "github.copilot.sessions.refreshChanges",
|
||||
"when": "chatSessionType == copilotcli && isSessionsWindow && !sessions.isAgentHostSession",
|
||||
"when": "sessionType == copilotcli && isSessionsWindow && !sessions.isAgentHostSession",
|
||||
"group": "9_refresh@1"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -44,7 +44,7 @@ Decoupling these allows copilot sessions from different providers (local CLI, re
|
||||
|
||||
### How each ID is used
|
||||
|
||||
- **`ISession.sessionType`** — The logical session type visible to the sessions framework. Controls session-type pickers, context keys (`activeSessionType`), and behavioral gating (e.g. `isActiveSessionBackgroundProvider`). Copilot agents share `copilotcli` so they behave consistently with local copilot sessions.
|
||||
- **`ISession.sessionType`** — The logical session type visible to the sessions framework. Controls session-type pickers, context keys (`sessionType`), and behavioral gating (e.g. `isActiveSessionBackgroundProvider`). Copilot agents share `copilotcli` so they behave consistently with local copilot sessions.
|
||||
|
||||
- **`resource.scheme`** — The URI scheme of `ISession.resource` (e.g. `remote-myhost__3000-copilot:///abc123`). Routes `registerChatSessionContentProvider` calls to the correct `AgentHostSessionHandler` for each host. The provider's `getModels` filters available models by `session.resource.scheme` (not `session.sessionType`).
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ export class BrowserViewWorkbenchService extends Disposable implements IBrowserV
|
||||
ContextKeyExpr.and(
|
||||
ContextKeyExpr.has(`config.${AgentHostChatToolsEnabledSettingId}`),
|
||||
ContextKeyExpr.or(
|
||||
ContextKeyExpr.equals('activeSessionType', localChatSessionType),
|
||||
ContextKeyExpr.equals('sessionType', localChatSessionType),
|
||||
ContextKeyExpr.equals('sessions.isAgentHostSession', true),
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user