Skip to content

feat: support reset_on_change parameter schema - #801

Open
zyqzyq wants to merge 1 commit into
langgenius:mainfrom
zyqzyq:feat/reset-on-change
Open

feat: support reset_on_change parameter schema#801
zyqzyq wants to merge 1 commit into
langgenius:mainfrom
zyqzyq:feat/reset-on-change

Conversation

@zyqzyq

@zyqzyq zyqzyq commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Fixes langgenius/dify#40180

Description

This PR adds support for the optional reset_on_change field across plugin parameter declarations.

The field is now available for:

  • Tool parameters
  • Agent strategy parameters
  • Datasource parameters
  • Model provider credential fields
  • Provider configuration fields

reset_on_change is supported in both JSON and YAML. Empty values are omitted to maintain backward compatibility.

Validation rules limit the field to 16 dependencies, with each dependency required to be a non-empty string shorter than 1024 characters.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

  • Added unit tests for JSON and YAML serialization of reset_on_change.
  • Verified that the field is omitted when it is not configured.
  • Added validation coverage for exceeding the maximum number of dependencies.
  • This change is backward-compatible because existing declarations do not need to define the new field.

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request go Pull requests that update go code labels Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support reset_on_change for tool parameters

1 participant