fix: Switch auto-spawn from discuss to refine agent, surface in UI
The auto-spawned agent on initiative creation was using discuss mode (Q&A) when it should use refine mode (expand content). Now: - Description seeds root page as tiptap content (split on double newlines) - Spawns refine agent with the populated page in inputContext - getActiveRefineAgent broadened to also surface discuss agents (for CLI-spawned discuss agents) - RefineAgentPanel shows mode-appropriate label for discuss vs refine
This commit is contained in:
@@ -85,7 +85,7 @@ Each procedure uses `require*Repository(ctx)` helpers that throw `TRPCError(INTE
|
||||
### Initiatives
|
||||
| Procedure | Type | Description |
|
||||
|-----------|------|-------------|
|
||||
| createInitiative | mutation | Create with optional branch/projectIds/description, auto-creates root page; if description provided, auto-spawns discuss agent |
|
||||
| createInitiative | mutation | Create with optional branch/projectIds/description, auto-creates root page (seeded with description); if description provided, auto-spawns refine agent |
|
||||
| listInitiatives | query | Filter by status; returns `activity` (state, activePhase, phase counts) computed from phases |
|
||||
| getInitiative | query | With projects array |
|
||||
| updateInitiative | mutation | Name, status |
|
||||
|
||||
Reference in New Issue
Block a user