Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): ensure trace score updates never target child observation scores (#2685)

marliessophie06610902385e
diff --git a/web/src/server/api/routers/scores.ts b/web/src/server/api/routers/scores.ts
index 71bfe12272..6a74e1bd51 100644
--- a/web/src/server/api/routers/scores.ts
+++ b/web/src/server/api/routers/scores.ts
@@ -158,7 +158,7 @@ export const scoresRouter = createTRPCRouter({
where: {
projectId: input.projectId,
traceId: input.traceId,
- observationId: input.observationId,
+ observationId: input.observationId ?? null,
source: "ANNOTATION",
configId: input.configId,
},