Skip to content

refactor: advance maintainability layering#90

Merged
CCimen merged 11 commits intomainfrom
refactor/maintain-improve2
Jan 19, 2026
Merged

refactor: advance maintainability layering#90
CCimen merged 11 commits intomainfrom
refactor/maintain-improve2

Conversation

@CCimen
Copy link
Copy Markdown
Owner

@CCimen CCimen commented Jan 19, 2026

Refactor code for maintainability and stability.

CCimen and others added 11 commits January 17, 2026 23:26
Introduce a dedicated use case for starting the sandbox runtime while keeping launch execution centralized.
Docker sandbox improvements:
- Switch from file mounting to directory mounting for policy file
  (more reliable with Docker Desktop VirtioFS)
- Add retry-with-backoff for Docker mount race conditions
- Remove heavyweight Alpine container polling approach

Setup wizard improvements:
- Launch comprehensive setup wizard directly when no config exists
- Remove simple text prompt in favor of full wizard experience

Workspace picker improvements:
- Add CwdContext pattern for current directory detection
- Move project marker detection to services layer
- Fix "Current directory" option appearing in workspace picker

Architecture improvements:
- Add typed config models (NormalizedOrgConfig, etc.)
- Add ConfigStore port and LocalConfigStore adapter
- Add support bundle use case with DoctorRunner port
- Add flow_types.py for wizard state helpers
- Add core/enums.py for domain enums
- Improve doctor module to use SeverityLevel enum

Test updates:
- Update Docker policy mount tests for directory mounting
- Add config normalization tests
- Add wizard state machine tests
Remove maintainability-review.md and progress.txt files that were used during
development and should not be part of the codebase.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add reset_plugin_caches() to clear Claude Code's cached marketplace paths
  when switching between workspaces (main repo vs worktrees)
- Update reset_global_settings() to clear both settings.json and plugin caches
  (known_marketplaces.json, installed_plugins.json) preventing "Plugin not found
  in marketplace" errors caused by stale paths from previous sessions
- Fix "Switch team" action in Quick Resume to navigate to team picker instead
  of workspace source picker by explicitly setting step to TEAM_SELECTION
@CCimen CCimen merged commit 36ef875 into main Jan 19, 2026
9 checks passed
@CCimen CCimen deleted the refactor/maintain-improve2 branch January 19, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant