Skip to content

Conversation

@mikeldking
Copy link
Collaborator

@mikeldking mikeldking commented Nov 19, 2025

resolves #10313

@mikeldking mikeldking requested a review from a team as a code owner November 19, 2025 02:49
@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Nov 19, 2025
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Nov 19, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 19, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 19, 2025

Open in StackBlitz

npm i https://pkg.pr.new/Arize-ai/phoenix/@arizeai/phoenix-client@10317
npm i https://pkg.pr.new/Arize-ai/phoenix/@arizeai/phoenix-evals@10317
npm i https://pkg.pr.new/Arize-ai/phoenix/@arizeai/phoenix-mcp@10317
npm i https://pkg.pr.new/Arize-ai/phoenix/@arizeai/phoenix-otel@10317

commit: 918590f


if (Array.isArray(obj)) {
return obj.map(createTemplateVariablesProxy);
}
Copy link

Choose a reason for hiding this comment

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

Bug: Arrays not JSON stringified in templates

Arrays accessed directly in templates use default toString() (comma-separated) instead of JSON stringification. The function maps array elements through the proxy but doesn't wrap the array itself, so {{items}} with items: ["a", "b"] renders as "a,b" instead of ["a","b"]. This is inconsistent with how objects are serialized and breaks the feature's intent to serialize nested values.

Fix in Cursor Fix in Web

@github-project-automation github-project-automation bot moved this from 📘 Todo to 👍 Approved in phoenix Nov 19, 2025
@mikeldking mikeldking merged commit f9c913b into main Nov 19, 2025
16 checks passed
@mikeldking mikeldking deleted the mikeldking/9277-template-variables branch November 19, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[evals] [ts] ts evals should JSON serialize objects when being applied to a template

3 participants