Skip to content

Conversation

@amir-ghasemi
Copy link
Collaborator

This pull request introduces support for agent-level default artifacts, making certain files available to all users of an agent as read-only resources. The changes span backend service logic, configuration, and frontend UI/UX to ensure these default artifacts are loaded, displayed, and protected from deletion.

Backend: Agent Default Artifact Support

Agent-level default artifact logic:

  • Added support for agent-level default artifacts in ScopedArtifactServiceWrapper. These artifacts are loaded at agent startup, stored under a special user ID, and are accessible in all sessions as read-only. The wrapper ensures that attempts to delete or overwrite these artifacts are handled correctly. [1] [2] [3] [4] [5]

Configuration for default artifacts:

  • Introduced a DefaultArtifactConfig model and added a default_artifacts field to SamAgentAppConfig, allowing agents to specify a list of default artifacts to preload and expose to users. [1] [2]

Frontend: Artifact Handling and UI

Artifact fetching and display:

  • Updated the useArtifacts hook and ChatProvider to accept an agentName parameter, ensuring agent default artifacts are included when fetching artifacts for a session. [1] [2] [3] [4]

Read-only artifact protection in UI:

  • Modified artifact panels and messages to treat both project and agent default artifacts as read-only. The UI now disables delete actions for these artifacts and updates the logic for checking deletability and displaying descriptions. [1] [2] [3] [4] [5] [6]

Minor UI consistency:

  • Standardized the display of MIME type strings in artifact previews.

@github-actions
Copy link

github-actions bot commented Jan 27, 2026

WhiteSource Policy Violation Summary

✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-ui-pr-893!

@sonarqube-solacecloud
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
41.9% Coverage on New Code (required ≥ 70%)
9.2% Duplication on New Code (required ≤ 3%)
B Security Rating on New Code (required ≥ A)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE SonarQube for IDE

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.

1 participant