Header of process and node ports follow each other both ways: a panel edit rewrites only the def line of edited code, a code save reads the header back into input ports and settings (draft and response); Space types in the node editor again

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-15 18:19:19 +02:00
co-authored by Claude Opus 5.5
parent 92c562a7d5
commit 762e7fb1fe
15 changed files with 645 additions and 48 deletions
+11
View File
@@ -343,6 +343,17 @@ class NodeStatusPublic(BaseModel):
last_error_ts: float | None = None
class NodeSourceSaved(NodeStatusPublic):
"""Whether saved code loads, and what its header changed.
`node` is set when the parameters of ``process`` added, dropped or renamed
an input port or setting. The draft moved on to `version` with it.
"""
node: NodeDef | None = None
version: int | None = None
class MessageValue(BaseModel):
"""The last payload seen on a message."""