Skip to content

Clear stale worktree paths before starting sessions#135

Merged
BunsDev merged 1 commit intomainfrom
okcode/fix-diff-panel-error
Apr 1, 2026
Merged

Clear stale worktree paths before starting sessions#135
BunsDev merged 1 commit intomainfrom
okcode/fix-diff-panel-error

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 1, 2026

Summary

  • Detects when a thread points at a missing worktree path and falls back to the project workspace root.
  • Clears the stale worktreePath from thread metadata before starting the provider session.
  • Adds regression coverage for session startup with a missing worktree path.

Testing

  • bun fmt
  • bun lint
  • bun typecheck
  • Added/updated unit test: verifies stale worktree paths are cleared and session startup uses the project root

- Fall back to the project workspace when a saved worktree no longer exists
- Reset stale thread worktree metadata before launching provider sessions
- Add coverage for stale worktree recovery
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 1, 2026 2:52am

@github-actions github-actions Bot added the size:M label Apr 1, 2026
@BunsDev BunsDev merged commit 5fc32da into main Apr 1, 2026
8 of 9 checks passed
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Apr 1, 2026
@BunsDev BunsDev deleted the okcode/fix-diff-panel-error branch April 1, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant