Repository navigation
fix(worktree): add agent timeout and gh preflight to worktree-start (#154) - #165
Merged
gerchowl merged 2 commits intoFeb 24, 2026
Merged
Conversation
Refs: #154 Co-authored-by: Cursor <[email protected]>
Closed
3 tasks
…rint-hang Signed-off-by: gerchowl <[email protected]>
gerchowl
deleted the
bugfix/154-worktree-start-silent-fail-agent-print-hang
branch
February 24, 2026 12:51
5 tasks
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.
Description
Fixes two preflight gaps in
just worktree-startthat cause silent or confusing failures:agent --print hang: When no linked branch exists, the recipe uses
agent --printto derive a branch name. In headless mode this can hang indefinitely. The script now wraps the call in a 30s timeout and prints a clear error with manual workaround when it fails.gh repo set-default ambiguity: When multiple remotes exist (e.g. origin + fork),
ghcannot auto-detect the target repo. The recipe now checks for a default repo before anyghAPI calls, auto-resolves fromoriginwhen possible, or fails with clear instructions.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
BRANCH_SUMMARY_CMDmock for testsChangelog Entry
Fixed
Testing
just test-bats— all 12 worktree tests pass)Manual Testing Details
N/A — BATS tests cover derive-branch-summary success, timeout, and error paths. Manual verification of gh preflight and agent timeout can be done by reproducing the conditions in the issue.
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #154