{{ message }}
Repository navigation
Show all branch evaluations in conditional block timeline (#SKY-7495) - #4577
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to 3e36372 in 28 seconds. Click for details.
- Reviewed
170lines of code in2files - Skipped
0files when reviewing. - Skipped posting
0draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
Workflow ID: wflow_qFe9AkpaOBSidz6w
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Contributor
…src/' ## Summary - [SKY-7495](https://linear.app/skyvern/issue/SKY-7495/show-prompt-and-evaluation-path-for-conditional-block) Enhanced the workflow run timeline to display detailed evaluation information for all branches in conditional blocks. Users can now see which conditions were evaluated, how template variables were rendered with actual values, the true/false result of each evaluation, and which branch ultimately matched and executed. **Depends on**: Backend PR #8400 (must be deployed first) ## Problem Previously, the conditional block timeline only showed the final executed branch without revealing the evaluation process. Users couldn't see: - Which other branches were evaluated before finding a match - How Jinja2 template expressions were rendered with actual runtime values - The boolean result of each condition evaluation - Why a particular branch was chosen over others This lack of transparency made it difficult to debug conditional logic and understand workflow execution paths. ## What Changed - **Added type definitions** in `workflowRunTypes.ts`: - `BranchEvaluation` type with fields for branch metadata, expressions, results, and matching status - `ConditionalBlockOutput` type to structure the evaluations array in block output - `hasEvaluations()` type guard function for safe evaluation access - **Enhanced conditional block rendering** in `WorkflowRunTimelineBlockItem.tsx`: - Displays all branch evaluations in order with individual cards per branch - Shows both original expression and rendered expression (with variable substitution) - Color-codes evaluation results: green for True, red for False - Highlights matched branch with green border and background - Distinguishes default branches with special label - Shows next block label for the matched branch - Maintains backward compatibility with old workflow runs via fallback to legacy display format ## Screenshots <img width="1512" height="1256" alt="image" src="https://github.com/user-attachments/assets/8b69e13c-8d89-4bd4-828a-2b3aba4cdf4c" /> ## Test plan - [x] Run a workflow with conditional block having multiple branches - [x] Verify all branches are displayed in the timeline - [x] Verify original expression shows Jinja2 template syntax - [x] Verify rendered expression shows actual values substituted - [x] Verify each branch shows True/False evaluation result - [x] Verify matched branch has green border/background highlighting - [x] Test with old workflow run to verify backward compatibility fallback - [x] Test with various conditional block scenarios: Jinja2 templates, prompt-based conditions, default branch execution 🤖 Generated with [Claude Code](https://claude.ai/code)
celalzamanoglu
force-pushed
the
celal/sky-7495-conditional-block-frontend
branch
from
January 29, 2026 10:00
3e36372 to
7076bde
Compare
Contributor
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed 7076bde in 28 seconds. Click for details.
- Reviewed
172lines of code in2files - Skipped
0files when reviewing. - Skipped posting
0draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
Workflow ID: wflow_ykI7rudIk25T3nmP
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Enhanced the workflow run timeline to display detailed evaluation information for all branches in conditional blocks. Users can now see which conditions were evaluated, how template variables were rendered with actual values, the true/false result of each evaluation, and which branch ultimately matched and executed.
Depends on: Backend PR #8400 (must be deployed first)
Problem
Previously, the conditional block timeline only showed the final executed branch without revealing the evaluation process. Users couldn't see:
This lack of transparency made it difficult to debug conditional logic and understand workflow execution paths.
What Changed
Added type definitions in
workflowRunTypes.ts:BranchEvaluationtype with fields for branch metadata, expressions, results, and matching statusConditionalBlockOutputtype to structure the evaluations array in block outputhasEvaluations()type guard function for safe evaluation accessEnhanced conditional block rendering in
WorkflowRunTimelineBlockItem.tsx:Displays all branch evaluations in order with individual cards per branch
Shows both original expression and rendered expression (with variable substitution)
Color-codes evaluation results: green for True, red for False
Highlights matched branch with green border and background
Distinguishes default branches with special label
Shows next block label for the matched branch
Maintains backward compatibility with old workflow runs via fallback to legacy display format
Screenshots
Test plan
🤖 Generated with Claude Code
Important
Enhanced workflow run timeline to display detailed branch evaluations in conditional blocks, including expressions and results.
WorkflowRunTimelineBlockItemto display all branch evaluations in conditional blocks.BranchEvaluationandConditionalBlockOutputtypes inworkflowRunTypes.ts.hasEvaluations()type guard function.WorkflowRunTimelineBlockItem.tsxto render branch evaluations with color-coded results and labels for matched branches.This description was created by
for 7076bde. You can customize this summary. It will automatically update as commits are pushed.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.