Commit 264017d
committed
fix: Prevent terminal focus theft on paste after command execution
Resolves #3199
This commit addresses an issue where pasting text into the chat input field would sometimes result in the text being pasted into the VS Code terminal instead.
The root cause was identified as the `terminal.show()` method being called without the `preserveFocus` option when the Roo agent executed a command. This default behavior caused the terminal to gain keyboard focus.
The fix involves modifying the call in `src/core/tools/executeCommandTool.ts` to `terminal.terminal.show(true)`. This ensures that while the terminal is made visible, keyboard focus remains on the previously active element (e.g., the chat input), preventing the misdirection of paste actions.1 parent 0725b32 commit 264017d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments