feat: show original task prompt in step detail view

Displays the task description (the original instruction sent to
Claude Code) in a highlighted box above the step timeline, so
users can always see what prompt produced the current task.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 16:11:09 +08:00
co-authored by Claude Opus 4.7
parent b6ce27a462
commit 988b8cc27b
+3
View File
@@ -433,6 +433,9 @@ function renderTaskDetail(projects, tasks, agents, terminals) {
创建于 ${new Date(activeTask.created_at).toLocaleString('zh-CN')}
${activeTask.completed_at ? ` · 完成于 ${new Date(activeTask.completed_at).toLocaleString('zh-CN')}` : ''}
</div>
${activeTask.description ? `<div style="margin-top:6px;padding:8px 10px;background:#f0f4ff;border-left:3px solid var(--accent);border-radius:4px;font-size:11px;color:var(--text-secondary);line-height:1.5;">
💬 <strong>下发指令:</strong>${escapeHtml(activeTask.description)}
</div>` : ''}
</div>
<div class="step-list">${stepHtml}</div>
${activeTask.status === 'completed' ? '<div style="text-align:center;padding:16px;color:var(--green);font-size:13px;font-weight:600;">🎉 任务全部完成!</div>' : ''}