Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[bug]: Align Graph.add_edge and validate_self collector type validation

未关闭
#9,610 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 5 天内回复

@JPPhoto 已经在做这个了。

开始于 2026年9月26日。

评估

这个 Issue 还没有评估数据。

描述

bug
Is there an existing issue for this problem?
  • I have searched the existing issues and found no duplicate.
Install method

Manual (in-process graph test; no server installation used)

Describe your environment
  • Operating system: Linux
  • GPU vendor: None (CPU; not involved)
  • Version number: main @ 13aff5c (in-process review reproduction)
What happened

Graph.add_edge() and Graph.validate_self() do not enforce the same collector type invariants. Some collector changes can be accepted while editing, then rejected only when the full graph is validated. Review reproductions include a collector feeding an If branch and a related Collect -> Iterate mismatch.

What you expected to happen

Define which collector and downstream type invariants must hold after each add_edge() call, and make mutation-time validation and validate_self() follow that contract without rejecting unrelated incomplete nodes.

How to reproduce the problem
  1. Build a graph with a collector connected to an If branch and an otherwise incomplete opposite branch.
  2. Add item/collection edges that produce a type mismatch through that branch.
  3. Compare whether add_edge() accepts the edit with whether validate_self() accepts the resulting graph.
  4. Repeat for the related Collect -> Iterate topology.
Additional context

This is a broader graph-editing contract question, separate from PR 343's targeted revalidation when an If branch becomes complete. Existing incomplete-node workflows must remain editable.

主要语言
Python
星标
28.3k
派生
3k
平均合并
6 天 3 小时
30 天内合并 PR
9

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

invoke-ai/InvokeAI 的其他 Issue

查看 invoke-ai/InvokeAI 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。