agent-ecosystem/test/renderer/components/team/activity/LeadThoughtsGroup.test.ts
iliya 9adffb2295 feat: enhance task comment notifications and owner wake-up logic
- Introduced a new function to notify task owners on comments from other members, improving communication and responsiveness.
- Updated existing comment handling functions to include logic for notifying owners based on comment type and author.
- Added tests to validate the new notification behavior, ensuring that owners are correctly alerted for relevant comments while avoiding unnecessary notifications for self-comments.
- Refactored task management logic to streamline comment processing and notification handling.
2026-03-09 15:25:22 +02:00

18 lines
548 B
TypeScript

import { describe, expect, it } from 'vitest';
import { isLeadThought } from '../../../../../src/renderer/components/team/activity/LeadThoughtsGroup';
describe('LeadThoughtsGroup', () => {
it('does not classify outbound runtime messages with recipients as lead thoughts', () => {
expect(
isLeadThought({
from: 'team-lead',
to: 'alice',
text: 'Please check task #abcd1234',
timestamp: '2026-03-08T00:00:00.000Z',
read: true,
source: 'lead_process',
})
).toBe(false);
});
});