Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class AgenticSessionsViewPane extends ViewPane {
source: 'agentSessionsViewPane',
filter: sessionsFilter,
overrideStyles: this.getLocationBasedColors().listOverrideStyles,
disableHover: true,
getHoverPosition: () => this.getSessionHoverPosition(),
trackActiveEditorSession: () => true,
collapseOlderSections: () => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface IAgentSessionsControlOptions extends IAgentSessionsSorterOption
readonly overrideStyles: IStyleOverride<IListStyles>;
readonly filter: IAgentSessionsFilter;
readonly source: string;
readonly disableHover?: boolean;

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

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

Expand Down Expand Up @@ -364,6 +365,10 @@ export class AgentSessionRenderer extends Disposable implements ICompressibleTre
}

private renderHover(session: ITreeNode<IAgentSession, FuzzyScore>, template: IAgentSessionItemTemplate): void {
if (this.options.disableHover) {
return;
}

if (!isSessionInProgressStatus(session.element.status) && session.element.isRead()) {
return; // the hover is complex and large, for now limit it to in-progress sessions only
}
Expand Down
Loading