feat(tool): add interactive terminal tool with vscode auto-attach - #41449
feat(tool): add interactive terminal tool with vscode auto-attach#41449Albertban wants to merge 5 commits into
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Related PR Found:
Why it's related:
This appears to be an enhancement/alternative approach to the existing terminal tool work in #23794, not a true duplicate, but they are closely related features addressing the same problem space. |
|
This is the currently open implementation of an interactive erminal tool for the agent (the earlier #23794 and its rebased successor #41554 are both closed). Scope of this PR (5 commits):
If maintainers prefer folding the tool part into another design, happy to adjust; the VS Code auto-attach piece is the part we'd like to keep either way. Thanks for the review. |
440c7a2 to
094098b
Compare
Issue for this PR
Closes #
Type of change
What does this PR do?
Adds a
terminaltool to opencode so the agent can open and drive a real interactive PTY (open/read/input/close), and adds VS Code extension support that auto-attaches those sessions into real VS Code terminals via a Pseudoterminal bridge.Differs from the existing open PR #23794 on the same area by:
bashtool.powershell/cmd/bash, defaulting to PowerShell on Windows).\n->\r) — before this, model-sent\ngot stuck in PowerShell's continuation prompt and keystrokes appeared lost.How did you verify your code works?
bun typecheckpasses inpackages/opencode;tsc --noEmitpasses insdks/vscode.Screenshots / recordings
N/A (no UI change beyond the auto-attached terminal).
Checklist