fix(frontend): Respect HIDE_LLM_SETTINGS flag in settings modal#12400
Merged
raymyers merged 5 commits intoOpenHands:mainfrom Jan 14, 2026
Merged
fix(frontend): Respect HIDE_LLM_SETTINGS flag in settings modal#12400raymyers merged 5 commits intoOpenHands:mainfrom
raymyers merged 5 commits intoOpenHands:mainfrom
Conversation
The AI Provider Configuration modal was appearing for new users even when HIDE_LLM_SETTINGS=true was set server-side. Added check for the feature flag before opening the modal. Fixes OpenHands#12272
Contributor
Author
|
@mamoodi @raymyers @hieptl @malhotra5 would you review this PR? |
Contributor
Author
hieptl
reviewed
Jan 14, 2026
Collaborator
hieptl
left a comment
There was a problem hiding this comment.
Hello @leonace924,
Thank you very much for creating this pull request. The changes look good to me.
We encourage adding tests to help improve code quality and prevent potential regressions. When you have a chance, would you mind adding tests to cover your changes?
Please feel free to let me know if you have any questions or need any support.
Thank you very much! 🙏
Contributor
Author
|
@hieptl I added the testing, can you review please? |
Add createMockConfig helper to reduce boilerplate in test mocks. Add test case for /settings path behavior where modal should not open. Rename RouterStub to ConversationRouterStub for clarity.
2a9d0bd to
f69fbf0
Compare
Use click-to-toggle instead of CSS hover to open the menu, which is more reliable in automated tests. Key fixes:
f69fbf0 to
062e8f0
Compare
raymyers
approved these changes
Jan 14, 2026
Contributor
|
Thanks for adding the tests and looking at that e2e as well. |
Contributor
Author
|
Hi @raymyers thank you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #12272
Summary of PR
The AI Provider Configuration modal was appearing for new users even when HIDE_LLM_SETTINGS=true was set server-side. Added check for the feature flag before opening the modal.
Demo Screenshots/Videos
Video_2026_01_13-1.webm
Change Type
Checklist
Fixes
Resolves #12272
Release Notes
Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=42954461