feat: CH-2 视频 Inspector 角色区——抽共享 section + CH-1 注入的用户入口 - #230
Merged
Conversation
…t,image inspector 1033→672 行行为零变化 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… 对齐注入口径 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
概要
CH-2 收口(计划:
docs/superpowers/plans/2026-08-20-ch-2-video-inspector-characters.md,随本 PR 入库)。CH-1(#209)打通了视频角色注入链路,但 video inspector 一直没有角色区——用户没有入口写type_config.character_ids。本 PR 补上这个入口。改动
_CharactersSection/_NameDialog/_CharacterChip从image_config_inspector.dart整体搬到新characters_section.dart并转公开(CharactersSection/InspectorNameDialog/CharacterChip);_PresetsSection改 import 复用,不留私有副本防漂移。image inspector 1033→672 行。零变化证据:既有角色区测试一行未改全绿。requireImageToImageMode——image 传 true 维持原门(maxRefImages>0 && imageToImage);video 传 false 对齐 CH-1 注入门(仅maxRefImages>0,不检查 modes——r2v/omni 的参考图语义不落在 modes 里,见generation_controller._injectCharacterRefs拍板注释)。maxRefImages>0才挂整段——与 image 侧「常挂+警示文案」有意不同:视频多数 provider 无 ref 能力,常挂 = 一屏死区。测试
maxRefImages=0整段不挂 / chip 点选落type_config.character_ids。flutter analyze无 issue;全量flutter test --exclude-tags golden1951 全绿。_PromptPreview(P1-17 债明令勿同窗)。🤖 Generated with Claude Code