Draft
Conversation
Preserve inner_error_type and blocks_errors when serializing exceptions across the WebRTC worker process boundary, enabling detailed error display in the frontend.
…de snippets - Add BlockTraceback model with traceback, error_line, and code_snippet fields - Create PythonBlockError class to capture structured error context - Generate clean tracebacks showing only user code with adjusted line numbers - Extract code snippets around error line with >>> markers - Filter out internal workflow engine frames from traceback display - Update WorkflowBlockError and StepExecutionError to use block_traceback field
…nses - Add PythonBlockError for both syntax and runtime errors in Python blocks (before it was a DynamicBlockError) - Add PythonBlockError handler in error_handlers.py returning WorkflowErrorResponse with blocks_errors for consistent frontend display; unified all cases i found. - Capture stdout/stderr for both local and Modal Python block execution Syntax errors (1 = 1), import errors, and runtime errors (1 / 0) now show consistently in the frontend with code snippets and structured block error details.
…layering - Fix inconsistent property_name - Move PythonBlockError to errors.py - Clean up inconsistencies
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.
What does this PR do?
Related Issue(s):
Type of Change
Testing
Test details:
Checklist
Additional Context