diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-16 01:10:00 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-16 01:10:00 +0000 |
| commit | d911021b7e4a0c9f77ca9996b0ebdabb03c56696 (patch) | |
| tree | 9fc5f8ab8bf3497ed25fbae698d7183a9e7c0fbe /internal/task | |
| parent | 7f6254cdafc6143f80ee9ca8e482c36aff2c197e (diff) | |
feat: add elaboration_input field to tasks for richer subtask placeholder
- Add ElaborationInput field to Task struct (task.go)
- Add DB migration and update CREATE/SELECT/scan in storage/db.go
- Update handleCreateTask to accept elaboration_input from API
- Update renderSubtaskRollup in app.js to prefer elaboration_input over description
- Capture elaborate prompt in createTask() form submission
- Update subtask-placeholder tests to cover elaboration_input priority
- Fix missing io import in gemini.go
When a task card is waiting for subtasks, it now shows:
1. The raw user prompt from elaboration (if stored)
2. The task description truncated at word boundary (~120 chars)
3. The task name as fallback
4. 'Waiting for subtasks…' only when all fields are empty
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/task')
| -rw-r--r-- | internal/task/task.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/task/task.go b/internal/task/task.go index 6a9d1db..b3660d3 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -83,6 +83,7 @@ type Task struct { State State `yaml:"-" json:"state"` RejectionComment string `yaml:"-" json:"rejection_comment,omitempty"` QuestionJSON string `yaml:"-" json:"question,omitempty"` + ElaborationInput string `yaml:"-" json:"elaboration_input,omitempty"` Summary string `yaml:"-" json:"summary,omitempty"` Interactions []Interaction `yaml:"-" json:"interactions,omitempty"` CreatedAt time.Time `yaml:"-" json:"created_at"` |
