Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/hub/src/artifacts/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ export function createArtifactService(
// readArtifact is the model-facing chunked reader (8000-character budget);
// the hub serves whole documents, so it reads the stored version directly.
const row = await getArtifact(db, artifactId);
if (!row || row.tenantId !== actor.tenantId)
if (!row || row.tenantId !== actor.tenantId || row.archivedAt !== null)
throw new ProjectError(404, "artifact_not_found", { artifactId });
// The app by its kind is the main line; snapshots are read by their version.
const resolved =
Expand Down