feat: Add comprehensive tests for CCW Loop System flow state

- Implemented loop control tasks in JSON format for testing.
- Created comprehensive test scripts for loop flow and standalone tests.
- Developed a shell script to automate the testing of the entire loop system flow, including mock endpoints and state transitions.
- Added error handling and execution history tests to ensure robustness.
- Established variable substitution and success condition evaluations in tests.
- Set up cleanup and workspace management for test environments.
This commit is contained in:
catlog22
2026-01-22 10:13:00 +08:00
parent d9f1d14d5e
commit 60eab98782
37 changed files with 12347 additions and 917 deletions

View File

@@ -130,8 +130,9 @@ async function initCsrfToken() {
/**
* Sync active CLI executions from server
* Called when view is opened to restore running execution state
* Note: Renamed from syncActiveExecutions to avoid conflict with cli-stream-viewer.js
*/
async function syncActiveExecutions() {
async function syncActiveExecutionsForManager() {
try {
var response = await fetch('/api/cli/active');
if (!response.ok) return;
@@ -1202,7 +1203,7 @@ async function renderCliManager() {
}
// 同步活动执行
syncActiveExecutions();
syncActiveExecutionsForManager();
}
// ========== Helper Functions ==========