File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
extensions/positron-assistant/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -280,9 +280,10 @@ abstract class PositronAssistantParticipant implements IPositronAssistantPartici
280
280
return inChatPane && ( isEditMode || isAgentMode ) ;
281
281
// Only include the getTableSummary tool for Python sessions until supported in R
282
282
case PositronAssistantToolName . GetTableSummary :
283
- // TODO: Remove this restriction when the tool is supported in R https://github.com/posit-dev/positron/issues/8343
283
+ // TODO: Remove the python-specific restriction when the tool is supported in R https://github.com/posit-dev/positron/issues/8343
284
284
// The logic above with TOOL_TAG_REQUIRES_ACTIVE_SESSION will handle checking for active sessions once this is removed.
285
- return activeSessions . has ( 'python' ) ;
285
+ // We'll still want to check that variables are defined.
286
+ return activeSessions . has ( 'python' ) && hasVariables ;
286
287
// Only include the getPlot tool if there is a plot available.
287
288
case PositronAssistantToolName . GetPlot :
288
289
return positronContext . plots ?. hasPlots === true ;
You can’t perform that action at this time.
0 commit comments