Commit Graph
7 Commits
Author SHA1 Message Date
科林 KELINandGitHub cbee24f850 fix: duplicate nodes losing parameters due to schema name collision (#87) (#88)
Root cause: when a workflow has multiple nodes of the same type (e.g. two
GeminiNanoBanana2), extract_schema_params gave them identical parameter
names (e.g. both "seed"). build_final_schema deduped them, but the
unique names were never synced back to ui_parameters. When the frontend
saved using ui_parameters, the duplicate names caused one parameter to
silently overwrite the other.

Changes:
- Refactor _get_auto_mapping to only decide exposure/required, not naming
- Add _assign_parameter_names for global context-aware naming:
  - Single node of a type → simple name (seed, prompt)
  - Multiple nodes → disambiguate with node title or node_id
- Add sync_names_back option to build_final_schema so ui_parameters
  and parameters stay consistent
- Enrich descriptions with node context for duplicate types

Closes #87
2026-03-30 16:01:31 +08:00
Kelin 6aaf17c3dc feat(api): add image upload support and fix error handling
- Mark LoadImage node's image field as type "image" in schema extraction
- Add POST /api/servers/{server_id}/upload/image proxy endpoint
- Auto-migrate legacy schemas with string type to image type at read time
- Fix ComfyUI error dict handling in comfyui_client.py (TypeError on dict += str)
- Add python-multipart dependency for file upload support
2026-03-24 16:41:51 +08:00
Kelin 2b81876738 fix(schema): support ComfyUI subgraph node IDs in schema extraction
ComfyUI subgraph workflows use colon-separated node IDs like "14:10"
instead of plain integers. The previous int() coercion crashed on
these IDs with ValueError. Store node_id as string throughout the
schema pipeline to support both plain and subgraph workflows.
2026-03-24 13:48:07 +08:00
e948ab84c2 Add workflow execution history backend (#43)
* feat: add workflow execution history backend

* build: refresh bundled workflow history UI assets

* fix: simplify common workflow parameter aliases

* fix: resolve output_dir symlinks and allow workflows with no image output

---------

Co-authored-by: Kelin <kelin@KelindeMacBook-Air.local>
2026-03-20 07:16:40 +08:00
Kelin b6fb9274ef fix(ui): correct workflow import edge cases 2026-03-18 09:28:22 +08:00
lgldlk f2defc547b fix(ui): prefer node-specific schema aliases 2026-03-18 02:10:07 +08:00
lgldlk 6c610a0ad5 feat(ui): add bulk workflow import support 2026-03-18 02:07:38 +08:00