Skip to content

fix: preserve Swagger tool authorization after refresh - #41656

Merged
iamjoel merged 1 commit into
mainfrom
fix/agent-swagger-tool-auth
Sep 2, 2026
Merged

fix: preserve Swagger tool authorization after refresh#41656
iamjoel merged 1 commit into
mainfrom
fix/agent-swagger-tool-auth

Conversation

@iamjoel

@iamjoel iamjoel commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Prefer current provider team authorization when deriving agent tool credential status.
  • Keep refreshed Swagger tools consistent with newly added tools and prevent false unauthorized publish checks.
  • Add regression coverage for an authorized Swagger API tool loaded from saved agent configuration.

Fixes DIFY-2967

Checklist

  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.

@iamjoel
iamjoel requested a review from lyzno1 as a code owner September 2, 2026 08:56
@github-actions github-actions Bot added the web This relates to changes on the web. label Sep 2, 2026
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.93%. Comparing base (59ee887) to head (80b6d9b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #41656   +/-   ##
=======================================
  Coverage   86.93%   86.93%           
=======================================
  Files        5309     5309           
  Lines      306039   306038    -1     
  Branches    61329    61327    -2     
=======================================
  Hits       266061   266061           
+ Misses      34691    34690    -1     
  Partials     5287     5287           
Flag Coverage Δ
dify-ui 93.75% <ø> (ø)
web 87.07% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@iamjoel
iamjoel enabled auto-merge September 2, 2026 09:05
@iamjoel
iamjoel added this pull request to the merge queue Sep 2, 2026
Merged via the queue into main with commit 6ae40b1 Sep 2, 2026
51 checks passed
@iamjoel
iamjoel deleted the fix/agent-swagger-tool-auth branch September 2, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants