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 (claude): cover context/model/provider fields in hasUnsavedEdits test
[._.]/ Adam Eivy22acc1032960
diff --git a/client/src/components/cos/tabs/TaskItem.test.jsx b/client/src/components/cos/tabs/TaskItem.test.jsxindex 564d26bac5..797568ba70 100644--- a/client/src/components/cos/tabs/TaskItem.test.jsx+++ b/client/src/components/cos/tabs/TaskItem.test.jsx@@ -294,6 +294,20 @@ describe('TaskItem cancel-edit confirmation (#4037)', () => {expect(screen.queryByRole('button', { name: 'Save' })).not.toBeInTheDocument();});+ it('shows the confirm row when only a non-description field (context) changed', () => {+ // Pins hasUnsavedEdits' context/model/provider branches, not just description —+ // a regression narrowing the comparison to description alone would still pass+ // every other test in this block since they all edit description.+ render(<TaskItem task={task} isSystem onRefresh={vi.fn()} providers={providers} />);++ fireEvent.click(screen.getByRole('button', { name: 'Edit task' }));+ fireEvent.change(screen.getByPlaceholderText('Context'), { target: { value: 'New context note' } });+ fireEvent.click(screen.getByRole('button', { name: 'Cancel' }));++ expect(screen.getByRole('group', { name: 'Confirm discard task edits' })).toBeInTheDocument();+ expect(screen.queryByRole('button', { name: 'Save' })).not.toBeInTheDocument();+ });+it('discards the draft on a second click confirming the discard', () => {render(<TaskItem task={task} isSystem onRefresh={vi.fn()} providers={providers} />);