feat(profile): add opencode profile and improve config handling#24
Merged
feat(profile): add opencode profile and improve config handling#24
Conversation
- Test merging global and project configs when inherit_global=true - Test skipping global config when inherit_global=false - Test that inherit_global is ignored in custom config files
When -c specifies a config file, treat it as a project config and check inherit_global to decide if the default global config should be merged. Previously, the -c file was always loaded as global config, making inherit_global ineffective. Scenarios now working correctly: - -c with inherit_global=true: merges with ~/.config/sx/config.toml - -c with inherit_global=false: uses config standalone - -c with inherit_base=false: full custom control over allowed paths - No -c flag: loads global config + project .sandbox.toml as before
Adds built-in opencode profile with access to opencode config, cache, and state directories. Includes updates to CLI help text, config template documentation, and comprehensive tests.
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.
Summary
inherit_globalconfiguration to be properly respected when using-cflagTest plan
-cflagcargo build && cargo run -- -p opencode <command>