-
Notifications
You must be signed in to change notification settings - Fork 7
fix: allow permission_mode to be configured in config.toml for Claude provider #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
josephfung
wants to merge
1
commit into
ryaker:main
from
josephfung:fix/claude-permission-mode-docker
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Programmatic options typically take precedence over configuration file settings to allow for runtime overrides. The current implementation prioritizes config.permission_mode over options.permissionMode. Swapping the order ensures that explicit overrides provided during instantiation are respected.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the general principle - programmatic options should normally beat config file settings.
However, in this codebase the orchestrator always passes
permissionMode: 'default'explicitly when constructingClaudeProviderOptions(seesrc/orchestrator/orchestrator.ts), sooptions.permissionModeis neverundefined. With the order suggested,config.permission_modewould never be reached, making the feature silently non-functional.The intent here is that
config.permission_modeis the user's override lever (the only one they have), whileoptions.permissionModeis the orchestrator's internal default. So config should win over the orchestrator default, which is what the current order achieves.If there's a future need for a true programmatic override that beats the config, the right fix would be a distinct field (e.g.,
options.permissionModeOverride) that the orchestrator sets only when explicitly requested rather than conflating it with the fallback default.