When running interactive shell command via tool, the command output is stuck in t he opencode text input field #1566

Closed
opened 2026-02-16 17:31:35 -05:00 by yindo · 3 comments
Owner

Originally created by @tsah on GitHub (Sep 2, 2025).

linux/ghostty/tmux/opencode_v0.6.3:

Scenario:

  1. opencode uses shell command tool to run something interactive (in my case sudo command but I'm sure I can find other examples)
  2. opencode text input field now shows the interactive output - "Place your right index finger on the fingerprint reader"
  3. I confirm my fingerprint
  4. tool execution completes
  5. text still remains in input field
  6. it's only gone once I "type over it"
Originally created by @tsah on GitHub (Sep 2, 2025). linux/ghostty/tmux/opencode_v0.6.3: Scenario: 1. opencode uses shell command tool to run something interactive (in my case sudo command but I'm sure I can find other examples) 2. opencode text input field now shows the interactive output - "Place your right index finger on the fingerprint reader" 3. I confirm my fingerprint 4. tool execution completes 5. text still remains in input field 6. it's only gone once I "type over it"
yindo closed this issue 2026-02-16 17:31:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 2, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2125: Scrolling with weird text auto copies it to cursor input - similar issue with text appearing in the input field unexpectedly
  • #2256: Bug [Visual]: TUI populated with gibberish upon copying - related TUI display issues with text appearing where it shouldn't
  • #2268: User prompt for Interactive Commands - specifically discusses issues with interactive commands (like git rebase -i) and the need for better handling
  • #2337: Could't interrupt "! pnpm dev" like command - related to issues with interactive command handling

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 2, 2025): This issue might be a duplicate of existing issues. Please check: - #2125: Scrolling with weird text auto copies it to cursor input - similar issue with text appearing in the input field unexpectedly - #2256: Bug [Visual]: TUI populated with gibberish upon copying - related TUI display issues with text appearing where it shouldn't - #2268: User prompt for Interactive Commands - specifically discusses issues with interactive commands (like git rebase -i) and the need for better handling - #2337: Could't interrupt "! pnpm dev" like command - related to issues with interactive command handling Feel free to ignore if none of these address your specific case.
Author
Owner

@tsah commented on GitHub (Sep 2, 2025):

seems related, possible duplicate of https://github.com/sst/opencode/issues/1852

@tsah commented on GitHub (Sep 2, 2025): seems related, possible duplicate of https://github.com/sst/opencode/issues/1852
Author
Owner

@rekram1-node commented on GitHub (Sep 2, 2025):

yeah we need proper interactive support going to close as duplicate of 1852

@rekram1-node commented on GitHub (Sep 2, 2025): yeah we need proper interactive support going to close as duplicate of 1852
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1566