Files
dify/api/controllers/console/app
crazywoolaandClaude Opus 4.8 d859922943 feat(workflow-generator): enhance the AI auto-creation flow end-to-end
Implements the stage 1–5 program from #38174 (3.1 dropped per request).

Backend (api/)
- New POST /workflow-generate/suggestions: short, workspace-grounded example
  instructions generated on the tenant default model; soft-fails to {suggestions: []}.
- New POST /workflow-generate/stream: SSE plan-first generation that emits the
  planner result (plan) then the built graph (result), reusing the existing
  planner/builder/validate stages — the streamed result provably equals the
  blocking /workflow-generate return.
- mode:"auto" on both generate endpoints; a lightweight classifier resolves the
  concrete mode before planning and it is echoed back as `mode`.

Frontend (web/)
- Remove the low-value "Ideal output" field from the modal.
- Replace the static example chips with AI-generated, workspace-grounded
  suggestions (cached per session per mode, ↻ refresh, silent static fallback).
- Plan-first streaming: show the planner outline as it lands, then the graph
  (replaces the guessed phase timer) via an isolated SSE consumer that reuses
  the existing cookie-auth/CSRF/abort setup without touching handleStream.
- Review stage: planner metadata header (icon + name), an actionable error panel
  (Regenerate / Install tools / affected node), a /refine diff summary, and a
  post-apply nudge toward cmd+k /refine.
- Entry & input: ⌘/Ctrl+Enter to generate, autofocus, palette inline capture
  (`/create workflow <text>`), an "Auto" submenu option, and last-instruction
  resume across opens.

i18n keys added across all 23 locales. New tests cover the suggestions component
(fetch → fallback → refresh), the graph diff util, and the updated /create command.

Refs #38174

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 00:32:20 +08:00
..
2024-04-08 18:51:46 +08:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00
2026-06-18 16:35:29 +00:00