Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat(cos): display task success rate indicator on pending tasks

Adam Eivy7987c54c161e
diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.md
index cb7223a713..e08cb87785 100644
--- a/.changelog/v0.10.x.md
+++ b/.changelog/v0.10.x.md
@@ -386,6 +386,12 @@ This release introduces a structured changelog documentation system for creating
- **Controlled Parameters**: Each level configures evaluationIntervalMs, maxConcurrentAgents, selfImprovementEnabled, appImprovementEnabled, proactiveMode, idleReviewEnabled, immediateExecution, and comprehensiveAppImprovement
- **New Config Rows**: Added Proactive Mode, Idle Review, Immediate Execution, and Comprehensive App Analysis toggles to Config tab for fine-grained control
+### Chief of Staff - Task Success Rate Indicator
+- **Visual Success Rate Badge**: Pending tasks now display a color-coded success rate percentage based on historical task completion data
+- **Color-Coded Feedback**: Green (≥70% success), yellow (40-69%), and red (<40%) indicators help users quickly assess task type reliability
+- **Learning System Visibility**: Makes CoS learning data visible at the task level, showing how well similar tasks have performed historically
+- **Informative Tooltips**: Hover reveals "high/moderate/low success rate" with sample size (e.g., "67% of 12 similar tasks succeeded")
+
### Web Shell PTY Compatibility Fix
- **Node.js 25 Support**: Upgraded node-pty from 1.1.0 to 1.2.0-beta.10 to fix `posix_spawnp failed` error on Node.js 25.x
- **Error Handling**: Added error handling to shell session creation to catch PTY spawn failures and report them to the client instead of silently failing
diff --git a/client/src/components/cos/tabs/TaskItem.jsx b/client/src/components/cos/tabs/TaskItem.jsx
index 88ae2782bb..f80204a181 100644
--- a/client/src/components/cos/tabs/TaskItem.jsx
+++ b/client/src/components/cos/tabs/TaskItem.jsx
@@ -13,7 +13,8 @@ import {
Paperclip,
FileText,
ExternalLink,
- AlertCircle
+ AlertCircle,
+ TrendingUp
} from 'lucide-react';
import toast from 'react-hot-toast';
import * as api from '../../../services/api';
@@ -80,6 +81,13 @@ function formatAttachmentSize(bytes) {
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
}
+// Get success rate styling based on percentage
+function getSuccessRateStyle(rate) {
+ if (rate >= 70) return { bg: 'bg-port-success/15', text: 'text-port-success', label: 'high' };
+ if (rate >= 40) return { bg: 'bg-port-warning/15', text: 'text-port-warning', label: 'moderate' };
+ return { bg: 'bg-port-error/15', text: 'text-port-error', label: 'low' };
+}
+
export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh, providers, durations, dragHandleProps }) {
const [editing, setEditing] = useState(false);
const [editData, setEditData] = useState({
@@ -214,12 +222,27 @@ export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh,
{durationEstimate && (
<span
className="flex items-center gap-1 px-1.5 py-0.5 text-xs bg-port-accent/10 text-port-accent/80 rounded"
- title={`Based on ${durationEstimate.basedOn} completed ${durationEstimate.taskType} tasks (${durationEstimate.successRate}% success rate)`}
+ title={`Based on ${durationEstimate.basedOn} completed ${durationEstimate.taskType} tasks`}
>
<Timer size={10} aria-hidden="true" />
{formatDurationMin(durationEstimate.estimatedMin)}
</span>
)}
+ {/* Success rate indicator for pending tasks */}
+ {durationEstimate && durationEstimate.successRate !== undefined && durationEstimate.isTypeSpecific && (
+ (() => {
+ const style = getSuccessRateStyle(durationEstimate.successRate);
+ return (
+ <span
+ className={`flex items-center gap-1 px-1.5 py-0.5 text-xs rounded ${style.bg} ${style.text}`}
+ title={`${style.label} success rate: ${durationEstimate.successRate}% of ${durationEstimate.basedOn} similar tasks succeeded`}
+ >
+ <TrendingUp size={10} aria-hidden="true" />
+ {durationEstimate.successRate}%
+ </span>
+ );
+ })()
+ )}
{isSystem && task.autoApproved && (
<span className="px-2 py-0.5 rounded text-xs bg-port-success/20 text-port-success">AUTO</span>
)}