fix(debug): 补充调试上下文 Mock 输出回显 - #845
Merged
dengyh merged 1 commit intoJul 30, 2026
Merged
Conversation
There was a problem hiding this comment.
Review Summary
✅ 变更简洁明确,逻辑正确。
mock_outputs字段已在模型和迁移中存在,此 PR 仅将其暴露到build_context_view的返回结构中。- 条件逻辑与已有的
mock_error完全对称(execution_mode == "mock" and mock_result == "success"),语义清晰。 - 测试覆盖了正向(成功预设返回 outputs)和反向(失败预设返回 None、真实执行返回 None)两种场景。
- 无 Critical 或 Important 级别的问题。
LGTM 🎉
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #845 +/- ##
========================================
Coverage 83.60% 83.60%
========================================
Files 324 324
Lines 20722 20726 +4
========================================
+ Hits 17324 17328 +4
Misses 3398 3398 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
变更说明
debug_context的nodes[]新增mock_outputs字段。null,避免误展示历史输出。验证
9 passed81 passedblack、flake8、提交钩子及git diff --check均通过