[Terminal Chat AI] Add run button to execute suggested commands inline #20957

Open
opened 2026-01-31 07:28:55 +00:00 by claunia · 1 comment
Owner

Originally created by @g0t4 on GitHub (Dec 7, 2023).

Description of the new feature/enhancement

Add support to run generated commands right inside the chat and show the output inline?

  • i.e. if I ask how to list markdown files, when the command is suggested I could click run (instead of copy) to list the files right inside the chat!
    • or use action mapped to keyboard shortcut to run last suggested command
  • command output would be available in subsequent chat context
    • so I could ask how to modify the foo.md file to replace bar with boo
    • verbose commands wouldn't work out well but that can be up to the end user to decide

TLDR, interleave chat with command execution.

Proposed technical implementation details (optional)

When commands are suggested the bubble could be a mini shell that would run the command. Could even allow for modifications before running. Then, show the output below, within the same bubble... once that runs further suggestions could be shown and/or the user could ask a follow up question.

Key details about profiles (i.e shell type/name) could be fed in as context to know what shells are available. Which would then allow suggesting/running commands in different shells/profiles.

Originally created by @g0t4 on GitHub (Dec 7, 2023). # Description of the new feature/enhancement Add support to run generated commands right inside the chat and show the output inline? - i.e. if I ask how to list markdown files, when the command is suggested I could click run (instead of copy) to list the files right inside the chat! - or use action mapped to keyboard shortcut to run last suggested command - command output would be available in subsequent chat context - so I could ask how to modify the `foo.md` file to replace `bar` with `boo` - verbose commands wouldn't work out well but that can be up to the end user to decide TLDR, **interleave chat with command execution**. # Proposed technical implementation details (optional) When commands are suggested the bubble could be a mini shell that would run the command. Could even allow for modifications before running. Then, show the output below, within the same bubble... once that runs further suggestions could be shown and/or the user could ask a follow up question. Key details about profiles (i.e shell type/name) could be fed in as context to know what shells are available. Which would then allow suggesting/running commands in different shells/profiles.
claunia added the Issue-FeatureNeeds-Tag-FixProduct-TerminalArea-Chat labels 2026-01-31 07:28:55 +00:00
Author
Owner

@mcclure commented on GitHub (Dec 9, 2023):

I like Windows Terminal, but adding Copilot/LLM integration would 100% convince me to stop using it.

@mcclure commented on GitHub (Dec 9, 2023): I like Windows Terminal, but adding Copilot/LLM integration would 100% convince me to stop using it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20957