Repository navigation
Open
Labels
area:canvasCanvas, nodes and direct manipulation
Description
中文总结:明确区分文本节点的“修改现有内容”与“重新生成”,修改时携带当前正文,并明确结果替换和历史恢复行为。
Problem
For an existing Markdown text node, it is unclear whether Generate means regenerating from the configured prompt or modifying the displayed text.
For example:
- Create a text node containing a storyboard card.
- Enter a revision instruction in its generation composer: “Change the second shot so the protagonist knocks on the door while holding a metal basin.”
- Click Generate.
The current body is not automatically included. Without explicit references, the model receives only the revision instruction (references: []), and the generated result can replace the displayed card instead of revising it.
Existing implementation (v0.1.5)
- Direct Markdown editing and
canvas text updatealready exist. An agent can also read the original and write revised content back. - The node generation path has no dedicated Modify mode:
textGenerationPlan()sends the prompt and explicit references; the existing body is kept inorigin.textfor conflict checking, not as model input. - Configuring generation preserves the original asset through
materialOverride; successful automatic adoption clears that override.
Design proposal
Make the two intents explicit:
- Regenerate: create a new result from the configured prompt and references, without implicitly treating the current body as the edit target.
- Modify: send the current body together with the revision instruction and explicit references, then produce a revised version.
Open questions:
- Should Modify be the default for a non-empty text node, or should users explicitly choose the operation?
- Should results replace the current display immediately, require acceptance, or appear in a new node?
Whichever interaction is chosen, clarify replacement behavior and keep the previous body accessible through node history. This RFC concerns the node generation workflow; it does not propose replacing the existing direct editor.
Metadata
Metadata
Assignees
Labels
area:canvasCanvas, nodes and direct manipulation
Activity
FED4 commentedon Nov 22, 2026
I’d like to take this once the design is agreed on.