-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[tui][core] ! commands passthrough to shell for execution #2471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
All contributors have signed the CLA ✍️ ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex Review: Here are some suggestions.
Reply with @codex fix comments
to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request that is ready for review, or mark a draft as ready for review. You can also ask for a review by commenting "@codex review".
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
We need to make sure cancellation works, particularly ctr-c. Right now it doesn't actually cancel the command. If possible, we should show the command we just ran + any output and delineate it as a user command instead of using the shortening UI we do for the model. Otherwise nice work! |
This also doesn't support windows, which isn't necessarily a blocker but we might need to look at. |
Happy to send a patch with both! Wanted to get something out to get buy-in first. Thanks for the prompt feedback. |
This is great! Would be also fantastic to have a way to run background commands like with Claude Code and have the output continuously attached to any new messages.
Here is also a good description of the feature: sst/opencode#1970 |
7318b7e
to
31a20a2
Compare
I have read the CLA Document and I hereby sign the CLA |
Alright both those things should work. Also, the Tui still remains like the "frontend" and forwards the request to the "core". This is in line with the existing archiecture. |
Summary
Notes
Review
Follow-up (outside this PR scope)
|
@codex review in depth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex Review: Here are some suggestions.
Reply with @codex fix comments
to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
Seems worth addressing the codex review notes above ^ |
18d2af7
to
fec03bc
Compare
Fixed. |
@codex review in depth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex Review: Here are some suggestions.
Reply with @codex fix comments
to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
771ae55
to
8aaf9f0
Compare
All fixed! |
8aaf9f0
to
1f4d16f
Compare
Summary
Adds “bang” command passthrough in the TUI: any input starting with ! (e.g. !ls, !cat README.md) runs in the user’s shell and the output is rendered in conversation history.
Rationale
User Experience
Behavior Details
child process.
Implementation
Notes / Limitations