Skip to content

fix: detect running Claude before restarting + lint fixes#326

Open
buggtb wants to merge 2 commits intodlorenc:mainfrom
spiculedata:multiclaude/happy-lion
Open

fix: detect running Claude before restarting + lint fixes#326
buggtb wants to merge 2 commits intodlorenc:mainfrom
spiculedata:multiclaude/happy-lion

Conversation

@buggtb
Copy link

@buggtb buggtb commented Jan 27, 2026

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 issues
  • go test ./... all tests pass

🤖 Generated with Claude Code

aronchick and others added 2 commits January 27, 2026 00:19
…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>
@dlorenc dlorenc added the multiclaude PRs created by multiclaude workers label Jan 28, 2026
@aronchick
Copy link
Contributor

Merge Queue Status: Blocked on workflow approval needed for fork PR. A maintainer needs to approve the workflow run before CI can run.

@aronchick
Copy link
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.

@whitmo
Copy link

whitmo commented Mar 1, 2026

Needs human input: Fork PR blocked on maintainer workflow approval — CI cannot run until a maintainer approves the GitHub Actions workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multiclaude PRs created by multiclaude workers

4 participants