You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate LLM tools and remove Positron Assistant (#14718)
Fixes#14638
### Summary
As part of reverting to Copilot Chat, the Positron Assistant extension
is no longer needed. This PR removes the `positron-assistant` extension
and migrates the pieces Copilot Chat still relies on into Positron core,
so core can supply Positron-specific context (runtime sessions,
variables, code execution) to Copilot Chat through the Positron API.
- **Removes** the `positron-assistant` extension -- participants, tools,
prompt rendering, provider configuration/migration, and its tests --
along with its entries in `product.json` and the build config
(`gulpfile.extensions.ts`, `dirs.ts`, `.vscode-test.js`).
- **Migrates to core** under
`src/vs/workbench/contrib/positronAssistant/`: the prompt template
engine and renderer, the chat prompt templates, the Positron assistant
tools, and the execute-code observer.
- **Extends the Positron API** with the assistant's LLM tools and a tool
filter (`positronToolFilter.ts`), wired through `mainThreadAiFeatures` /
`extHostAiFeatures`, so Copilot Chat consumes Positron context via the
public API rather than a bundled extension.
- **Updates Copilot Chat** (`extensions/copilot/`) to render the
Positron assistant prompt and register the migrated tools through the
Positron API.
### Release Notes
#### New Features
- Positron assistant context (runtime sessions, variables, and code
execution) is now provided to Copilot Chat through Positron core instead
of a separate extension (#14638)
#### Bug Fixes
- N/A
### Validation Steps
@:assistant @:posit-assistant
1. Open Copilot Chat and start a Python or R session.
2. Ask a question that requires Positron context (e.g. "what variables
are in my session?" or "run this code and explain the output").
3. Verify the assistant sees the active session, can list variables, and
can execute code in the console.
4. Confirm the `positron-assistant` extension no longer appears in the
Extensions view.
0 commit comments