[app-builder] Persist the output of model nodes when enableLog is true #272
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.
🔗 相关问题 / Related Issue
Issue 链接 / Issue Link: #249
📋 变更类型 / Type of Change
📝 变更目的 / Purpose of the Change
📋 主要变更 / Brief Changelog
when enableLog configuration in llm node is true, persist the output as log
when enableLog configuration in end node is false, change the log type from 'MSG' to 'HIDDEN_MSG'
🧪 验证变更 / Verifying this Change
测试步骤 / Test Steps
create an app, enter the workflow orchestration, change the output of end node to another variable, publish the app
enter 'app market' and chat with the app
verify that the LLM node output is shown in the ReceiveBox
refresh the page and confirm the log content persists
测试覆盖 / Test Coverage
📸 截图 / Screenshots
following is the log when chatting, there are two llm nodes in the workflow and both enableLog are set to true:


and following is the same log in chat history:
✅ 贡献者检查清单 / Contributor Checklist
请确保你的 Pull Request 符合以下要求 / Please ensure your Pull Request meets the following requirements:
基本要求 / Basic Requirements:
代码质量 / Code Quality:
测试要求 / Testing Requirements:
mvn -B clean package -Dmaven.test.skip=true
,npm install --force && npm run build:pro
/ Basic checks passmvn clean install
/ Unit tests pass文档和兼容性 / Documentation and Compatibility:
📋 附加信息 / Additional Notes
审查者注意事项 / Reviewer Notes: