You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnxerrors.Errorf("failed to decode server status: %w", err)
153
+
}
154
+
155
+
ifstatus.Backend=="acp" {
156
+
returnxerrors.New("attach is not supported in ACP mode. The server is running with --experimental-acp which uses JSON-RPC instead of terminal emulation.")
157
+
}
158
+
159
+
returnnil
160
+
}
161
+
132
162
funcrunAttach(remoteUrlstring) error {
163
+
// Check if server is running in ACP mode (attach not supported)
// localhost:3284 is the default origin when you open the chat interface in your browser. localhost:3000 and 3001 are used during development.
229
272
{FlagAllowedOrigins, "o", []string{"http://localhost:3284", "http://localhost:3000", "http://localhost:3001"}, "HTTP allowed origins. Use '*' for all, comma-separated list via flag, space-separated list via AGENTAPI_ALLOWED_ORIGINS env var", "stringSlice"},
230
273
{FlagInitialPrompt, "I", "", "Initial prompt for the agent. Recommended only if the agent doesn't support initial prompt in interaction mode. Will be read from stdin if piped (e.g., echo 'prompt' | agentapi server -- my-agent)", "string"},
274
+
{FlagExperimentalACP, "", false, "Use experimental ACP transport instead of PTY", "bool"},
Copy file name to clipboardExpand all lines: lib/httpapi/models.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ type StatusResponse struct {
38
38
Bodystruct {
39
39
StatusAgentStatus`json:"status" doc:"Current agent status. 'running' means that the agent is processing a message, 'stable' means that the agent is idle and waiting for input."`
40
40
AgentType mf.AgentType`json:"agent_type" doc:"Type of the agent being used by the server."`
41
+
Backendstring`json:"backend" doc:"Backend transport being used ('acp' or 'pty')."`
0 commit comments