summaryrefslogtreecommitdiff
path: root/web/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app.js')
-rw-r--r--web/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/app.js b/web/app.js
index 408ffce..0e13543 100644
--- a/web/app.js
+++ b/web/app.js
@@ -883,7 +883,7 @@ async function renderSubtaskRollup(task, footer) {
const res = await fetch(`${API_BASE}/api/tasks/${task.id}/subtasks`);
const subtasks = await res.json();
if (!subtasks || subtasks.length === 0) {
- const blurb = task.description || task.name;
+ const blurb = task.elaboration_input || task.description || task.name;
container.textContent = blurb ? truncateToWordBoundary(blurb) : 'Waiting for subtasks…';
return;
}
@@ -1555,9 +1555,12 @@ async function createTask(formData) {
const workingDir = selectVal === '__new__'
? document.getElementById('new-project-input').value.trim()
: selectVal;
+ const elaboratePromptEl = document.getElementById('elaborate-prompt');
+ const elaborationInput = elaboratePromptEl ? elaboratePromptEl.value.trim() : '';
const body = {
name: formData.get('name'),
description: '',
+ elaboration_input: elaborationInput || undefined,
agent: {
instructions: formData.get('instructions'),
project_dir: workingDir,