Skip to content

用 Option 表达 Termina 嵌套字段缺失 - #81

Merged
tiye merged 1 commit into
mainfrom
refine/termina-state-tree-types
Nov 14, 2026
Merged

tiye merged 1 commit into
mainfrom
refine/termina-state-tree-types

Conversation

@tiye

@tiye tiye commented Nov 14, 2026

Copy link
Copy Markdown
Member

用户影响

进程详情仍要求数字 ID,移除已结束进程的行为沿用原规则。路由缺失 ID 时会在读取必填字段时失败。

实现与风险

嵌套查询现在返回 Option,输入使用泛型,路径使用现有 StateKey 联合类型。进程清理在调用处为缺失的存活状态提供 false。旧数据的 nil 仍在读取时归为缺失,存在的异构值继续交给调用方检查。

@tiye
tiye merged commit 780acb2 into main Nov 14, 2026
1 check passed
@tiye
tiye deleted the refine/termina-state-tree-types branch November 14, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant