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:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user