Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class AgenticSessionsViewPane extends ViewPane {
source: 'agentSessionsViewPane',
filter: sessionsFilter,
overrideStyles: this.getLocationBasedColors().listOverrideStyles,
disableHover: true,
useSimpleHover: true,
getHoverPosition: () => this.getSessionHoverPosition(),
trackActiveEditorSession: () => true,
collapseOlderSections: () => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface IAgentSessionsControlOptions extends IAgentSessionsSorterOption
readonly overrideStyles: IStyleOverride<IListStyles>;
readonly filter: IAgentSessionsFilter;
readonly source: string;
readonly disableHover?: boolean;
readonly useSimpleHover?: boolean;

getHoverPosition(): HoverPosition;
trackActiveEditorSession(): boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ interface IAgentSessionItemTemplate {
}

export interface IAgentSessionRendererOptions {
readonly disableHover?: boolean;
readonly useSimpleHover?: boolean;
getHoverPosition(): HoverPosition;
}

Expand Down Expand Up @@ -363,7 +363,9 @@ export class AgentSessionRenderer extends Disposable implements ICompressibleTre
}

private renderHover(session: ITreeNode<IAgentSession, FuzzyScore>, template: IAgentSessionItemTemplate): void {
if (this.options.disableHover) {
if (this.options.useSimpleHover) {
const title = renderAsPlaintext(new MarkdownString(session.element.label));
template.elementDisposable.add(this.hoverService.setupDelayedHover(template.element, { content: title, position: { hoverPosition: this.options.getHoverPosition() } }, { groupId: 'agent.sessions' }));
return;
}

Expand Down