Skip to content

Commit 708bcbc

Browse files
committed
🐛 fix(settings): fixed bug preventing custom headers from being saved
The issue was that when users added or modified custom headers, the changes were only stored in the local component state but never propagated to the main configuration object that gets saved. The fix adds a `useEffect` hook that updates the main configuration whenever the custom headers change, ensuring they're properly saved when the user clicks the "Save" button. Now users can successfully add custom headers to their OpenAI Compatible provider configurations. Test plan: - Added a header confirmed it saved - Added header, discarded changes, confirmed header is gone
1 parent 6f90d4c commit 708bcbc

File tree

5 files changed

+583
-1
lines changed

5 files changed

+583
-1
lines changed

.changeset/beige-meals-win.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Fix Custom Headers are not saved for OpenAI Compatible providers

.idea/workspace.xml

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)