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,
showIsolationIcon: true,
enableApprovalRow: true,
getHoverPosition: () => this.getSessionHoverPosition(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface IAgentSessionsControlOptions extends IAgentSessionsSorterOption
readonly overrideStyles: IStyleOverride<IListStyles>;
readonly filter: IAgentSessionsFilter;
readonly source: string;
readonly disableHover?: boolean;
readonly useSimpleHover?: boolean;
readonly showIsolationIcon?: boolean;
readonly enableApprovalRow?: boolean;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ interface IAgentSessionItemTemplate {
}

export interface IAgentSessionRendererOptions {
readonly disableHover?: boolean;
readonly useSimpleHover?: boolean;
readonly showIsolationIcon?: boolean;
getHoverPosition(): HoverPosition;
}
Expand Down Expand Up @@ -402,7 +402,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
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function wrapAsTreeNode<T>(element: T): ITreeNode<T, FuzzyScore> {
}

const rendererOptions: IAgentSessionRendererOptions = {
disableHover: true,
useSimpleHover: true,
getHoverPosition: () => HoverPosition.BELOW,
};

Expand Down
Loading