[PR #12349] fix: resolve issue with the opening statement generated by the AutomaticRes component failing to sync between states. #27609

Closed
opened 2026-02-21 20:41:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/12349

State: closed
Merged: Yes


Summary

Resolves #11849

This PR is a resubmission as requested, as part of the now-closed #11850 .

Fixed

  • Fix the issue where the opening statement generated by the AutomaticRes component was not synchronized between states
    • Before the fix, the opening statement generated by the AutomaticRes component would not automatically apply to the current orchestration state and needed to be saved to take effect. Now, the opening statement will automatically sync with the current orchestration state.

Modification Details

This section was automatically generated by GitHub Copilot actions.

This pull request includes updates to the simple-prompt-input.tsx file to integrate feature management within the prompt configuration component. The main changes involve adding the useFeaturesStore hook and updating the state management to include new features.

Feature management integration:

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/12349 **State:** closed **Merged:** Yes --- # Summary Resolves #11849 ***This PR is a resubmission as requested, as part of the now-closed #11850 .*** # Fixed - Fix the issue where the opening statement generated by the AutomaticRes component was not synchronized between states - Before the fix, the opening statement generated by the AutomaticRes component would not automatically apply to the current orchestration state and needed to be saved to take effect. Now, the opening statement will automatically sync with the current orchestration state. # Modification Details > This section was automatically generated by `GitHub Copilot actions`. This pull request includes updates to the `simple-prompt-input.tsx` file to integrate feature management within the prompt configuration component. The main changes involve adding the `useFeaturesStore` hook and updating the state management to include new features. Feature management integration: * [`web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx`](diffhunk://#diff-a86c61b88c871ad120b6e92ac1ff479df26e24699919bab80ebf77b9bbbd9a2dR30): Added import for `useFeaturesStore` hook. * [`web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx`](diffhunk://#diff-a86c61b88c871ad120b6e92ac1ff479df26e24699919bab80ebf77b9bbbd9a2dR58-R62): Initialized `featuresStore` and extracted `features` and `setFeatures` from the store. * [`web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx`](diffhunk://#diff-a86c61b88c871ad120b6e92ac1ff479df26e24699919bab80ebf77b9bbbd9a2dL140-R157): Updated the prompt configuration logic to set new features when the mode is not `AppType.completion`. # Checklist > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:41:51 -05:00
yindo closed this issue 2026-02-21 20:41:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#27609