Skip to content

fix(frontend): restore Rendered JSON newline decoding in trace viewers#3905

Merged
bekossy merged 13 commits intorelease/v0.90.1from
fix-/-rendered-json-not-working-properly
Mar 4, 2026
Merged

fix(frontend): restore Rendered JSON newline decoding in trace viewers#3905
bekossy merged 13 commits intorelease/v0.90.1from
fix-/-rendered-json-not-working-properly

Conversation

@bekossy
Copy link
Member

@bekossy bekossy commented Mar 4, 2026

Summary

This PR fixes a regression in Rendered JSON mode where long text values showed escaped sequences (like \n) instead of readable line breaks
Screenshot 2026-03-04 at 2 11 08 PM

@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Mar 4, 2026 6:13pm

Request Review

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 4, 2026
@bekossy bekossy changed the base branch from main to release/v0.90.1 March 4, 2026 13:11
@dosubot dosubot bot added the bug Something isn't working label Mar 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Railway Preview Environment

Preview URL https://gateway-production-4cd6.up.railway.app/w
Project agenta-oss-pr-3905
Image tag pr-3905-ad6404c
Status Deployed

Updated at 2026-03-04T18:25:34.151Z

ardaerzin and others added 12 commits March 4, 2026 16:46
Extract template variables from enhanced prompts (draft format) which use
wrapped value structures. Used to derive input ports from locally-edited
prompts that haven't been saved yet.
Synchronize input_keys in each enhanced prompt with the actual template
variables found in its message content. Mutates prompts in place and
preserves __id and __metadata when updating existing input_keys.
…quests

Add revisionBatchFetcher, variantDetailBatchFetcher, and revisionsListBatchFetcher
to deduplicate concurrent API requests within a short window. Uses createBatchFetcher
pattern with caching for variant details. Update fetchOssRevisionEnriched and
fetchRevisionsList to use batch fetchers.
…n prompt changes

- Update enrichedQueryAtomFamily to use revisionBatchFetcher and variantDetailBatchFetcher
- Update revisionsQueryAtomFamily to use revisionsListBatchFetcher
- Add syncInputKeysInPrompts calls in setEnhancedPromptsAtom, mutateEnhancedPromptsAtom, and updatePropertyAtom
- Update legacyAppRevisionInputPortsAtomFamily to prefer enhanced prompts over raw parameters
…oRequestBody

- Remove input_keys from LEGACY_KEYS set in CommitVariantChangesModalContent
- Stop preserving input_keys from original parameters in transformToRequestBody
  since input_keys are now dynamically synced from template variables
Refactor transformToRequestBody call to use intermediate variable for clarity.
…mentRevisionsWithAppIdQueryAtomFamily

Remove two debug console.log calls while keeping the data logging statement.
…c on mount

Extract core URL-writing logic into writeUrlNow function that can be called both synchronously and via RAF. Add initial URL sync in playgroundSyncAtom.onMount to ensure URL reflects in-memory selection when navigating back to playground. Also add synchronous URL write after applying defaults to avoid RAF cancellation issues.
…on on TokenPlugin mount

- Format early return in Editor.tsx with braces for consistency
- Add $getRoot import to TokenPlugin
- Force markDirty on existing TextNodes after transform registration to ensure hydrated content is processed by transforms in production builds where hydration may fire before plugin mount
…d skip input_keys in prompt extraction

- Remove length check in transformToRequestBody to always set input_keys (even when empty) to overwrite stale values from server parameters
- Update chatTurnIdsAtom guards to check Array.isArray and length > 0 instead of just truthiness
- Skip input_keys in createEnhancedPrompt and createEnhancedPromptFromValue since it's dynamically computed from message content via syncInputKeysInPrompts
…un-issue

[Frontend] Fix playground run issue
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 4, 2026
@bekossy bekossy merged commit 8cb0e88 into release/v0.90.1 Mar 4, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants