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

Add coverage for hidden rating UI on scheduled/autopilot agents

[._.]/ Adam Eivyd547beeecee4
diff --git a/client/src/components/cos/tabs/AgentCard.test.jsx b/client/src/components/cos/tabs/AgentCard.test.jsx
index 83a317baf0..e3f99b2452 100644
--- a/client/src/components/cos/tabs/AgentCard.test.jsx
+++ b/client/src/components/cos/tabs/AgentCard.test.jsx
@@ -36,6 +36,21 @@ afterEach(() => {
});
describe('AgentCard feedback', () => {
+ it('hides the rating UI for a completed scheduled/autopilot agent (taskType internal)', () => {
+ const internalAgent = {
+ ...agent,
+ metadata: { ...agent.metadata, taskType: 'internal' },
+ };
+
+ render(
+ <MemoryRouter>
+ <AgentCard agent={internalAgent} completed />
+ </MemoryRouter>
+ );
+
+ expect(screen.queryByText('Was this helpful?')).not.toBeInTheDocument();
+ });
+
it('uses the archived scheduled type for a running agent ETA', () => {
vi.useFakeTimers();
vi.setSystemTime(new Date('2026-07-13T10:00:00.000Z'));