mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Extend the Workflow Copilot editor panel to fix pre-publish checklist
errors alongside failed runs.
- Detect blocking checklist items client-side via useChecklist(nodes,
edges, {flowType}) and offer a "Fix N checklist issues" entry next to
the failed-run entry, splitting config errors (auto-fixable) from
unconnected/plugin-missing items (surfaced but not auto-fixed in v1).
- Extend use-copilot-session's create path to POST checklist_errors
(new startChecklistFix) alongside the existing failed_run_id path
(startFix unchanged).
- Drive checklist.await_recheck: re-run the checklist against the
current draft and submit the recheck action with
passed = (fixable remaining === 0) and the full remaining list.
- Add copilot.checklist* i18n keys to en-US, matching the existing
copilot.* keys' en-US-only precedent for this feature.
Workflow Copilot
Shared session/stream logic for the enterprise workflow-copilot Fix API, consumed by both the standalone debug page and the in-editor Workflow Copilot panel.
Internal Modules
None.
External Modules
config:CSRF_COOKIE_NAME,CSRF_HEADER_NAMEfor authenticated console requests.