{renv} console prompts for installing packages interrupt AI agent

Open
#158 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
r

Research direction

Start by reproducing the reported install.packages("mirai") prompt in a renv project and check how Posit Assistant handles interactive console input. The issue gives no source files or tests to start from, so trace the console handling entry point and identify a way to alert the user when input is required. Done means the user can tell that the process is waiting for a response.

Written by the indexing model from the issue text.

Description

If the agent requires to install a package in a renv project, console outputs this:

> install.packages("mirai")
- Querying repositories for available source packages ... Done!
The following package(s) will be installed:
- mirai    [2.7.4]
- nanonext [1.10.4]
These packages will be installed into "~/Documents/Inversión Subdere/inversion_db/renv/library/macos/R-4.6/x86_64-apple-darwin20".

Do you want to proceed? [Y/n]: 

In this case, Posit Assistant keeps waiting for user input in console, but does not alert the user that they have to answer, and if the console is not visible it would be impossible for the user to know if they are waiting for a slow install or something else. It seems the interactive console user prompt Do you want to proceed? [Y/n]: is not visible to the IA, or maybe related to console hijacking by said kind of user input.

Dominant language
No language data
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/assistant-feedback

All issues in posit-dev/assistant-feedback

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.