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

fix: unbreak AgentsTab feedback-queue tests after taskType gating change

[._.]/ Adam Eivyd8bd048ad418
diff --git a/client/src/components/cos/tabs/AgentsTab.test.jsx b/client/src/components/cos/tabs/AgentsTab.test.jsx
index 40ace9a129..e324840c6d 100644
--- a/client/src/components/cos/tabs/AgentsTab.test.jsx
+++ b/client/src/components/cos/tabs/AgentsTab.test.jsx
@@ -71,7 +71,7 @@ const completedAgent = (id, description, extra = {}) => ({
status: 'completed',
completedAt: '2026-07-13T10:00:00.000Z',
startedAt: '2026-07-13T09:00:00.000Z',
- metadata: { taskDescription: description },
+ metadata: { taskDescription: description, taskType: 'user' },
...extra,
});
@@ -191,6 +191,16 @@ describe('AgentsTab feedback review queue', () => {
expect(needsFeedback).toHaveAttribute('aria-pressed', 'true');
});
+ it('excludes scheduled/autopilot runs (taskType internal) from the feedback queue', async () => {
+ renderTab([
+ completedAgent('unrated', 'Unrated task'),
+ completedAgent('scheduled', 'Scheduled task', { metadata: { taskDescription: 'Scheduled task', taskType: 'internal' } }),
+ ]);
+ await act(async () => {});
+
+ expect(screen.getByRole('button', { name: 'Needs feedback: 1' })).toBeInTheDocument();
+ });
+
it('opens the feedback queue directly from the URL', async () => {
renderTab([
completedAgent('unrated', 'Unrated task'),