summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-15 00:47:31 +0000
committersoryu <soryu@soryu.co>2026-01-15 01:30:02 +0000
commitbe0b145d14bffe9a59d1483c372bc7d8864c4fbb (patch)
treeb44a637f19ecbe59c38ff7e0d32ad86ec18d26db
parent1e2a64efe65672cf13c08b6ee36d8273fd0ac937 (diff)
downloadsoryu-be0b145d14bffe9a59d1483c372bc7d8864c4fbb.tar.gz
soryu-be0b145d14bffe9a59d1483c372bc7d8864c4fbb.zip
fix: add missing contract_type field to CreateContractRequest
The CreateContractRequest struct requires a contract_type field. Set to "specification" for transcript analysis contracts since they follow the full Research -> Specify -> Plan -> Execute -> Review workflow. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
-rw-r--r--makima/src/server/handlers/contract_chat.rs1
-rw-r--r--makima/src/server/handlers/transcript_analysis.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/makima/src/server/handlers/contract_chat.rs b/makima/src/server/handlers/contract_chat.rs
index 557e27b..e2bd10e 100644
--- a/makima/src/server/handlers/contract_chat.rs
+++ b/makima/src/server/handlers/contract_chat.rs
@@ -2374,6 +2374,7 @@ async fn handle_contract_request(
let contract_req = crate::db::models::CreateContractRequest {
name: contract_name.clone(),
description: contract_description,
+ contract_type: Some("specification".to_string()),
initial_phase: Some("research".to_string()),
};
diff --git a/makima/src/server/handlers/transcript_analysis.rs b/makima/src/server/handlers/transcript_analysis.rs
index 1cb5506..2c38eea 100644
--- a/makima/src/server/handlers/transcript_analysis.rs
+++ b/makima/src/server/handlers/transcript_analysis.rs
@@ -274,6 +274,7 @@ pub async fn create_contract_from_analysis(
let contract_req = models::CreateContractRequest {
name: contract_name.clone(),
description: contract_description,
+ contract_type: Some("specification".to_string()),
initial_phase: Some("research".to_string()),
};