diff options
| author | soryu <soryu@soryu.co> | 2026-01-26 19:34:44 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-26 19:34:44 +0000 |
| commit | f263d079d4f587066d8395c01b8581d391cfec73 (patch) | |
| tree | 7d1e2e52bf59439799e61d34d41b6796498acec9 /makima/src/daemon/ws | |
| parent | ccfcf753f67541b5fba8746f4f60d7498a54f44a (diff) | |
| download | soryu-f263d079d4f587066d8395c01b8581d391cfec73.tar.gz soryu-f263d079d4f587066d8395c01b8581d391cfec73.zip | |
Fix compilation errors and test failures
- Fix CompletionGate::parse_last() to correctly find the last gate by
finding the last start tag before each end tag
- Mark doctest example as text to avoid Rust compilation
- Update DaemonCommand tests to include required taskName field
- Fix depends_pattern regex to stop at closing parenthesis
- Update test_looks_like_task to reflect current behavior
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/src/daemon/ws')
| -rw-r--r-- | makima/src/daemon/ws/protocol.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/makima/src/daemon/ws/protocol.rs b/makima/src/daemon/ws/protocol.rs index e5da2f9..9d7035e 100644 --- a/makima/src/daemon/ws/protocol.rs +++ b/makima/src/daemon/ws/protocol.rs @@ -760,7 +760,7 @@ mod tests { #[test] fn test_daemon_command_deserialization() { - let json = r#"{"type":"spawnTask","taskId":"550e8400-e29b-41d4-a716-446655440000","plan":"Build the feature","repoUrl":"https://github.com/test/repo","baseBranch":"main","parentTaskId":null,"depth":0,"isOrchestrator":false}"#; + let json = r#"{"type":"spawnTask","taskId":"550e8400-e29b-41d4-a716-446655440000","taskName":"Build Feature","plan":"Build the feature","repoUrl":"https://github.com/test/repo","baseBranch":"main","parentTaskId":null,"depth":0,"isOrchestrator":false}"#; let cmd: DaemonCommand = serde_json::from_str(json).unwrap(); match cmd { DaemonCommand::SpawnTask { @@ -770,9 +770,11 @@ mod tests { parent_task_id, depth, is_orchestrator, + task_name, .. } => { assert_eq!(plan, "Build the feature"); + assert_eq!(task_name, "Build Feature"); assert_eq!(repo_url, Some("https://github.com/test/repo".to_string())); assert_eq!(base_branch, Some("main".to_string())); assert_eq!(parent_task_id, None); @@ -785,7 +787,7 @@ mod tests { #[test] fn test_orchestrator_spawn_deserialization() { - let json = r#"{"type":"spawnTask","taskId":"550e8400-e29b-41d4-a716-446655440000","plan":"Coordinate subtasks","repoUrl":"https://github.com/test/repo","baseBranch":"main","parentTaskId":null,"depth":0,"isOrchestrator":true}"#; + let json = r#"{"type":"spawnTask","taskId":"550e8400-e29b-41d4-a716-446655440000","taskName":"Coordinate Subtasks","plan":"Coordinate subtasks","repoUrl":"https://github.com/test/repo","baseBranch":"main","parentTaskId":null,"depth":0,"isOrchestrator":true}"#; let cmd: DaemonCommand = serde_json::from_str(json).unwrap(); match cmd { DaemonCommand::SpawnTask { |
