## Summary
I added an environment variable `DISABLE_WORKTREE_ORPHAN_CLEANUP` to control worktree orphan cleanup behavior:
1. **Modified `execution_monitor.rs:252`** - Added a check at the beginning of the `cleanup_orphaned_worktrees` function that returns early if the environment variable is set, with a debug log message.
2. **Updated `package.json`** - Modified the `npm run dev` script to export `DISABLE_WORKTREE_ORPHAN_CLEANUP=1`, which disables orphan cleanup when running in development mode.
3. **Verified the implementation** - The backend builds successfully and the code correctly checks for the environment variable.
The implementation defaults to cleanup being enabled (as requested), but when `npm run dev` is run, it automatically disables the orphan cleanup to prevent worktrees from being cleaned up during development. This allows developers to work with persistent worktrees while still maintaining the cleanup functionality in production environments.
* tmp fix: set new version to 0.0.38
* get latest npm version and bump it instead of relying on package.json which can be out of sync
* improve cargo-edit cache
* add timestamp to tags
* chore: bump version to 0.0.40-nbump.0
* chore: bump version to 0.0.40-nbump.1
* fix tag name
* chore: bump version to 0.0.40-nbump.2
* fix double v in tag name
* chore: bump version to 0.0.40-nbump.3
---------
Co-authored-by: GitHub Action <action@github.com>
* bump version in Cargo.toml to match npm version
* chore: bump version to 0.0.37-ersion.0
* chore: bump version to 0.0.37-ersion.1
* bump version in Cargo.toml to match npm version
* chore: bump version to 0.0.37-ersion.2
* use node script to bump cargo version
* use cargo-edit to set version
* add cache for cargo-edit
* set cargo version same as npm
* fix cargo toml location
* fix cargo toml version
* chore: bump version to 0.0.37-ersion.3
---------
Co-authored-by: GitHub Action <action@github.com>
* add branch suffix to avoid tag and release clash
* remove dashed from branch
* chore: bump version to 0.0.37-clash.0
---------
Co-authored-by: GitHub Action <action@github.com>
* Start dev server on any port
* Move dev DB into project folder
* Choose free ports for dev server
* Reliability
* Both processes get env vars
* And open browser
* make pre-release workflow manual-only, bump version automatically
* chore: bump version to 0.0.31-bump-version-automatically.0
* update version manually in both package.json files
* roll back version
* use npm for updating version
* chore: bump version to 0.0.31
---------
Co-authored-by: GitHub Action <action@github.com>
* provide npm token in env
* add manual trigger to publish workflow
* bump version
* accept tag name and release id from manual trigger
* log release id
* put back missing steps
* fix permissions to update release notes
* add code-signing
* bump version
* use key json instead of separate secrets
* sign and notarize separately
* fix typos
* fix double zipping
* skip npm zipping for mac
* zip file instead of a folder
* fix zip names
* windows fix
* minor fixes
* try to fix zipping issue
* use zip -j flag to avoid folder structure
* fix mcp binary name for linux-arm64
* normalize mcp binary name
* basic ticket uploading
* take project_id in request params instead of env
* add an endpoint to list all available projects
* add mcp server bin to npx
* add missing scripts to package and publish to npm
* fix rmcp version
* Use utils::asset_dir
* Don't run migrations or create DB from MCP
* a fix for the first dev run when no frontend/dist/index.html exists
* Add more MCP endpoints (#8)
* add new endpoints for project and task management
* add simpler more focused endpoints to improve agent understanding on this MCP
* improve test script
* combine npm binaries and allow passing --mcp as an arg
* cargo fmt
* fixes after rebase
* clippy fixes
* Script tweaks
---------
Co-authored-by: couscous <couscous@runner.com>
Co-authored-by: anastasiya1155 <anastasiya1155@gmail.com>
Co-authored-by: Louis Knight-Webb <louis@bloop.ai>
Co-authored-by: Anastasiia Solop <35258279+anastasiya1155@users.noreply.github.com>