Skip to content

adds AI agent indication to event messages and risk assessment updates#707

Open
refoo0 wants to merge 4 commits intomainfrom
add-ai-agent-indication-to-risk-assessment-feed
Open

adds AI agent indication to event messages and risk assessment updates#707
refoo0 wants to merge 4 commits intomainfrom
add-ai-agent-indication-to-risk-assessment-feed

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented Apr 27, 2026

No description provided.

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copilot AI review requested due to automatic review settings April 27, 2026 08:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds UI/labeling to indicate when vulnerability events/actions were applied by an AI agent (identified via a @mcp-server userId suffix), including adjustments to user display and the risk assessment feed.

Changes:

  • Append an “(applied by AI agent)” suffix to event type messages when userId ends with @mcp-server.
  • Strip the @mcp-server suffix in findUser so AI-applied events can still map to the underlying user for display.
  • Add an AI-specific avatar fallback (Sparkles icon) and an AI warning callout in the risk assessment feed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/utils/view.ts Adds AI-agent suffix to event messages and strips AI suffix in user lookup.
src/components/risk-assessment/RiskAssessmentFeed.tsx Adds AI avatar styling and an AI warning callout for AI-applied events.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/utils/view.ts
Comment thread src/utils/view.ts Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
refoo0 added 2 commits April 27, 2026 16:46
…o indicate AI actions

Signed-off-by: rafi <refaei.shikho@hotmail.com>
… AI agent

Signed-off-by: rafi <refaei.shikho@hotmail.com>
@refoo0 refoo0 requested a review from Copilot April 27, 2026 16:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/utils/view.ts Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx
…ve event type messages for license decisions

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants