posit-dev / posit-dev/shiny-vscode
When using Shiny in Positron Assistant, the Python intepreter context is attached but the chat still asks the user to select R/Python
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37
- Forks
- 12
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
System details:
Positron and OS details:
Positron Version: 2025.11.0 (system setup) build 83
Code - OSS Version: 1.104.0
Commit: d4e9554738999a8541e4a4e04f87f60762971354
Date: 2025-10-17T11:56:45.677Z
Electron: 37.3.1
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Windows_NT x64 10.0.26200
Session details:
Observed with both Claude and Bedrock by @cindyytong and @andrie
Describe the issue:
Information about the preferred language (Python) is attached to chat context but Shiny assistant still asks for the user to select between R and Python
Steps to reproduce the issue:
When a user has the following:
- Python file attached to context
- Python environment selected and attached to context
Opens Positron Assistant and makes the following query
@shiny is the app using shiny express or shiny core?
The user still gets prompted to select whether or not they want R or Python.
Expected or desired behavior:
When there is a clear language being used i.e. interpreter details or file type attached as content, the assistant should respect this
Were there any error messages in the UI, Output panel, or Developer Tools console?
We have the logs and can provide
Confirmed that the logs show that the .py file was attached as context
{"text":"\n<context>\nchat_app.py:\n```\
```
Error message
```
{\"message\":\"The value at toolConfig.tools.38.toolSpec.inputSchema.json.type must be one of the following: object.\"}","isRetryable":false,"data":{"message":"The value at toolConfig.tools.38.toolSpec.inputSchema.json.type must be one of the following: object."}}
```
<!--
- Open the Developer Tools console by running the `Developer: Toggle Developer Tools` command from the Command Palette
- Open the relevant Output Channel logs by utilizing this guide: https://positron.posit.co/troubleshooting.html
-->
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Positron Assistant and @shiny context-handling entry points, using the reproduction with a Python file and selected Python environment. Review the logs showing chat_app.py was attached and the toolConfig schema error; done means a clear Python context no longer prompts for R or Python and the reported error is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100