yao/agent/sandbox
Max bec8d9d426 Fix SystemPrompt passing and Claude CLI stream-json parsing
- Fix missing SystemPrompt field in sandbox executor options conversion
  (was causing Claude CLI to be skipped even when prompts were configured)
- Rewrite parseStream to handle Claude CLI stream-json output format:
  - system: initialization message
  - assistant: message with content array (text, tool_use)
  - result: final result with verification string
- Add comprehensive E2E tests via caller for sandbox integration:
  - TestSandboxE2E_ClaudeCLIExecution: verify command execution
  - TestSandboxE2E_FileCreation: verify file operations
  - TestSandboxE2E_HookOnlyMode: verify Claude CLI skip logic
  - TestSandboxE2E_StreamingResponse: verify streaming works
- Add real_e2e_test.go for direct Claude CLI execution testing

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 15:07:40 +08:00
..
claude Fix SystemPrompt passing and Claude CLI stream-json parsing 2026-01-31 15:07:40 +08:00
cursor Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
DESIGN.md Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
executor.go Fix SystemPrompt passing and Claude CLI stream-json parsing 2026-01-31 15:07:40 +08:00
executor_test.go Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
integration_test.go Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00
PLAN.md Implement MCP Configuration and Tool Integration for Sandbox 2026-01-30 19:57:31 +08:00
types.go Update Claude CLI integration with stream-json input format 2026-01-31 13:29:31 +08:00
types_test.go Enhance Sandbox Integration and CI Workflow for AI Tests 2026-01-30 17:41:06 +08:00