fix: add auto-repair for state inconsistencies in init and workspace add#322
Merged
dlorenc merged 1 commit intodlorenc:mainfrom Jan 28, 2026
Merged
fix: add auto-repair for state inconsistencies in init and workspace add#322dlorenc merged 1 commit intodlorenc:mainfrom
dlorenc merged 1 commit intodlorenc:mainfrom
Conversation
Fixes state inconsistency issues when init or workspace add commands fail partway through execution. Previously, if these commands failed after creating tmux sessions/windows but before updating state, re-running would fail with cryptic tmux errors. Changes: - initRepo: Check for existing tmux session and state entry before creation - Auto-repair by killing stale tmux sessions - Clear error if repo already tracked in state - addWorkspace: Check for existing tmux window and worktree before creation - Auto-repair by killing stale tmux windows - Auto-repair by removing stale worktrees This improves P0 "Clear error messages" goal by preventing confusing error states and making the system self-healing. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
06b50d8 to
41a5372
Compare
aronchick
added a commit
to aronchick/multiclaude
that referenced
this pull request
Jan 29, 2026
…add (dlorenc#322) Fixes state inconsistency issues when init or workspace add commands fail partway through execution. Previously, if these commands failed after creating tmux sessions/windows but before updating state, re-running would fail with cryptic tmux errors. Changes: - initRepo: Check for existing tmux session and state entry before creation - Auto-repair by killing stale tmux sessions - Clear error if repo already tracked in state - addWorkspace: Check for existing tmux window and worktree before creation - Auto-repair by killing stale tmux windows - Auto-repair by removing stale worktrees This improves P0 "Clear error messages" goal by preventing confusing error states and making the system self-healing. Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
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
Fixes state inconsistency issues when
initorworkspace addcommands fail partway through execution. Previously, if these commands failed after creating tmux sessions/windows but before updating state, re-running would fail with cryptic tmux errors like "duplicate session" or "window already exists".Changes
initRepo command:
addWorkspace command:
Impact
This improves the P0 "Clear error messages" goal from ROADMAP.md by:
Test Plan
Alignment with Roadmap
This addresses the P0 goal: "Clear error messages: Every failure should tell the user what went wrong and how to fix it"
The auto-repair mechanism means users don't need to manually clean up stale resources - the system fixes itself and continues, making multiclaude more reliable and user-friendly.
🤖 Generated with Claude Code