mirror of
https://github.com/langgenius/dify.git
synced 2026-05-30 13:47:52 +08:00
Per PRD (Misc Legacy / expert zone), an Agent App must support conversation opener, follow-up suggestions, citations, content moderation and annotation reply. These app-level presentation features live on app_model_config (design Q3), but create_app never made one for Agent Apps, so they were unconfigurable and /parameters returned hardcoded defaults. create_app now creates a model-less app_model_config row for AppMode.AGENT (model/prompt/tools stay in the Agent Soul; agent_mode left unset so App.is_agent stays False and the app mode is not mutated). The webapp /parameters endpoint and the chat pipeline already read feature flags from this row. Live-verified: a fresh Agent App gets the row; setting opening_statement + suggested_questions persists and surfaces through /v1/parameters, while chat continues to stream Soul-backed answers. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>