positron icon indicating copy to clipboard operation
positron copied to clipboard

Assistant: Support the insert notebook cells tool

Open seeM opened this issue 8 months ago • 2 comments

The insert notebook cells tool was recently added to the IDE but is not yet hooked up to the Assistant chat participants.

It should be as simple as not filtering the tool out in the assistant participant implementation.

Note that this tool should only be available in inline chat in a notebook, and possibly in the chat pane in edit mode.

seeM avatar Apr 24 '25 12:04 seeM

Related to #7419

juliasilge avatar Apr 30 '25 20:04 juliasilge

After taking a closer look at insertNotebookCellsTool.ts it seems to be a work in progress:

  • The tool is not registered upstream yet.
  • It doesn't actually seem to insert notebook cells yet.
  • EditToolRawParams and EditToolParams define a code attribute but EditToolData defines cells.
  • I can't find this file on Code OSS main anymore.

I vote to defer this to post RC for now.

seeM avatar May 20 '25 12:05 seeM

This might be bundled in the copilot chat extension TODO - determine feasibility and effort

cindyytong avatar Nov 03 '25 15:11 cindyytong

@nstrayer pr includes a custom approach on our notebook instance. confirm this is addressed with pr

cindyytong avatar Nov 06 '25 19:11 cindyytong

Verified Fixed

Positron Version(s) : 2025.12.0-64
OS Version          : OSX

Test scenario(s)

Settings:

{
    "files.associations": {
        "renv.lock": "json"
    },
    "positron.assistant.notebookMode.enable": true,
    "positron.assistant.alwaysIncludeCopilotTools": true,
    "positron.assistant.enable": true,
    "positron.assistant.enabledProviders": [
        "amazon-bedrock"
    ],
}

In Agent mode. Was able to add a cell to the end of a notebook with a Gaussian distribution.

Link(s) to TestRail test cases run or created:

testlabauto avatar Nov 13 '25 17:11 testlabauto