feat: Hierarchical TOML Configuration System#4
Merged
Conversation
Owner
Author
Code Review SummaryAssessment: APPROVED Critical Issues: 0None found - excellent implementation! Important Issues: 0None found - high quality code throughout Suggestions: 3
Strengths
Configuration Features Implemented✅ Hierarchical config loading: Full report: Ready to merge! This is a high-quality implementation that perfectly follows project patterns. |
Owner
Author
✅ Code Review Suggestions ImplementedAll suggestions from the code review have been implemented: 1. Module-Level Documentation ✅
2. Configuration Validation ✅
3. Integration Tests ✅
Additional Improvements
The configuration system is now production-ready with excellent test coverage and user experience! |
- Add hierarchical config loading: user (~/.shards/config.toml) → project (./shards/config.toml) → CLI args - Support agent configuration: default agent, startup commands, and flags - Add terminal preference configuration - Implement CLI overrides for all config options - Add graceful fallbacks for missing config files - Add comprehensive error handling and validation - Update all handlers to use configuration system - Add toml 0.8 dependency for TOML parsing - Maintain backward compatibility with existing CLI usage Closes config track implementation with full test coverage.
- Add comprehensive module-level documentation with usage examples - Add configuration validation for agent names and terminal preferences - Add extensive integration tests for config hierarchy and TOML parsing - Fix merge logic to properly handle config precedence - Improve test isolation with unique temporary directories - Fix doctest import paths All suggestions from code review implemented: ✅ Module-level documentation with hierarchy explanation ✅ Config validation with helpful warnings for invalid terminals ✅ Integration tests covering full config loading workflow ✅ TOML parsing edge case tests ✅ Improved error handling and user experience 83 tests passing, ready for merge.
a6ff1e2 to
6ba17b2
Compare
This was referenced Jan 14, 2026
Wirasm
added a commit
that referenced
this pull request
Jan 21, 2026
Investigation found the feature is already fully implemented via PR #4 (merged 2026-01-13). All requirements from the issue are satisfied.
3 tasks
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
Implements hierarchical TOML configuration system for Shards CLI that allows users to configure default agents, terminal preferences, startup commands, and flags.
Features
✅ Hierarchical config loading:
~/.shards/config.toml→./shards/config.toml→ CLI args✅ Agent configuration: Default agent, startup commands, and flags
✅ Terminal preferences: Configurable terminal selection
✅ CLI overrides: All config options can be overridden via command line
✅ Graceful fallbacks: Missing config files use sensible defaults
Configuration Example
Usage
Implementation
Configuration Hierarchy
./shards/config.toml~/.shards/config.tomlThis enables "set once, use everywhere" workflow while maintaining full flexibility for per-project and per-command customization.