castle-web-cli 0.4.13 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat-client.js +3 -1
- package/package.json +1 -1
package/dist/chat-client.js
CHANGED
|
@@ -206,8 +206,10 @@ function TaskFeed(props) {
|
|
|
206
206
|
function TaskRow(props) {
|
|
207
207
|
const { task, onAck } = props;
|
|
208
208
|
const [expanded, setExpanded] = React.useState(false);
|
|
209
|
-
const pct = task.status === 'done' ? 100 : task.progress;
|
|
210
209
|
const finished = TERMINAL_TASK_STATUSES.includes(task.status);
|
|
210
|
+
// A full circle means "click me to check off". A still-running task never
|
|
211
|
+
// fills completely, even if its agent already reports 100.
|
|
212
|
+
const pct = task.status === 'done' ? 100 : finished ? task.progress : Math.min(task.progress, 95);
|
|
211
213
|
const notes = task.notes.trim() || task.resultSummary?.trim() || '(no notes from the agent yet)';
|
|
212
214
|
return (React.createElement("div", { className: `task-card${task.status === 'waiting' ? ' waiting' : ''}`, onClick: () => setExpanded(!expanded) },
|
|
213
215
|
React.createElement("div", { className: "task-row" },
|