Skip to content

Add --force flag to override stale locks#63

Merged
jonathonbyrdziak merged 1 commit intomasterfrom
feature/force-flag
Mar 21, 2026
Merged

Add --force flag to override stale locks#63
jonathonbyrdziak merged 1 commit intomasterfrom
feature/force-flag

Conversation

@jonathonbyrdziak
Copy link
Copy Markdown
Contributor

Summary

  • Adds --force / -f flag to protocol start and git:pull
  • When used, releases any existing stale lock and re-acquires it
  • ProtocolStart propagates --force to subcommands
  • Without --force, the error message now tells users about the flag

Test plan

  • Kill protocol start mid-run, then run protocol start — see lock error with hint
  • Run protocol start -f — overrides the stale lock and proceeds
  • protocol start -v -f — both flags work together

🤖 Generated with Claude Code

When a previous protocol start was killed (Ctrl+C), the lock file
persists and blocks subsequent runs. The --force flag releases any
existing lock and re-acquires it. Propagates to subcommands (git:pull).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonathonbyrdziak jonathonbyrdziak merged commit f9658d2 into master Mar 21, 2026
6 of 8 checks passed
@jonathonbyrdziak jonathonbyrdziak deleted the feature/force-flag branch March 21, 2026 01:46
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