Skip to content

When using Shiny in Positron Assistant, the Python intepreter context is attached but the chat still asks the user to select R/Python #100

Description

@cindyytong

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:

  1. Python file attached to context
  2. 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.

Image Image

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

-->


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions