Skip to content

fix(worktree): surface derive-branch-summary errors and retry with standard model - #184

Merged
gerchowl merged 2 commits into
devfrom
bugfix/183-worktree-start-error-messages
Feb 24, 2026
Merged

gerchowl merged 2 commits into
devfrom
bugfix/183-worktree-start-error-messages

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Description

Fixes #183: When derive-branch-summary.sh fails (e.g. agent --print times out), the error message was silently swallowed by worktree-start. This PR surfaces errors and adds a retry with the standard model.

Type of Change

  • fix -- Bug fix

Changes Made

  • scripts/derive-branch-summary.sh: Add optional MODEL_TIER parameter (3rd arg) and BRANCH_SUMMARY_MODEL env var; default remains lightweight
  • justfile.worktree: Remove stderr suppression; try lightweight first, retry with standard model on failure; print manual workaround hint with actual issue/type when both fail
  • tests/bats/worktree.bats: Add BATS test for MODEL_TIER parameter
  • assets/workspace/.devcontainer/justfile.worktree: Synced via just sync-workspace

Changelog Entry

### Fixed

- **worktree-start swallows derive-branch-summary error messages** ([#183](https://github.com/vig-os/devcontainer/issues/183))
  - Remove stderr suppression so error messages from derive-branch-summary.sh are visible
  - Retry with standard model when lightweight model fails; print manual workaround hint if both fail
  - Add optional MODEL_TIER parameter to derive-branch-summary.sh; BATS test for retry path

Testing

  • BATS test added for MODEL_TIER param
  • Manual: env BRANCH_SUMMARY_CMD="false" ./scripts/derive-branch-summary.sh "Test" shows [ERROR] and hint
  • Manual: env BRANCH_SUMMARY_CMD="echo retry-summary" ./scripts/derive-branch-summary.sh "Test" "/dev/null" "standard" returns retry-summary

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have updated CHANGELOG.md in the [Unreleased] section
  • I have added tests that prove my fix is effective

Refs: #183

Made with Cursor

gerchowl and others added 2 commits February 24, 2026 16:53
…andard model

- Add optional MODEL_TIER param to derive-branch-summary.sh
- Remove stderr suppression in worktree-start; errors now visible
- Retry with standard model when lightweight fails
- Print manual workaround hint with actual issue/type when both fail

Refs: #183
Co-authored-by: Cursor <[email protected]>
@gerchowl
gerchowl merged commit a2f73ed into dev Feb 24, 2026
10 checks passed
@gerchowl
gerchowl deleted the bugfix/183-worktree-start-error-messages branch February 24, 2026 16:41
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