mirror of
https://github.com/langgenius/dify.git
synced 2026-08-27 03:01:54 -04:00
The stop response api is ineffective for "chat assistant" applications but works for "ChatFlow-type" applications. #7887
Closed
opened 2026-02-21 18:22:52 -05:00 by yindo
·
29 comments
No Branch/Tag Specified
main
codex/fix-e2e-apps-readiness
chore/a11y-home
deploy/dev
feat/difyctl-version-from-dify-release
hotfix/1.17.0-fix.4
feat/fix-amplitude-registration-tracking
deploy/archive-nullable-schema-evolution
zhaohao1004/fix-archive-nullable-schema-evolution
feat/creator-profile-home
fix/webapp-no-stop-on-conversation-switch
deploy/konwledge
feat/appdeploy-file-grant
refactor/console-workflow-run-application-service
dependabot/uv/api/lts/1.13.x/python-packages-77b02bc26f
lts/1.13.x
dependabot/uv/api/lts/1.13.x/llm-2e6a596d89
dependabot/uv/api/lts/1.13.x/google-cea0a9e1dd
dependabot/uv/api/lts/1.13.x/pydantic-c1392376de
refactor/console-workflow-run-service
laipz8200/adapt-graphon-engine-architecture
sim117
cleanup/test-config-attributes-controller-storage
cleanup/test-config-attributes-account-feature
feat/dify-builder
refactor/openapi-auth-dead-seam
build/appdeploy-file-grant
build/feat/hitl-im-dev
user_access_policy_pagnination
fix/zh-ui-token-terminology
hotfix/1.17.0-fix.3
hotfix/1.17.0-fix.2
codex/hotfix-1.17.0-fix.0
hotfix/1.17.0-fix.1
feat/hitl-im-dev
fix/owner-transfer-demote-to-normal
cleanup/test-config-attributes-controller-final
cleanup/test-config-attributes-core-services
hotfix/1.17.0-fix.0
deploy/saas
test/webapp-login
stack/integration-tests-13-node-output
stack/integration-tests-14-workflow-archiver
stack/integration-tests-11-message-cleanup
stack/integration-tests-12-draft-variables
stack/integration-tests-08-api-token-redis
stack/integration-tests-09-plugin-lifecycle
stack/integration-tests-10-container-boundaries
stack/integration-tests-07-duplicate-coverage
stack/integration-tests-05-model-tools
stack/integration-tests-06-parameter-extractor
stack/integration-tests-03-response-filter
stack/integration-tests-04-code-node
feat/app-multi-env-v2-chatflow-support
build/skills-ui-wta
deploy/agent
build/staging-1.16.1-fix.12
hotfix/1.16.1-fix.12
build/snp682-groups-9347c0750d
song/snp-682-ip-allowlist
zhaohao1004/dify-agent-docker-benchmark
dependabot/uv/api/google-5b99edf8f9
dependabot/uv/api/vdb-565409f261
dependabot/uv/api/database-cf6e6d5e5f
dependabot/uv/api/opentelemetry-b8005594e1
dependabot/uv/api/lts/1.13.x/dev-4957ee5039
dependabot/github_actions/lts/1.13.x/github-actions-dependencies-f4736e409f
dependabot/uv/api/llm-46e0cee538
dependabot/uv/api/lts/1.13.x/storage-4310e8b8d8
dependabot/uv/api/lts/1.13.x/flask-1086fc46af
dependabot/uv/api/lts/1.13.x/database-c0fba9b420
deploy/agent-home-snapshot
copilot/remove-slider-component
copilot/remove-slider-component-again
copilot/remove-slider-component-another-one
build/staging-1.16.1-fix.11
release/e-1.16.1
fix/depot-playwright-runtime
hotfix/1.16.1-fix.11
feat/enterprise-home-snapshot-adapter
deploy/enterprise
fix/37988-protect-rbac-control-plane
feat/shellctl-snapshot-endpoints
build/clean-tidb-collections
build/staging-1.16.1-fix.10
hotfix/1.16.1-fix.10
refactor/telemetry-typed-events
agent/playwright-e2e-install-timeout
fix/remove-only-me-resource-access
codex/fix-research-import-latency
laipz8200/completion-workflow-entry
laipz8200/workflow-persistence-mixed-mode
laipz8200/allow-human-input-in-containers
build/staging-1.16.1-fix.8
build/staging-1.16.1-fix.9
hotfix/1.16.1-fix.9
feat/marketplace-homepage-redesign
hotfix/1.16.1-fix.8
copilot/fix-github-actions-build-job
fix/40106-reject-ownerless-pending-imports
codex/icon-button-web-shared
build/fix-multiple-retrieve-fail-fast
hotfix/1.16.1-fix.7
build/community-app-deploy-permission
hotfix/1.16.1-fix.7-to-merge
gh-readonly-queue/main/pr-40490-c1e94f8ee7a6c571209b0d415d22ce6b2d1d8d3e
codex/fix-knowledge-upload-migrations
hotfix/1.16.1-fix.6
hotfix/1.16.1-fix.5
feat/workflow-copilot
hotfix/1.16.1-fix.4
agent/backport-40403-hotfix-1.16.1-fix.4
backport/pr-40403-to-1.16.1
feat/marketplace-homepage-redesign-deploy-dev
demo/byoa-local-codex
codex/refactor-webapp-code-fields
codex/refactor-mcp-header-icons
codex/a11y-human-input-content-toggle
codex/cleanup-credential-icon-component
codex/refactor-citation-component-type
codex/refactor-tool-detail-icons
codex/a11y-citation-more-button
codex/a11y-citation-measurement-tree
codex/refactor-version-filter-icon
codex/refactor-plugin-type-icons
codex/refactor-pdf-preview-icons
codex/refactor-chat-history-header-icons
codex/refactor-chat-settings-icons
codex/refactor-assigner-panel-component
codex/refactor-assigner-add-icon
codex/refactor-chat-variable-panel-icons
codex/refactor-prompt-generator-component
codex/refactor-prompt-generator-icon
codex/refactor-code-generator-component
codex/refactor-code-generator-icon
codex/refactor-human-input-preview-component
codex/refactor-external-retrieval-component
codex/refactor-external-retrieval-close-icon
codex/refactor-external-api-modal-component
codex/refactor-external-api-modal-icons
codex/refactor-external-api-panel-component
codex/refactor-external-api-panel-icons
codex/refactor-external-api-card-component
codex/refactor-external-api-card-icons
codex/test-external-api-card-actions
codex/refactor-human-input-action-component
codex/refactor-human-input-delete-icon
codex/refactor-variable-inspect-panel-component
codex/refactor-variable-inspect-close-icon
codex/refactor-agent-log-navigation-icon
codex/refactor-image-previewer-css-icons
codex/refactor-generated-result-component
codex/refactor-generated-result-css-icon
codex/refactor-annotation-control-component
codex/a11y-chat-header-actions
codex/a11y-plugin-credential-coverage-tests
codex/a11y-plugin-credential-action-tests
codex/a11y-plugin-credential-actions
codex/a11y-plugin-item-action-tests
codex/a11y-embedded-chat-settings-trigger
codex/a11y-tool-provider-card
codex/a11y-chat-history-settings-trigger
codex/refactor-tab-filter-story-icons
codex/refactor-tab-filter-component
codex/refactor-signup-email-field
codex/refactor-webapp-auth-test-mocks
codex/test-collaboration-loading-status
codex/test-plugin-loading-status
codex/test-notion-loading-status
codex/a11y-dataset-menu-item-button
codex/refactor-dataset-menu-item
codex/refactor-scroll-to-selected-node-action
codex/refactor-member-search-input
codex/refactor-member-selector-component
codex/a11y-chat-dropdown-name
dependabot/uv/api/pypdf-6.15.0
dependabot/uv/dify-agent/pypdf-6.15.0
build/env-webapp-url
codex/integrations-intent-prefetch
backport/pr-40402-to-1.16.1
dependabot/uv/dify-agent/h2-4.4.1
feat/saas-integrations-initial-load-performance
linw/snp-620-per-purpose-file-storage
dependabot/uv/api/lts/1.13.x/vdb-72526f7860
hotfix/1.16.1-fix.3
laipz8200/hotfix-1.16.1-fix.3
copilot/dify-checklist-implementation
copilot/dify-ui-vitest-visual-test
copilot/system-features-bootstrap-component-logic
copilot/update-toast-api
hotfix/1.16.1-fix.2
codex/deprecate-sys-files-compat
hotfix/e-1.15.0
release/ee-1.15.0-hotfix
hotfix/1.16.1-fix.1
song/snp-559-workflow-run-pauseresume-in-rolling-update
zhaohao1004/revert-dify-agent-config-materialization
hotfix/1.16.1-fix.0
feat/saas-home-initial-load-performance
zhaohao1004/fix-dify-agent-e2b-shellctl-retry
build/multi-environment-webapp-fix
feat/multi-environment-webapp
linw/hitl-im-dev
linw/isolate-from-local-packages
fix/39733-agent-file-domain-main
build/app-multi-env-mcp-server-refresh
copilot/investigate-issue-39733
build/sample-tidb
build/appdeploy-v2
feat/appdeploy-webapp-channel
linw/snp-586-workflow-run-sse-with-wrong-500-status
yanli/e2b-s3-agent-environment-backend
codex/upgrade-openapi-ts-autofix
codex/fix-skill-autosave-conflict
refactor/cli-release-script-layering
fix/step-tour-focus-containment
build/esq1-190
perf/optimize-markdown-renderer
codex/ssr-detail-sidebar-cookie
codex/defer-permission-query-until-workspace-ready
hotfix/1.15.0-fix.17
feat/cookieyes-ga
feat/marketplace-homepage-hero
feat/gen-ui
hotfix/1.15.0-fix.16
copilot/console-api-dispatch-version
0721-happy-path-smoke
feat/add-ce-telemetry
build/test-annotation
codex/migrate-knowledge-fs
copilot/fix-security-issue
release/e-1.11.4
hotfix/cus-1422-enterprise-api-timeout
feat/fix-undefined-answer-preview
hotfix/1.15.0-fix.15
hotfix/1.15.0-fix.14
deploy/workflow-archive-catalog-discovery
0717-knowledge-fs-contract
feat/secret-scrub-persistence
feat/llm-ft-timeout
feat/appdeploy-selected-workflow-dsl
0715-new-rag
hotfix/1.15.0-fix.12
hotfix/1.15.0-fix.12-cherrypick
hotfix/1.15.0-fix.13
build/invite-seats-precheck
hotfix/1.15.0-fix.11
hotfix/1.15.0-fix.10
zhangxin/eng-558-licensed-seats-1.15
fix/wta-1307-effect-suspense-read
feat/cli-skills-agents
0713-vp-lint
fix/agent-roster-answer-completion-main
feat/pay-by-invoice
codex/run-external-e2e-main-ci
agent/remove-sandbox-bind-mounts
feat/agent-v2-e2e-test
hotfix/1.15.0-fix.9
hotfix/1.15.0-fix.8
build/test-archive-export
linw/restore-agent-message-delta-feat
hotfix/1.15.0-fix.7
hotfix/1.15.0-fix.6
codex/pr-38227-session-types
codex/pr-38227-session-scope-split
fix/ui-fix
hotfix/1.15.0-fix.4
codex/review-pr-38480
hotfix/1.15.0-fix.2
copilot/fix-web-full-stack-e2e-job
fix/dify-2738-agent-node-dsl-export
hotfix/1.15.0-fix.3
laipz8200/scope-segment-route-lookup
chore/i18n-sync-7b7956f3e7ca-e901a65a
codex/upgrade-orpc-v2-beta
hotfix/1.15.0-fix.1
codex/upgrade-next-16-3-preview
hotfix/1.15.0-fix.0
hotfix/web-detail-adjustment-before-release
release/e-1.15.0
codex/replace-lamejs-with-mediabunny
copilot/add-more-tests
deploy/archive-db-resilience
fix/studio-nav-home-button
hotfix/1.14.2-fix.13
worktree-token-expired-error-code
hotfix-1.14.2-fix.12
codex/agent-v2-state-graph
codex/refactor-deployment-detail-components
hotfix/1.14.2-fix.12
build/fix/workflow-error-hanging
work/dify-2585-agent-drafts-pr
fix/dify-2574-soul-files-kv
fix/dify-2554-debug-conversation-per-user
hotfix/1.14.2-fix.11
test/cli-e2e-error-body-contract
build/optimize-clean-messages-eligible-apps
zhaohao1004/optimize-clean-messages-cursor
gh-readonly-queue/main/pr-37592-c71f03f5902031b7c02e61af3aff5c2dee6f7d85
build/optimize-clean-messages-cursor
feat/country
codex/vp-fmt-migration
hotfix/1.14.2-fix.10
hotfix/1.14.2-fix.9
hotfix/1.14.2-fix.8
hotfix/1.14.2-fix.7
hotfix/1.14.2-fix.6
codex/page-title-updates
feat/agent-mention-stable-ids
fix/guard-workspace-with-defualt-roles
build/pr-37227-free-plan-workflow-run-cleanup
feat/cli-e2e-test-suite
feat/ui-start-node
feat/hitl-file-in-body
copilot/dify-team-question-agent-node
fix/wta-438-device-sso-redirect-origin
hotfix/1.14.2-fix.5
feat/dev-snippet-fronted
feat/mcp-token-transfer
chore/keep-info-icon-the-same-postion
codex/local-app-list-tag-filter
feat/snippet-new
hotfix/1.14.2-fix.4
codex/migrate-var-reference-combobox
hotfix/1.14.2-fix.3
feat/marketplace-template
chore/deploy-saas-workflow
hotfix/1.14.2-fix.2
build/cli
codex/snp-406-pointer-position-ref
hotfix/1.14.1-fix.3
build/feat/model-type-migration-script
fix/webapp-disabled-not-jump-to-webapp-login
fix/lb-model-type-dedup
song/eng-379-file-output-check-executor
fix/tag-trigger-preserve-case
fix/model-type-enum-construction
refactor/add-missing-override-decorator
work/web-mcp-1.14.1
copilot/check-runtime-limits
laipz8200/workflow-response-stream-filter
copilot/query-issues-pr-images
laipz8200/fix-autofix-contract-generation
copilot/fix-autofix-job-failure
codex/fix-scrolling-issue-with-overflow-visible
copilot/research-retrieval-attachment-consumption
copilot/research-agent-node-implementation
chore/upgrade-xyflow-v12
hotfix/1.14.1-fix.1
build/1.14.1-fix.1-langfuse
hotfix/1.14.1-fix.2
feat/lts-lazy-dialogue-count
fix/can-not-create-knowledge
codex/fix-marketplace-hero-shake
codex/tag-name-url-filter
upgrade-graphon-to-0-3-0
codex/app-delete-enter-confirm
codex/revert-pr-35708
chore/remove-dify-deploy-script
chore/simpler-deploy
lts/1.13.x-fix-35910
feat/storage-path-prefix
hotfix/1.13.3-fix10
hotfix/1.13.3-fix9
hotfix/1.14.0-fix.4
hotfix/1.14.0-fix.3
hotfix/1.14.0-fix.2
revert-35748-4-30-open-api
feat/upgrade-graphon
copilot/research-celery-task-ttl
hotfix/1.14.0-fix.1
copilot/fix-css-issue
feat/s3-public-base-url
hotfix/1.13.3-fix8
build/depot-speed-benchmark-20260426
build/depot-speed-benchmark-20260426-warm
hotfix/1.13.3-fix7
feat/evaluation
fix/workflow-line
chore/dependency-upgrade
deploy/zhaohao
feat/replayable-stream
feat/show-the-hierarchy-in-phonenix-trace
p363-reviewed
build/billing-v3
copilot/list-contributions-to-dify
cursor/migrate-tooltip-to-popover-infotips
refactor/quota-service
feat/new-biliing-quota
hotfix/1.13.3-fix6
cursor/dify-ui-infra
p363-hjlarry
cursor/refactor-select-trigger-api
chore/lts-13x-bump-deps
codex/tighten-button-tone-types
locate-queue-autocreate-deps
hotfix/1.13.3-fix5
feat/new-agent-node
hotfix/1.13.3-fix4
feat/per-db-credential
chore/i18n-sync-208604a3a819-9220dd74
chore/i18n-sync-1b369cede4b4-0e13ce3f
chore/i18n-sync-c93e40212e4c-0e13ce3f
codex/fix-vite-audit-in-sdk-test
copilot/fix-agent-dialogue-input-limit
codex/dify-ui-package-migration
4-2-no-global-loading
fix/ps-not-send
3-18-no-global-loading
feat/support-agent-sandbox
hotfix/1.13.3-fix3
hotfix/1.13.3-fix2
4-1-unocss
build/feat/saas-quota-v4
feat/remove-unused-is-deleted-from-conversation
codex-add-podman-compose-dev-scripts
fix-partnerstack-cookie-sync
hotfix/1.13.3-fix1
3-31-vite-task-cache
test/add-test-case-for-prompt-editor
build/feat/saas-quota
build/feat/saas-quota-v2
deploy/agent-dev
yanli/fix-iter-log
review-myscale-sqli
codex/force-node24-for-actions
ci/docker-build-narrowing
chore/dependabot-alert-to-bot
verify-email-reset-flow
3-26-cache-lint-for-autofix
gh-readonly-queue/main/pr-34120-2cbcf9518e40104286a3034f3c3c688cd4ff9fbf
gh-readonly-queue/main/pr-34123-1c72b8d9db03b93b3fc7f86bc522e53806f5a8f0
gh-readonly-queue/main/pr-33960-38285aa1ac6de98614456f49b4d834fe503f4e58
p383
yanli/phase3-code-scope
test/workflow-app
codex/migrate-old-toast-calls-and-update-translations
hotfix/1.13.2-fix2
focal-quokka
codex/fix-issue-33422-in-repository
hotfix/1.13.2-fix1
copilot/refactor-test-config-leak-fix
build/release-1.13.2
fix-kpa-issue
build/release-1.13.1-rc.3
3-18-dev-with-http2
build/release-1.13.1-rc.2
3-16-revert-changes
3-16-add-csp
build/release-1.13.1-rc.1
feat/source-for-plugin-tasks
3-16-next-lib
revert-33484-dependabot/pip/api/python-packages-2eba66ec58
move-trigger-nodes
copilot/refactor-test-config-leak-detection
fix/enterprise-api-error-handling
release/e-1.12.1
fix/vinext-deps
yanli/docx-image-render
copilot/analyze-dify-code
deploy/clean-task-trace
copilot/sub-pr-33044
3-6-type-check
feat/model-provider-refactor
copilot/refactor-unnecessary-cast-call
build/export-app-messages
1.12.1-otel-ee
hotfix/1.13.0-fix.4
update-checker
test/ui-primitive-wrapper-tests-pr
hotfix/1.13.0-fix.3
refactor/base-comp
deploy/memory-usage
hotfix/1.13.0-fix.2
hotfix/1.13.0-fix.1
build/sandbox-clean-job-260302-1
build/sandbox-clean-job
fix/otel-upgrade-e-1.12.1
build/optimize-workflow-run-cleanup
move-core-prompt-runtime
hotfix/1.12.1-fix.6
copilot/remove-pm2-from-docker
move-token-buffer-memory
32589-main-repo
fix/access-mode-sso-verified
refactor/remove-workspace-mutate-from-context
2-11-fix-lint
feat/plugins-marketplace-ssr-prefetch-loading
build/message-clean-performance-log
refactor/template-transform-node
hotfix/1.12.1-fix.5
2-9-stable-test-2
pre-align-hitl-frontend
fix/preserve-UNC-paths-in-conversation-opner
hotfix/1.12.1-fix.4
hotfix/1.12.1-fix.3
feat/add-update-all-plugin-button
refactor/share
hotfix/1.12.1-fix.2
test/inprove-quality
feat/add_templates
hotfix/1.12.1-fix.1
fix/ee-1511-set-default-provider-user-id-bug
copilot/fix-pnpm-test
hotfix/1.12.1-fix.0
feat/vibe-wf
fix/fix-test
fix/console_ns_import
release/1.12.1
fix/workflow-sync-draft
refactor/ssr-prefetch-zustand-removal
1-24-kubb-generate
refactor/migrate-react-window-to-tanstack-virtual
fix/input-ime-onpressenter
1-30-fix-failed-test
feat/structured-output-with-sandbox
yanli/init-ty
hotfix/1.11.4-fix.4
fix/trigger-plugin-output
fix/parallel-generation-render
refactor/configuration
yanli/add-opaque-body
build/billing-refactor-test-2026012701
refactor/debug-and-preview-store
refactor/tools-workflow
build/debug-billing-refactor
build/billing-service
build-billing-service
feat/add-agentation
refactor/app-components
build/collaboration
copilot/sub-pr-31424
refactor/local-storage
refactor/skill-bundler
hotfix/1.11.4-fix.3
build/archive-workflow-run
feat/pull-a-variable
hotfix/1.11.4-fix.2
copilot/sub-pr-30849
hotfix/1.11.4-fix.1
1-21-test-window-is-not-defined
revert-30727-feat/model-total-credits
copilot/sub-pr-31283
zhsama/multi-turn-popup
zhsama/panel-var-popup
12-19-demo-for-app-store
refactor/migrate-app-detail-to-tanstack-query
build/clear-message
feat/credential-sync-fix-ee
feat/llm-first-token-timeout
zhsama/assemble-var-input
release/e-1.11.2
feature/task-quadrant-view
zhsama/llm-warning-ui
build/clear-workflow-run
zhsama/agent-at-nodes
build/1.11.4
release/e-1.6.0-fix.1
release/e-0.15.8-fix.1
1-14-remove-web-app-access-token
refactor/plugins-detail
fix/reset-dev
feat/llm-support-tools
feat/knowledge-summary-index
fix/preact-security-vulnerability
copilot/fix-clear-query-params-test
refactor/query-params-nuqs
chore/upgrade-pnpm-10.28.0
8c92-update-api-core
detached
chore/i18n-sync-20260107-104636
chore/i18n-sync-20260107-102654
feat/grouping-branching
feat/agent-node-v2
hotfix/1.11.2-fix.3
feat/llm-node-support-tools
refactor/remove-axios-dependency
refactor/web-service-hooks
fix/pwa-plugin-migration
chore/refactor-text-generation
hotfix/1.11.2-fix.2
release/e-1.11.1
release/e-1.9.2
release/e-1.8.2
hotfix/1.11.2-hotfix-1
refactor/chat-messages-service-api
fix/knowledge-retrieval-node-affected-by-past-version
fix/esbuild-dependabot-145
chore/automated-i18n-updates-02e0fadef78f0c888b79e7a52ae6714ac73effdc
chore/automated-i18n-updates-eb73f9a9b9fc9eee6be786d2bf5f41fc77e240c4
hotfix/1.11.1-2
refactor-text-generate-item
feat/end-user-oauth
feat/add-qdrant-to-tidb-migration
codex/run-pnpm-lint-fix-and-commit-changes
feat/document-test
feat/e2e-testing
deploy/trigger-dev
hotfix/1.11.1-1
e-260
refactor/use-log-react-query
feat/fallback-interface-for-unauthorized-datasource-node
hotfix/1.10.1-fix.4
refactor/app/components/app/text-generate/item/index.tsx-and-add-test
release/e-1.6.0
hotfix/1.10.1-fix.3
hotfix/1.10.1-fix.2
feat/tracking-1203
deploy/end-user-oauth
hotfix/1.10.1-fix.1
refactor/marketplace-react-query
feat/detect-cognitive-complexity
fix/codeowners
fix/httpx_timeout_parameters
feat/end-user-auth-dummy-apis
chore/re-point-doc-urls
fix/share-markdown-xss
feat/data-tracking
feat/memory-orchestration-be
build/trigger-billing
chore/remove-docker-legacy-dir
copilot/reverse-engineer-dify-application
feat/amplitude
feat/trigger-saas
mysql-adapt
test/build-diff-edition
feat/no-root-image
feat/trigger
feat/ga-tracking
feat/collaboration
mysql-adaptation
feat/sqlalchemy-type-annotations
build/trigger-1
build/self-tenant-queue
mcp-conditional-capability
fix/mcp-capability
hotfix/1.9.2-fix.3
hotfix/1.9.2-fix.2
feat/iteration-node
hotfix/1.9.2-fix.1
hotfix/1.9.1-fix.1
e1ca7a9bdb0443b9f027b6de16
fix/login-status
feat/gtag-1016
test/monaco-editor-and-remix-icon-upgrade
copilot/fix-ce7a9189-f70c-4ea9-81ba-3f49303104d6
feat/memory-orchestration-be-dev-env
build/trigger
feat/add-knowledge-pipeline-template-command
chore/workflow-performance
copilot/fix-fc039c44-aa24-4844-82b2-e9ac237a13e9
test/log-refactor
chore/ssrf-config
feat/pinecone-vdb
copilot/fix-d8c5989d-5a30-418f-8dc4-099cf1f37218
deploy/rag-dev
hotfix/1.9.0-fix.2
pinecone
fix/document-query
feat/trigger_backup
feat/playwright-integration
feat/trigger_merging
feat/chunk-deduplication
feat/crendential-policy-default-check
feat/credential-policy
release/e-1.8.1
fix/template-list
feat/end_user
feat/trigger-fe
revert-25628-refactor-24421-app-datasets-part1
fix/plugin-tag-fallback
fix/unselect-credential
feat/limit-conv-var-desc-length
feat/rag-pipeline-service-api
fix/empty-plugin-list
feat/plugin-readme
feat/plugin-readme-fe
feat/container-node-extract-mapping
bug1
fix/model-credential
feat/big-var-value-show-fe
build/1.7.2-fix.2
release/e-1.7.2
build/boolean-type
feat/oauth-provider-fe
build/0.7.2-fix.1
feat/model-credentials
feat/model-auth
feat/rag-2-preview
release/e-1.7.1
fix/hotfix-tool-provider-deadlock
feat/knowledge-pipeline-access-control
config-tool-file-size
13604-when-using-redis-cluster-for-caching-add-global_prefix-to-all-keys-cached-by-redis
feat/model-credentils
build/oauth
feat/oauth
feat/human-input
build/plugin-auto-upgrade
test/performance
feat/tool-plugin-oauth
feat/tool-oauth
temp-feat-owner-transfer-enterprise-frontend
release/e-3.0.2
feat/plugin-auto-upgrade-fe
chore/offline-the-sys-files
feat/rag-pipeline
feat/r2
release/e-3.2.0
wtw/rag-pipeline
feat/add-retrival-field-in-dataset
feat/webapp-verified-sso-main
fix/app-not-published-error
feat/webapp-verified-sso-260
v141-hotfix
fix/20326-tool-invoke-error-instance-account
fix/19933-account-object-has-no-attribute-_current_tenant-when-workflow-uses-workflow-as-tool-node
hotfix/0519
fix/e-legacy-clean-up
fix/admin-permission
fix/e-admin-permission
feat/model-memory
feat/webapp-auth-api
1.0.0-fix
revert-17133-fix/i16990-text-to-language-settings
e-0156
hotfix/translation-fix
fix/slider-style-error
e-0154
release/0.15.6-alpha-1
cohere/cleanup-free-tenants-logs
chore/auto-dify
fix/rag-infinity-spaces-loop
fix/dataset-admin
fix/expose-debugging-port
fix/tool-info
fix/aws-s3-r2-compatible
feat/knowledge-metabase
fix/fail-branch-stream-output-error
release/0.15.3-fix1
feat/14009-feature-request-support-for-retrieving-historical-conversations-without-from-enduser-id
feat/upgrade-unstructured-version-10.2
feat/classnames-sort
feat/upgrade-unstructured-version
fix/version-check
fix/handle-agent-none-value
fix/agent-params-pasring
fix/agent-parallel
feat/knowledge-dark-mode
feat/custom-tool-input
release/0.15.2-fix1
0.15.1-admin-apis
feat/support-docx-image-view
feat/agent-stream-output
feat/workflow-node-dark-mode
fix/switch-strategy-clean-param
fix/chore-fix
opik-monitoring
provider-gpustack
feat/mecab-japanese-keywords
feat/retry-single-step-debug
revert-12086-feat/parent-child-retrieval
fix/remove-the-retry-index-field
fix/11839
feat/node-execution-retry
feat/support-extractor-tools-update-wip
feat/update-tidb-batchget-endpoint
fix/iteration-thread-pool-error
feat/support-multi-token-count
feat/parent-child-retrieval-api
fix/app-icon-is-missing
feat/support-extractor-tools-update
test/disable_site
build/add-dependabot
feat/support-extractor-tools
fix/docx-extract-image-ssrf
fix/redis-slow-in-gevent
fix/9772-internal-server-error-when-custom-disclaimer-longer-than-64-characters
alert-autofix-89
build/eslint-react-refresh-plugin
build/switch-to-pnpm
revert-9424-feat/update-dataset-clean-rule
fix/external-knowledge-retrieval-issues
feat/login-type-coontrol
feat/external-knowledge-api
feat/rag-external-knowledge-with-api
feat/external-knowledge
fix/notion-table-extract
fix/tooltip
feat/workflow-add-block-shortcut
feat/update-docs
fix/note-node-zoom-issue
fix/model-runtime-quato-issue
fix/db-lock-timeout
feat/new-tooltip
feat/web-app-sso
chore/optimize-app-workflow-deletion-slow-sql
fix/trace_app_config_app_id_idx
fix/extra-table-tracing-app-config
feat/update-beat-job-time-to-env
fix/index-estimate-error
chore/enterprise-license-status
fix/remove-tsne_position
feat/2p
feat/aws-iam-auth-check
feat/add-flashrank
feat/support-milvus-2.4
feat/add-resource-from-tools
bai
1.17.0
1.16.1
1.16.0
1.16.0-rc1
1.15.0
1.14.2
1.14.1
1.14.0
1.13.3
1.13.2
1.13.1
1.14.0-rc1
1.13.0
1.12.1
1.12.0
1.11.4
1.11.3
1.11.2
1.11.1
1.11.0
1.10.1-fix.1
1.10.1
1.10.0
1.10.0-rc1
1.9.2
1.9.1
1.9.0
2.0.0-beta.2
2.0.0-beta.1
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.3
1.4.2
0.15.8
1.4.1
1.4.0
1.3.1
0.15.7
1.3.0
0.15.6
1.2.0
0.15.6-alpha.1
1.1.3
0.15.5
1.1.2
0.15.4
1.1.1
1.1.0
1.0.1
1.0.0
0.15.3
0.15.2
0.15.1
1.0.0-beta.1
0.15.0
0.14.2
v0.8.3-fix1
0.14.1
0.14.0
0.13.2
0.13.1
0.13.0
0.12.1
0.12.0
0.11.2
0.11.1
0.10.2-fix1
0.11.0
0.10.2
0.10.1
0.10.0
0.10.0-beta3
0.9.2
0.9.1-fix1
0.10.0-beta2
0.10.0-beta1
0.9.1
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.8.0-beta1
0.7.3
0.7.2
0.7.1
0.7.0
0.6.16
0.6.15
0.6.14
0.6.13
0.6.12-fix1
0.6.12
0.6.11
0.6.10
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0-fix1
0.6.0
0.6.0-preview-workflow.2
0.5.11-fix1
0.5.11
0.6.0-preview-workflow.1
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.34
0.3.33
0.3.32
0.3.31-fix3
0.3.31-fix2
0.3.31-fix1
0.3.31
0.3.30
0.3.29
0.3.28
0.3.27
0.3.26
0.3.25
0.3.24
0.3.23
0.3.22
0.3.21
0.3.20
0.3.19
0.3.18
0.3.17
0.3.16
0.3.15
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
Labels
Clear labels
Knowledge Pipeline
Proposal
WIP
cloud
dependencies
feat:webapp
good first issue
outdated
performance
pull-request
python:uv
refactor
size:L
stale
status: accepting prs
status: blocked
status: in discussion
stt & tts
vulnerablity
web
wont-fix
🌊 feat:workflow
🌚 invalid
🐞 bug
👻 feat:rag
💪 enhancement
📚 documentation
🔨 feat:tools
🙋♂️ question
🙏 help wanted
🤔 cant-reproduce
🤖 feat:agent
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: langgenius/dify#7887
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dht-hedaihua on GitHub (Jan 25, 2025).
Self Checks
Dify version
0.15.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
/chat-messages/:task_id/stopinterface was invoked as required.✔️ Expected Behavior
When invoking the
/chat-messages/:task_id/stopinterface for a "chat assistant" application, it should behave the same as when invoking the interface for a "ChatFlow-type" application: returning "success" as expected, and the corresponding streaming response should automatically terminate.❌ Actual Behavior
The following behaviors were observed:
@dosubot[bot] commented on GitHub (Jan 25, 2025):
Hi @dht-hedaihua! 👋 I'm here to help you with bugs, questions, and becoming a contributor. Let's tackle this issue together!
The issue you're experiencing with the
/chat-messages/:task_id/stopAPI not terminating the streaming response for "chat assistant" applications, while it works for "ChatFlow-type" applications, could be due to specific conditions or configurations required for the "chat assistant" application.For the
/chat-messages/:task_id/stopAPI to function correctly in "chat assistant" applications, ensure the following conditions are met:task_idis used, which can be obtained from the streaming response chunks.userfield in the request body must match the user identifier used when sending the initial message.If these conditions are met and the issue persists, it might be necessary to investigate further into the specific implementation of the "chat assistant" application to identify any differences in event handling or lifecycle management that could affect the API's behavior.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@dht-hedaihua commented on GitHub (Jan 25, 2025):
1. Could you share your API implementation code for both cases?
My API implementation code is exactly the same in both cases because I have thoroughly compared the API usage documentation for the two applications, and they are completely identical. My main implementation code is as follows:
2. Are you using any specific configuration for the chat assistant that?
The configuration of the test application for the chat assistant type is as follows:
The configuration of the test application for the "ChatFlow" type is as follows:
3. Have you noticed if this behavior is consistent across different LLM providers?
Both applications use the same large model: "glm-4-flash" large model.
@dosubot[bot] commented on GitHub (Jan 25, 2025):
The issue you're experiencing with the stop signal in "chat assistant" applications likely stems from differences in how the stop signal is handled internally compared to "ChatFlow-type" applications. Here are some key areas to investigate:
Stop Signal Propagation: In "chat assistant" applications, the stop signal is managed through the
handleStopfunction, which updates state management, aborts ongoing requests usingAbortController, and handles task-specific stopping logic [1][2]. Ensure that this function is correctly integrated and invoked in your application.Stream Termination Logic: The differences in stream termination logic between "chat assistant" and "ChatFlow-type" applications could be affecting the stop signal's effectiveness. "ChatFlow-type" applications use an "Answer Node" for streaming output, which might handle termination differently than the "chat assistant" applications [3][4].
AppQueueManager.set_stop_flag: This method is used to set a stop flag for tasks. Ensure that it is correctly invoked and that the application mode checks are appropriate for your "chat assistant" application [5].
Providing logs that show the continued streaming after a success response could help identify where the stop signal is not being processed correctly. This information can be crucial for debugging the internal handling of the stop signal in "chat assistant" applications.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@dht-hedaihua commented on GitHub (Jan 25, 2025):
1. In the chat assistant case, does the streaming eventually complete normally with the full response, or does it get cut off at some point?
In my tests, I found that it seems to be interrupted during the next conversation that follows.
2. Are you seeing any error messages in the console/logs when the stop API is called?
My frontend code console did not receive any exceptions or error messages. However, the backend Docker service console shows slight differences in the information between the two cases. The specific differences are as follows:
3. Could you check the network tab in your browser's developer tools to see if there are any differences in the response headers or connection status between the two application types when the stop API is called?
I am currently using Flutter to develop the app and have not yet attempted adaptation for the web.
@dosubot[bot] commented on GitHub (Jan 25, 2025):
To address the issue with the stop signal in "chat assistant" applications, consider the following steps:
Add Logging in
handleStop: Implement logging within thehandleStopfunction to trace the signal propagation and identify any delays or race conditions. This will help you understand how the stop signal is processed through the various layers of state management and theAbortController[1].Verify
AbortControllerSignal: Ensure that theAbortControlleris effectively reaching the streaming process. You can do this by checking if theabort()method is being called and if it successfully terminates the ongoing requests [2].Check
AppQueueManager.set_stop_flag: Investigate howAppQueueManager.set_stop_flagis processed in both application types. Ensure that it is correctly invoked and that the application mode checks are appropriate for your "chat assistant" application. This might involve comparing the implementation details between the two application types to identify any discrepancies [3].By focusing on these areas, you can pinpoint where the stop signal handling might be diverging between "chat assistant" and "ChatFlow-type" applications. If necessary, consider modifying the stop signal handling to bypass some intermediate layers for more immediate effect in chat assistant applications.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@dht-hedaihua commented on GitHub (Jan 25, 2025):
Of course, I'd be happy to!
@dosubot[bot] commented on GitHub (Jan 25, 2025):
To address the issue with the stop signal in "chat assistant" applications, consider implementing the following changes:
Direct Stream Termination: Modify the stop signal handling in the Chat Assistant mode to ensure it has a more immediate effect. This can be achieved by implementing a direct abort mechanism similar to the ChatFlow implementation, which has a more direct connection to the streaming process [1].
Bypass State Management Layers: Consider bypassing some of the intermediate state management layers that might be causing delays in stop signal propagation. This can help ensure that the stop signal is processed more quickly and effectively [1].
Ensure Active Monitoring: Make sure that the streaming process in the Chat Assistant implementation is actively checking for termination signals. This involves ensuring that the
AbortControlleris effectively reaching the streaming process and that theabort()method is being called successfully to terminate ongoing requests [2].Immediate Cleanup: Implement immediate cleanup of the current session when the stop signal is received. This can help prevent any lingering processes that might continue despite the stop signal being sent [1].
Testing these changes should help align the behavior of the Chat Assistant application with that of the ChatFlow application, ensuring consistent handling of stop signals across both application types.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@dht-hedaihua commented on GitHub (Jan 25, 2025):
I'm very sorry, but I haven't delved into the development of the Dify backend yet. If testing is required, could you please tell me which file and where in the source code the modifications should be made, along with the detailed changes and corresponding actions?
@dosubot[bot] commented on GitHub (Jan 25, 2025):
The proposed changes to improve the handling of stop signals in the Chat Assistant mode seem well-targeted. Here's a summary of the key modifications and their expected outcomes:
Immediate Termination Handler: Implementing an
immediateTerminatefunction will allow for direct stream termination and session cleanup without waiting for state updates. This should help in achieving immediate response to stop signals.Modification of
handleStop: By updating thehandleStopfunction to utilize theimmediateTerminatelogic, you ensure that the stop signal is processed quickly and effectively, aligning the behavior with that of ChatFlow applications.StreamHandler Updates: Ensuring that the streaming process has proper abort handling will help in actively monitoring for termination signals and performing necessary cleanup operations without delay.
Testing these changes should result in:
These changes should enhance the responsiveness and reliability of the stop signal handling in the Chat Assistant application.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@dht-hedaihua commented on GitHub (Jan 25, 2025):
Okay, how should I go about testing this PR?
@dht-hedaihua commented on GitHub (Jan 25, 2025):
After I modify the corresponding code, do I just need to run
docker-compose upagain?@jmanhype commented on GitHub (Jan 25, 2025):
You'll need to rebuild the Docker images first since we're making code
changes. Here's the complete sequence:
docker-compose down
docker-compose build
docker-compose up -d
This ensures that:
You can then check the logs to ensure everything started correctly:
docker-compose logs -f
Would you like me to provide any additional details about the Docker
rebuild process or help troubleshoot if you encounter any issues?
Sent via Lindy https://lindy.ai
On Sat, Jan 25, 2025 at 2:19 AM @.*** wrote:
@dht-hedaihua commented on GitHub (Jan 25, 2025):
OK!
@jmanhype commented on GitHub (Jan 25, 2025):
Great! After you've completed the setup and testing, please let me know:
assistant applications
ChatFlow applications
Also, when testing, try these specific scenarios:
This will help us confirm that the fix is working as intended across
different use cases.
Sent via Lindy https://lindy.ai
On Sat, Jan 25, 2025 at 2:20 AM @.*** wrote:
@dosubot[bot] commented on GitHub (Jan 25, 2025):
To test the proposed changes in the PR for the Chat Assistant mode, follow these steps:
Set Up Your Environment:
Implement the Changes:
BaseStreamManagerclass inapi/core/model_runtime/model_providers/base.pyto manage active streams and stop flags.AppCompletionControllerinapi/controllers/service_api/app/completion.pyto use the newterminate_streammethod for immediate stream termination.CompletionServiceinapi/services/completion_service.pyto register and clean up streams properly.Run the Application:
Test the Stop Signal:
Verify Behavior Consistency:
Monitor Logs and Outputs:
Conduct Additional Tests:
By following these steps, you can effectively test the changes and ensure that the stop signal handling in the Chat Assistant mode is responsive and reliable.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@jmanhype commented on GitHub (Jan 25, 2025):
Let me provide some specific test prompts you can use to verify the changes:
Write a detailed 2000-word essay about the history of artificial
intelligence, including all major developments from the 1950s to
present day
Explain in detail how a computer works, starting from the basic
components and going through to complex operations
(Stop this after 2-3 seconds, then start a new conversation immediately)
Write a comprehensive guide to machine learning algorithms
(Run this in multiple chat windows simultaneously)
When testing, please check for:
termination)
Could you run through these test cases and let me know the results? Pay
special attention to any differences between chat assistant and ChatFlow
behavior.
Sent via Lindy https://lindy.ai
On Sat, Jan 25, 2025 at 2:21 AM @.*** wrote:
@dht-hedaihua commented on GitHub (Jan 25, 2025):
I am getting started on it.
@jmanhype commented on GitHub (Jan 25, 2025):
Great! Please let me know if you encounter any issues during the setup or
testing process. I'm particularly interested in:
Also, when checking the logs (docker-compose logs -f), look for any
warnings or errors related to stream handling or connection termination.
This will help us identify if there are any issues with the implementation.
Sent via Lindy https://lindy.ai
On Sat, Jan 25, 2025 at 2:24 AM @.*** wrote:
@dosubot[bot] commented on GitHub (Jan 25, 2025):
To test the changes effectively, follow these specific test prompts and scenarios:
Testing Long Responses:
Testing Rapid Stop/Start:
Testing Concurrent Handling:
Key Points to Check:
By running these tests, you can confirm that the changes are working as intended and that the Chat Assistant mode behaves consistently with the ChatFlow applications.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@jmanhype commented on GitHub (Jan 25, 2025):
When running these tests, here are some additional specific things to watch
for:
For the Docker logs, specifically look for:
Please note any differences in behavior between the first and subsequent
tests, as this might indicate resource cleanup issues.
Sent via Lindy https://lindy.ai
On Sat, Jan 25, 2025 at 2:28 AM @.*** wrote:
@dht-hedaihua commented on GitHub (Jan 25, 2025):
Great!I'll do my best to test it.
@jmanhype commented on GitHub (Jan 25, 2025):
Thank you! Once you've completed the testing, please share:
This will help us verify if the implementation is working as intended and
identify any potential issues that need to be addressed. Good luck with the
testing!
Sent via Lindy https://lindy.ai
On Sat, Jan 25, 2025 at 2:37 AM @.*** wrote:
@dosubot[bot] commented on GitHub (Jan 25, 2025):
Hey @dht-hedaihua! 😊 It looks like you're diving deep into testing scenarios and performance checks for your AI system. While I can help with technical questions and bug fixes, providing specific test prompts and monitoring guidelines is a bit outside my wheelhouse. If you think I should be able to assist with this, feel free to reach out to the Dosu Team. They're always eager to hear how I can be more helpful!
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@jmanhype commented on GitHub (Jan 25, 2025):
Let's focus on the core issue at hand - testing the stop functionality for
the chat assistant application.
When you're running the tests, here are the key things to verify:
Basic functionality:
Error handling:
Resource management:
Please share your findings once you've had a chance to test these aspects.
This will help us ensure the fix is working as intended.
Sent via Lindy https://lindy.ai
On Sat, Jan 25, 2025 at 2:41 AM @.*** wrote:
@dht-hedaihua commented on GitHub (Jan 25, 2025):
I encountered an issue midway: For Chat Assistant applications, when clicking the "Stop Response" button on the page after running the app, the message stream is successfully terminated as expected. I checked the console and found that the API path being called is:
/api/chat-messages/:task_id/stop.Since this API is functioning correctly, is it still necessary to proceed with the current code modifications and testing? Would it be more practical to migrate the logic of this working API to the problematic one? Alternatively, why not use the same logic for both APIs?
@dosubot[bot] commented on GitHub (Jan 25, 2025):
To effectively test the stop functionality for the chat assistant application, focus on these key areas:
Basic Functionality:
Error Handling:
Resource Management:
By focusing on these aspects, you can confirm that the stop functionality is working as intended and that the application maintains stability and resource efficiency.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@dht-hedaihua commented on GitHub (Jan 25, 2025):
@jmanhype
The complete API path of the endpoint that's not working correctly?
The complete path is:
https://xxx.xx.xx:6688/v1/chat-messages/:task_id/stopAny differences you notice in the request/response patterns between the working and non-working endpoints?
Exactly the same, there is no difference between the two.
@obadakhalili commented on GitHub (Jan 25, 2025):
I'm unable to reproduce this. sending a message in Postman and stopping the stream via the task-id found in one of the chunks stops the task.
@dosubot[bot] commented on GitHub (Feb 25, 2025):
Hi, @dht-hedaihua. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.
Issue Summary
/chat-messages/:task_id/stopAPI fails to terminate streaming responses.Next Steps
Thank you for your understanding and contribution!