feat: complete acp-go-sdk integration with task state updates

- Use acp-go-sdk for all ACP communication in agentctl
- Mark agent as completed when Prompt() returns successfully
- Update task state to COMPLETED when agent completes
- Update task state to FAILED when agent fails and retries exhausted
- Enhanced E2E test to verify agent actually creates files
- E2E test now validates full flow: task creation -> agent work -> file creation -> task completion
This commit is contained in:
jcfs
2026-01-10 16:46:22 +00:00
parent 214b6ed2d8
commit 20f5f43fb3
143 changed files with 2750 additions and 296 deletions
+2 -2
View File
@@ -370,12 +370,12 @@ Kandev uses the **Agent Communication Protocol (ACP)** - an open protocol for co
The backend implements full ACP support with:
1. **Session Management** (`backend/internal/agent/acp/session.go`)
1. **Session Management** (`apps/backend/internal/agent/acp/session.go`)
- Create sessions with `session/new`
- Send prompts with `session/prompt`
- Resume sessions with stored session IDs
2. **JSON-RPC Client** (`backend/pkg/acp/jsonrpc/client.go`)
2. **JSON-RPC Client** (`apps/backend/pkg/acp/jsonrpc/client.go`)
- Handles responses to client requests
- Handles notifications from agent (`session/update`)
- Handles requests from agent (`session/request_permission`)