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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: fix duplicate task return shape, add xhigh fallback tests, remove unused import
Adam Eivy3b19d88fdce4
diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsxindex 697338a546..206e8a753d 100644--- a/client/src/pages/Shell.jsx+++ b/client/src/pages/Shell.jsx@@ -5,7 +5,7 @@ import { FitAddon } from '@xterm/addon-fit';import { WebLinksAddon } from '@xterm/addon-web-links';import '@xterm/xterm/css/xterm.css';import { useSocket } from '../hooks/useSocket';-import { RefreshCw, Power, PowerOff, FolderOpen, ChevronDown, Plus, X, Terminal as TerminalIcon, Trash2 } from 'lucide-react';+import { RefreshCw, Power, PowerOff, FolderOpen, ChevronDown, Plus, X, Terminal as TerminalIcon } from 'lucide-react';const QUICK_COMMANDS = [{ label: 'claude', command: 'claude --dangerously-skip-permissions' },diff --git a/server/routes/cos.js b/server/routes/cos.jsindex 7b1870aebe..db638090d5 100644--- a/server/routes/cos.js+++ b/server/routes/cos.js@@ -141,7 +141,7 @@ router.post('/tasks', asyncHandler(async (req, res) => {const result = await cos.addTask(taskData, type);if (result?.duplicate) {- throw new ServerError(`A task with this description is already ${result.existingTask.status}`, { status: 409, code: 'DUPLICATE_TASK' });+ throw new ServerError(`A task with this description is already ${result.status}`, { status: 409, code: 'DUPLICATE_TASK' });}res.json(result);diff --git a/server/services/cos.js b/server/services/cos.jsindex 6ed3a49f8c..61ddff5ca6 100644--- a/server/services/cos.js+++ b/server/services/cos.js@@ -3086,7 +3086,7 @@ export async function addTask(taskData, taskType = 'user') {);if (duplicate) {console.log(`⚠️ Duplicate task rejected: "${taskData.description.substring(0, 60)}" matches ${duplicate.id}`);- return { duplicate: true, existingTask: duplicate };+ return { ...duplicate, duplicate: true };}// Generate a unique ID if not provideddiff --git a/server/services/thinkingLevels.test.js b/server/services/thinkingLevels.test.jsindex 9240246070..3b6d3eed02 100644--- a/server/services/thinkingLevels.test.js+++ b/server/services/thinkingLevels.test.js@@ -205,6 +205,16 @@ describe('Thinking Levels Service', () => {expect(getModelForLevel('xhigh', provider)).toBe('heavy-model');});+ it('should fall back to defaultModel for xhigh when heavyModel is absent', () => {+ const provider = { defaultModel: 'default-model' };+ expect(getModelForLevel('xhigh', provider)).toBe('default-model');+ });++ it('should return null for xhigh when neither heavyModel nor defaultModel is configured', () => {+ const provider = {};+ expect(getModelForLevel('xhigh', provider)).toBeNull();+ });+it('should return null for invalid level', () => {expect(getModelForLevel('invalid')).toBeNull();});