This repository was archived by the owner on Jul 8, 2026. It is now read-only.
Repository navigation
Commit 490ef9e
authored
fix: exec log now properly renders return values (#1546)
## Description
Fix: Session execution log return values not rendering
Problem
Return values in the Session Execution Log were not displaying correctly
- they appeared as non-expandable items showing character counts (e.g.,
"180 items") instead
of the actual JSON data.
Root Cause
1. Parsed return values weren't wrapped in the correct
DeepProtoValueResult structure, causing activity.returnValue.value to be
undefined
2. JSON return values could be double-encoded (JSON string containing
JSON string), causing JsonViewer to treat them as character arrays
instead of objects
Changes
src/models/activity.model.ts:85-103
- Wrapped parsed return values in proper { type: "object", value:
parsedValue } structure
- Added double-parse logic to handle nested JSON strings
- Added fallback to wrap plain strings in objects for proper display
src/components/organisms/deployments/sessions/tabs/activities/singleActivityInfo.tsx:68-74
- Replaced ValueRenderer with JsonViewer for consistency with
Arguments/KW Arguments sections
- Ensured return values are expandable and display correctly
Result
Return values now display and expand correctly in the Session Execution
Log, matching the behavior of arguments and kwargs.
## What type of PR is this? (check all applicable)
- [ ] 💡 (feat) - A new feature (non-breaking change which adds
functionality)
- [ ] 🔄 (refactor) - Code Refactoring - A code change that neither fixes
a bug nor adds a feature
- [x] 🐞 (fix) - Bug Fix (non-breaking change which fixes an issue)
- [ ] 🏎 (perf) - Optimization
- [ ] 📄 (docs) - Documentation - Documentation only changes
- [ ] 📄 (test) - Tests - Adding missing tests or correcting existing
tests
- [ ] ⚙️ (ci) - Continuous Integrations - Changes to our CI
configuration files and scripts (example scopes: Travis, Circle,
BrowserStack, SauceLabs)
- [ ] ☑️ (chore) - Chores - Other changes that don't modify src or test
files
- [ ] ↩️ (revert) - Reverts - Reverts a previous commit(s).
<!--
For a timely review/response, please avoid force-pushing additional
commits if your PR already received reviews or comments.
Before submitting a Pull Request, please ensure you've done the
following:
- 👷♀️ Create small PRs. In most cases this will be possible.
- ✅ Provide tests for your changes.
- 📝 Use descriptive commit messages (as described below).
- 📗 Update any related documentation and include any relevant
screenshots.
Commit Message Structure (all lower-case):
<type>(optional ticket number): <description>
[optional body]
-->1 parent 1904610 commit 490ef9e
2 files changed
Lines changed: 20 additions & 5 deletions
File tree
- src
- components/organisms/deployments/sessions/tabs/activities
- models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
| |||
0 commit comments