Deprecate separate title attribute in flows; derive from description#1472
Draft
Deprecate separate title attribute in flows; derive from description#1472
title attribute in flows; derive from description#1472Conversation
Agent-Logs-Url: https://github.com/inducer/relate/sessions/dc5a76b0-041f-4a2a-9d6c-c4f4b88c95dd Co-authored-by: inducer <352067+inducer@users.noreply.github.com>
….ValidationError in test Agent-Logs-Url: https://github.com/inducer/relate/sessions/dc5a76b0-041f-4a2a-9d6c-c4f4b88c95dd Co-authored-by: inducer <352067+inducer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Deprecate separate title attribute in flows
Deprecate separate Apr 9, 2026
title attribute in flows; derive from description
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.
Flow YAML files required a redundant top-level
titleattribute even when thedescriptionalready began with a Markdown heading—unlike flow pages and static-page chunks, which derive their title from markup automatically.Changes
FlowDesc.title— changed from requiredstrtostr | None = NoneFlowDesc.check_titlevalidator — issues a deprecation warning via the validation context whentitleis explicitly supplied andextract_title_from_markup(description)would have yielded a result; raisesValueErrorwhen neither source provides a titleFlowDesc.get_title()— new method mirroringChunkDesc.get_title(): returnstitleif set, otherwise extracts fromdescriptionmodels.pyand 5 flow templates — updated allflow_desc.titleaccesses toflow_desc.get_title()/flow_desc.get_titleExample
A flow description that previously required both:
can now omit
titleentirely:Keeping both will produce a validation warning pointing authors to remove the redundant attribute.