Skip to content

chore(graphon): track remaining issues from the 0.9.0 upgrade #47571

Todo

Description

@WH-2099

Track unresolved issues identified while validating the Graphon 0.9.0 upgrade in #45356, including Graphon, Dify, dependency, and plugin follow-ups.

  • Loop / Iteration replies cannot be paused and resumed reliably — Support live Answer streaming through Loop and Iteration containers graphon#356, implementation: feat(response-stream): preserve replies across pause and resume graphon#412.
    Verify saving and restoring child replies in Dify, including runs paused before the upgrade.

  • Workflow Tool fails when its Loop ID matches one in the calling workflow — bug(response-stream): Workflow Tool fails when both workflows reuse a Loop ID graphon#452.
    Verify that the two workflows' container executions are kept separate.

  • Tongyi drops one of two calls to the same tool — bug(tongyi): duplicate tool call IDs drop calls to the same tool dify-official-plugins#4388.
    Release the plugin fix and verify that both calls execute with distinct tool call IDs.

  • A child Answer loses trailing text when an outer source is skipped — bug(response-stream): child Answer drops suffix when an outer source is skipped graphon#455.
    Deferred for now; verify complete streamed text for both Loop and Iteration when this is addressed.
    Also reproduced when an outer node succeeds and its object omits an optional field used by the child Answer.
    In both Loop and Iteration the completed child Answer is Value() next=ok., but the SSE reply, blocking reply, and message save path contain only Value( before the next root reply.
    The same missing field on a local source renders the complete suffix. Graphon child selector completion

  • A child Answer keeps the failed attempt's text after a successful retry — Specify the formal semantics of streaming responses from Answer nodes graphon#436, section 5.
    This behavior is already documented upstream; the Dify comparison confirms that a Loop / Iteration can finish successfully while the user receives the abandoned partial answer.
    Resolve the retry/replacement semantics in Graphon and verify that streamed, blocking, and persisted Dify answers match the successful retry.

  • Standalone Agent crashes when a tool name arrives after an unnamed update — fix(agent): adopt upstream fix for nameless tool-call stream crashes #47572; upstream: Streamed PartEndEvent carries the wrong part (or IndexError) after a nameless tool-call delta pydantic/pydantic-ai#7906 and Build each PartEndEvent from its own part, so a stream with many parts stays linear and a tool call without a name no longer ends the wrong part pydantic/pydantic-ai#15210.
    Adopt a Pydantic AI version containing the upstream fix, update the dependency declarations and lockfile, and verify the real Agent tool round trip plus existing adapter behavior.

  • Resetting a Secret node output writes its masked log value into the draft — fix(workflow): prevent secret resets from restoring masked log values #47573.
    Reject log-backed Secret resets, preserve the current value and edited state, and prompt the user to rerun the producing node.
    Cover app, knowledge-pipeline, and snippet reset endpoints; this scope requires no database migration or additional stored secret snapshot.

  • Gemini replays split thinking blocks as ordinary assistant text after a tool call — [gemini] Split thinking blocks are replayed as ordinary assistant text after tool calls dify-official-plugins#4390.
    Fix the Gemini formatter's handling of thinking spans across adjacent text blocks, preserve signed/opaque provider state, and verify streaming and blocking tool rounds in Dify.

  • Routed Agent nodes inside Loop / Iteration emit the unselected Answer (review item 11, P1) — Graphon, child node classification.
    The child reply graph reads the class execution type and misses DifyAgentNode's configured BRANCH instance.
    With route A selected, only Answer A executes, but the current queue, SSE, blocking reply, and saved message contain APPROVED;REJECTED;DONE; the exact old pair returns APPROVED;DONE.
    Reproduced for Iteration and Loop; root-level and explicit fail-branch controls pass.
    Derive effective child execution behavior from validated configuration or authoritative frame metadata, and verify that only the selected reply reaches every Dify output boundary.

  • An empty result changes a flattened Iteration output to array[any] and breaks List Operator (review item 12, P1) — Graphon, array type selection.
    A real Code node declares array[string] and returns [] in one round and ["ok"] in another.
    With flattening enabled, the old pair returns ["ok"] and succeeds; the current pair creates ArrayAnyVariable and the downstream List Operator fails.
    Reproduced in both orders for string and number arrays through DifyNodeFactory; a nonempty-only control passes.
    Ignore untyped empty arrays when choosing the flattened element type, retain a valid all-empty fallback, and verify the downstream node.

  • The typed factory accepts a scalar string as array[any] (review item 13, P2) — Graphon, typed factory validation.
    PATCHing an editable array[any] draft variable with {"value":"abc"} now returns 200 and persists the string; the loader then supplies ["a","b","c"] as Iteration items.
    The exact baseline raises TypeMismatchError and preserves the previous array.
    This requires a malformed console API request; the GUI disables this array editor.
    Reject scalar strings/bytes at the shared array validation boundary while preserving supported arrays; verify rejection leaves persisted draft state intact.

  • Snapshots duplicate unchanged object payloads for every alias (review item 14, P2) — Graphon, event snapshot and response value capture; related general concern: RFC: Restructure the engine as an explicit CESK-style machine with a functional core graphon#405.
    A bounded reproduction uses a 318,583-byte JSON object, 32 serial Variable Aggregators, and a literal Answer, with actual Dify input admission and execution-cache update logic.
    Both live pools retain one shared list, but the new response pool and Dify execution cache each retain 33 distinct copies.
    An independent repeat measured 0.033 s / 224,688 KiB peak RSS before and 1.011 s / 383,684 KiB after, approximately 155 MiB extra.
    Repository writes were stubbed; these figures measure engine/cache costs, not full request latency, and no OOM was induced.
    Preserve snapshot isolation while sharing unchanged payload snapshots and limiting retained response values to required selectors; add a bounded alias-retention regression.

  • A parallel join inside Loop or Iteration publishes a stale conversation value (review item 15, P1)
    Fork the container body into a Variable Assigner that changes conversation.status from pending to confirmed and a Variable Aggregator that reads an unrelated field, then join both paths at an Answer that renders the status.
    With both the old and current pins, the Answer node completes with status=confirmed.
    The old pin delivers that value, but the current pin emits status=pending. before the assigner starts, and the same stale value reaches the SSE reply, blocking reply, and message save path.
    Serial controls return the correct value in both versions, and a parallel Loop reproduces with one or three workers.
    The equivalent root graph already had this behavior before the upgrade.
    Before rendering the selector, wait for any upstream assignment that can still change it to commit or be skipped. Graphon response reachability

  • Variable Assigner silently rounds a large integer written to a number variable (review item 16, P2)
    Initialize a Chatflow conversation variable declared as number to 0.5, then overwrite it with 9007199254740993 from a Python Code node that declares a number output.
    Both runs receive the exact integer from Code, and the old run preserves it through the assignment.
    The current run coerces it to 9007199254740992.0, so the next Code node's equality check changes from true to false.
    An initial value of 0 preserves the same integer in both runs.
    Preserve the exact integer on assignment to the public number type while keeping the variable's identity and metadata. Graphon variable copy

  • Agent v1 custom outputs can disappear from Loop and Iteration replies (review item 17, P2)
    An Agent strategy declares a string output named result and uses the plugin SDK's create_variable_message("result", "FINAL") to return it once.
    In both versions the Agent outputs FINAL and the following Answer computes HEADFINALTAIL on each pass.
    The old pin delivers HEADFINALTAIL per pass, while the new pin delivers HEADTAIL in the queue, SSE reply, blocking response, and message save path.
    This comparison used an authored SDK strategy.
    Ordinary text and streamed custom variables pass in both versions, and the equivalent root failure predates the upgrade.
    Dify's Agent transformer emits an empty final chunk for every custom variable, including fields that never streamed.
    Closing only streams that emitted a chunk restored all four outputs in both containers in an isolated check. Dify Agent transformer · Existing Tool node fix

  • Local PPTX extraction can omit visible text in a rotated or flipped group (review item 18, P2)
    The upgrade moves Unstructured from 0.27.5 to 0.27.38. Dify dependency pin
    On a 10 by 7.5 inch slide, put two text boxes at x = 13 inches in a group, move the group to (2, 2) inches, and rotate it 20 degrees or flip it horizontally.
    After applying the group transform, every corner of both text boxes lies inside the slide.
    With a separate title, the old parser returns the title and both labels, while the new parser returns only the title. With only the affected group, the Document Extractor and workflow both succeed with empty text.
    The same omission reaches knowledge documents when ETL_TYPE=Unstructured uses the local parser. Dify knowledge extractor
    Swapping only the parser version changes the result. Ungrouped and translated groups retain their text in both versions.
    The visibility check compares the child's local coordinates with the slide bounds when the group has a rotation or flip.
    Apply the full group transform before checking visibility, adopt the corrected dependency, and verify both local extraction paths. Unstructured coordinate fallback · Upstream group transform change

Check off each item after the required changes are available in the engine, dependencies, plugins, or Dify code actually used, and the affected behavior has been verified in Dify.
An upstream merge alone does not complete the Dify adoption and verification work.

Activity

  1. added this to the next version milestone on Dec 1, 2026
  2. self-assigned this
    on Dec 1, 2026
  3. egg119 commented on Dec 2, 2026

    @egg119
    Contributor

    Review item 17 has a patch: #47579 closes the custom-variable stream only when the transformer actually streamed it, so a non-streamed Agent output is no longer replaced by an empty final chunk inside Loop / Iteration. Unit coverage is in the PR; the container-level check from this issue was not re-run here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions