@cryptotaxi247 / CoPilot / commits / 72a93776

fix: enhance artifact filtering to include custom prefixes (#599)

taylor_socfortress committed Jan 16, 2026 at 09:10 UTC 72a93776961470621bdaf0015c9936e3d507c4d1
1 file changed +4 -1
backend/app/connectors/velociraptor/routes/artifacts.py
+4 -1
@@ -320,7 +320,10 @@ async def get_all_artifacts_for_os_prefix(
320 # Get all the artifacts names that begin with the OS prefix
321 artifacts = await get_artifacts()
322 artifacts = artifacts.artifacts
323 - artifacts_for_os_prefix = [artifact for artifact in artifacts if artifact.name.startswith(os_prefix)]
323 + # Match artifacts that start with the OS prefix OR start with "Custom." followed by the OS prefix
324 + artifacts_for_os_prefix = [
325 + artifact for artifact in artifacts if artifact.name.startswith(os_prefix) or artifact.name.startswith(f"Custom.{os_prefix}")
326 + ]
327 return ArtifactsResponse(
328 success=True,
329 message=f"All artifacts for OS prefix {os_prefix} retrieved",