refactor: unified tool desc in the app - #7649
Open
Nixieboluo wants to merge 7 commits into
Open
Conversation
Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
Preserve saved intro while backfilling existing tool nodes from remote descriptions.
Coverage Report
File CoverageNo changed files found. |
|
✅ Build and publish successful - Preview fastgpt Image: 🕒 Time: 2026-09-03 18:02:44 (UTC+8) |
Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
|
✅ Admin Preview Image Ready! 🕒 Time: 2026-09-03 18:03:56 (UTC+8) |
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.
Context
toolDescriptionandintrocan become inconsistent across templates, canvas nodes, persisted workflows, and runtime tool calls. This change unifies node and runtime tool descriptions aroundintro.The removal is intentional. Existing node-level
toolDescriptionvalues are not preserved or used.Description
This change removes node-level
toolDescriptionfrom workflow data contracts and ensures all runtime tool descriptions are derived fromintro.Legacy workflows are normalized at migration boundaries so obsolete node-level fields are discarded before entering application-internal data. MCP and HTTP tool nodes use the provider description as a fallback only when their stored
introis empty. Existing custom intros always take precedence.System tools now discard the provider's legacy
toolDescriptionfield at the adaptation boundary. System tool details, display DTOs, templates, canvas nodes, and runtime nodes retain onlyintro.Changes in the codebase
toolDescriptionfrom:toolDescription.introas the tool description source.toolDescriptionfrom system tool collection, detail, child detail, codec, repository, preview, and display mappings.toolDescription.introfrom the tool provider description.introfor unsaved legacy workflows.Aditional information
toolDescriptionis an intentional breaking change for existing node behavior.toolDescriptionremains supported for model parameter descriptions.descriptionremains supported and is copied into child nodeintrowhen runtime nodes are created.