agent sessions - adopt new icon to forward (#278330)

This commit is contained in:
Benjamin Pasero
2025-11-19 12:51:09 +01:00
committed by GitHub
parent 6ff6f086f7
commit 614b50dc15
2 changed files with 22 additions and 18 deletions

View File

@@ -130,7 +130,7 @@ export class ChatContinueInSessionActionItem extends ActionWidgetDropdownActionV
}
protected override renderLabel(element: HTMLElement): IDisposable | null {
const icon = this.contextKeyService.contextMatchesRules(ChatContextKeys.remoteJobCreating) ? Codicon.sync : Codicon.indent;
const icon = this.contextKeyService.contextMatchesRules(ChatContextKeys.remoteJobCreating) ? Codicon.sync : Codicon.forward;
element.classList.add(...ThemeIcon.asClassNameArray(icon));
return super.renderLabel(element);

View File

@@ -360,6 +360,7 @@ class AgentSessionsCache {
return [];
}
try {
const cached = JSON.parse(sessionsCache) as ISerializedAgentSessionViewModel[];
return cached.map(session => ({
providerType: session.providerType,
@@ -382,6 +383,9 @@ class AgentSessionsCache {
statistics: session.statistics,
}));
} catch {
return []; // invalid data in storage, fallback to empty sessions list
}
}
}