Commands that need sudo access break the UI and make the agent hang #1260

Closed
opened 2026-02-16 17:30:11 -05:00 by yindo · 5 comments
Owner

Originally created by @arthur404dev on GitHub (Aug 12, 2025).

Originally assigned to: @thdxr on GitHub.

Tool uses that need sudo access end up not receiving the input and break the UI / hang the process.

Image
Originally created by @arthur404dev on GitHub (Aug 12, 2025). Originally assigned to: @thdxr on GitHub. Tool uses that need sudo access end up not receiving the input and break the UI / hang the process. <img width="692" height="169" alt="Image" src="https://github.com/user-attachments/assets/6ceabe56-ac00-4edf-ab0a-13595383dd89" />
yindo closed this issue 2026-02-16 17:30:11 -05:00
Author
Owner

@CodingPassionYT commented on GitHub (Aug 12, 2025):

Same here

@CodingPassionYT commented on GitHub (Aug 12, 2025): Same here
Author
Owner

@FringeDweller commented on GitHub (Aug 13, 2025):

Same here, Debian / Kitty

@FringeDweller commented on GitHub (Aug 13, 2025): Same here, Debian / Kitty
Author
Owner

@samholmes commented on GitHub (Aug 26, 2025):

https://github.com/sst/opencode/issues/2268#issue-3357256017

If git rebase -i is run by the agent, then the command is run interactively and halts the agent. How about we allow the user to focus into commands and interact with them? This way an interactive command can be intervened by the proompter.

Eventually, opencode could just give the agent tools to interact with CLI that was run, but for now this could be useful until that tool is ship to prod and we inch further to AGI and cool coconuts on the beach.

@samholmes commented on GitHub (Aug 26, 2025): https://github.com/sst/opencode/issues/2268#issue-3357256017 > If `git rebase -i` is run by the agent, then the command is run interactively and halts the agent. How about we allow the user to focus into commands and interact with them? This way an interactive command can be intervened by the proompter. > > Eventually, opencode could just give the agent tools to interact with CLI that was run, but for now this could be useful until that tool is ship to prod and we inch further to AGI and cool coconuts on the beach.
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Author
Owner

@ParticleRift commented on GitHub (Jan 12, 2026):

Tool uses that need sudo access end up not receiving the input and break the UI / hang the process.
Image

easy fix, just tell the agent your sudo password in your prompt

@ParticleRift commented on GitHub (Jan 12, 2026): > Tool uses that need sudo access end up not receiving the input and break the UI / hang the process. > <img alt="Image" width="692" height="169" src="https://private-user-images.githubusercontent.com/59490008/476897000-6ceabe56-ac00-4edf-ab0a-13595383dd89.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjgyODA0MzIsIm5iZiI6MTc2ODI4MDEzMiwicGF0aCI6Ii81OTQ5MDAwOC80NzY4OTcwMDAtNmNlYWJlNTYtYWMwMC00ZWRmLWFiMGEtMTM1OTUzODNkZDg5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTEzVDA0NTUzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJlNzlkNzFkZWI0NjQwZWUyYzljNzM5N2UxY2FjMjA3M2VmNzE4OTRlNjdiM2E4ZmFmM2FjM2FhZTdhNWU3NWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ixWyoRzpf8ae1OvSkqMGv36ExOhzPYt0RzBegM8ggMQ"> easy fix, just tell the agent your sudo password in your prompt
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1260