aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/claude/index.ts
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-03-04 21:36:32 -0800
committerbndw <ben@bdw.to>2026-03-04 21:36:32 -0800
commit73d2680b83ccbdbd8dfec2d319533e98b379b830 (patch)
tree193eaf5157edcf12d06dde85fb44efaf3aae2004 /src/main/claude/index.ts
parentb6405dd6a4ba65fc5dc6746db7be7be7d0bb29f3 (diff)
feat: Thread optional `phase` param into `db/sessions.ts::cre… (+7 more)
- ✅ Thread optional `phase` param into `db/sessions.ts::createSession()` - ✅ Thread optional `phase` param into `ipc/handlers.ts` sessions:create handler - ✅ Thread optional `phase` param into `preload.ts` createSession API - ✅ Update Plan phase system prompt to gracefully handle missing research.md - ✅ Update Implement phase system prompt to gracefully handle missing plan.md - ✅ Create `renderer/src/components/NewSessionModal.tsx` - ✅ Update `App.tsx`: add modal state, split handler, add modal JSX - ✅ Add modal CSS to `globals.css`
Diffstat (limited to 'src/main/claude/index.ts')
-rw-r--r--src/main/claude/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/claude/index.ts b/src/main/claude/index.ts
index 8cf512c..9139f17 100644
--- a/src/main/claude/index.ts
+++ b/src/main/claude/index.ts
@@ -48,8 +48,9 @@ export async function sendMessage({
48 // Load any custom system prompt for this phase (null → use default) 48 // Load any custom system prompt for this phase (null → use default)
49 const customSystemPrompt = getSetting(`systemPrompt.${session.phase}`) ?? undefined; 49 const customSystemPrompt = getSetting(`systemPrompt.${session.phase}`) ?? undefined;
50 50
51 // Load global model override (empty string or null → let SDK use its default) 51 // Phase-specific model override takes precedence; falls back to global default.
52 const configuredModel = getSetting("model") || undefined; 52 const configuredModel =
53 getSetting(`model.${session.phase}`) || getSetting("model") || undefined;
53 54
54 // Load MCP servers config (JSON string → object, or undefined if not set) 55 // Load MCP servers config (JSON string → object, or undefined if not set)
55 const mcpServersJson = getSetting("mcpServers"); 56 const mcpServersJson = getSetting("mcpServers");