Repository navigation
Let agents use a real terminal in the thread that I can watch and type into #29136
iput-object
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
Refined cut that matches this idea, with Open Terminal from the command row, agent-owned chrome, and tabs/sections grouped by thread / lineage: → #30557 Asking maintainers there for Phase A (ACP/Devin first) vs waiting for full provider PTYs as in this thread. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Right now terminals in T3 are split in two. The thread terminal (Ctrl+J) is mine. The agent runs its commands somewhere else: tool cards for Codex/Claude, and plain child processes for ACP agents (
packages/provider-acp/src/server/clientTerminals.ts). So I can't watch the agent's commands live in a real terminal, and I can't step in when it gets stuck.What I'd like: the agent gets its own tab in the terminal drawer, a real pty like the ones I already open. It runs its commands there, I see them as they happen, and I can hit Ctrl+C or type myself whenever. The shell stays alive across turns, so
cd, env vars, an activated venv, an ssh connection, a psql prompt or a running dev server all stick around instead of every command starting from zero. Basically one long-lived session the agent and I both use.Where this would have saved me: the agent starts a dev server, the command never "finishes", and the turn just sits there (same thing as #28067). With a shared terminal I'd see it right away and deal with it.
Rough shape, from poking around the code:
apps/server/src/terminal/Manager.tsalready does per-thread ptys, persisted history and multiple subscribers, so most of the plumbing existsMy workaround today is telling the agent to drive a tmux session with
send-keys/capture-paneand attaching to it from the T3 terminal. It works but it's clunky, and I have to set it up every time.Related: #26 (add terminal output to chat), #25518 (live view of external sessions), #28067.
All reactions