fix: detect running Claude before restarting + lint fixes#326
Open
buggtb wants to merge 2 commits intodlorenc:mainfrom
Open
fix: detect running Claude before restarting + lint fixes#326buggtb wants to merge 2 commits intodlorenc:mainfrom
buggtb wants to merge 2 commits intodlorenc:mainfrom
Conversation
…nflicts The 'multiclaude claude' command was failing with "Session ID already in use" error when Claude was already running in the agent context. This happened because the command would attempt to restart Claude with --session-id or --resume flags without checking if a Claude process was already active with that session ID. Changes: - Add process alive check for stored agent PID before restarting - Add double-check for any running process in the tmux pane - Provide helpful error messages with steps to exit and restart - Import syscall package for signal-based process detection The fix detects: 1. If the stored agent PID is still running 2. If a different process is running in the tmux pane Users now get clear instructions on how to properly restart Claude or attach to the existing session. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Address ST1005 staticcheck warnings - error strings should not be capitalized per Go conventions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3 tasks
Contributor
| Merge Queue Status: Blocked on workflow approval needed for fork PR. A maintainer needs to approve the workflow run before CI can run. |
Contributor
| Merge Queue Assessment: Fork PR requires maintainer approval to run GitHub Actions. This is a small, focused fix (37 additions, 1 file). Once CI passes, should be ready to merge. |
| Needs human input: Fork PR blocked on maintainer workflow approval — CI cannot run until a maintainer approves the GitHub Actions workflow. |
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
This PR combines the original fix from #321 with the necessary lint fixes to pass CI.
Test plan
golangci-lint run ./...passes with 0 issuesgo test ./...all tests pass🤖 Generated with Claude Code