Shell terminal WebSocket
GET /api/v1/projects/{projectId}/{agentType}/ws/{wid}/shell
GET
/api/v1/projects/{projectId}/{agentType}/ws/{wid}/shell
Upgrades to a WebSocket and bridges it to the worktree’s auxiliary bash-shell tmux session (backing the “Terminal” tab in the webapp). The session is lazily created on first connect and persists for the lifetime of the worktree. Binary frames carry raw PTY data; text frames carry JSON control messages (e.g. {“type”:“resize”,“cols”:80,“rows”:24}).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
string
Project ID
agentType
required
string
Agent type
wid
required
string
Worktree ID
Responses
Section titled “ Responses ”WebSocket upgrade
Bad Request
object
code
string
error
string
Not Found
object
code
string
error
string
Internal Server Error
object
code
string
error
string
Terminal proxy not configured
object
code
string
error
string