Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
91f7051
docs: Add Git Flow branching strategy to CONTRIBUTING.md
AndyMik90 Dec 22, 2025
0adadda
Feature/apps restructure v2.7.2 (#138)
AndyMik90 Dec 22, 2025
df77953
Feat: Ollama download progress tracking with new apps structure (#141)
rayBlock Dec 22, 2025
ebd8340
fix: resolve Python environment race condition (#142)
Jorisslagter Dec 22, 2025
f96c630
fix: remove legacy path from auto-claude source detection (#148)
Jorisslagter Dec 22, 2025
220faf0
Fix/linear 400 error
AndyMik90 Dec 22, 2025
30e7536
fix(task): stop running process when task status changes away from in…
AndyMik90 Dec 22, 2025
6951251
feat: Add UI scale feature with 75-200% range (#125)
enescingoz Dec 23, 2025
05f5d30
fix: hide status badge when execution phase badge is showing (#154)
AndyMik90 Dec 23, 2025
ced2ad4
fix/PRs from old main setup to apps structure (#185)
AndyMik90 Dec 23, 2025
8f766ad
feat/beta-release (#190)
AndyMik90 Dec 23, 2025
407a0be
Feat/beta release (#193)
AndyMik90 Dec 23, 2025
e3eec68
fix(ci): correct welcome workflow PR message (#206)
AndyMik90 Dec 23, 2025
f168bdc
fix: Add Python 3.10+ version validation and GitHub Actions Python se…
possebon Dec 23, 2025
02bef95
feat: Add OpenRouter as LLM/embedding provider (#162)
possebon Dec 23, 2025
5352729
fix(core): add global spec numbering lock to prevent collisions (#209)
AndyMik90 Dec 23, 2025
6ec8549
Fix/ideation status sync (#212)
souky-byte Dec 23, 2025
5ccdb6a
fix: add future annotations import to discovery.py (#229)
Jorisslagter Dec 24, 2025
0f7d6e0
fix: resolve Python detection and backend packaging issues (#241)
Furansujin Dec 24, 2025
348de6d
Feat/Auto Fix Github issues and do extensive AI PR reviews (#250)
AndyMik90 Dec 24, 2025
5e8c530
Revert "Feat/Auto Fix Github issues and do extensive AI PR reviews (#…
AndyMik90 Dec 24, 2025
f843811
feat: add i18n internationalization system (#248)
Mitsu13Ion Dec 24, 2025
a3f8754
fix: update path resolution for ollama_model_detector.py in memory ha…
delyethan Dec 25, 2025
d42041c
ci: implement enterprise-grade PR quality gates and security scanning…
AlexMadera Dec 25, 2025
596e951
feat(github): add automated PR review with follow-up support (#252)
AndyMik90 Dec 25, 2025
d4cad80
chore(deps): bump vitest from 4.0.15 to 4.0.16 in /apps/frontend (#272)
dependabot[bot] Dec 25, 2025
a2cee69
chore(deps): bump @electron/rebuild in /apps/frontend (#271)
dependabot[bot] Dec 25, 2025
6ac8250
fix(paths): normalize relative paths to posix (#239)
danielfrey63 Dec 25, 2025
e74a3df
fix: accept bug_fix workflow_type alias during planning (#240)
danielfrey63 Dec 25, 2025
1e1d7d9
fix(ci): use develop branch for dry-run builds in beta-release workfl…
AndyMik90 Dec 25, 2025
f49d481
chore(deps): bump typescript-eslint in /apps/frontend (#269)
dependabot[bot] Dec 25, 2025
5ac566e
chore(deps): bump jsdom from 26.1.0 to 27.3.0 in /apps/frontend (#268)
dependabot[bot] Dec 25, 2025
d79f2da
fix(ci): use correct electron-builder arch flags (#278)
AndyMik90 Dec 25, 2025
b005fa5
fix(security): resolve CodeQL file system race conditions and unused …
AndyMik90 Dec 25, 2025
f1cc5a0
fix(github): resolve follow-up review API issues
AndyMik90 Dec 25, 2025
50dd107
chore(deps): bump @xterm/xterm from 5.5.0 to 6.0.0 in /apps/frontend …
dependabot[bot] Dec 25, 2025
0b874d4
fix(ci): add write permissions to beta-release update-version job
AndyMik90 Dec 25, 2025
d98e283
fix: resolve spawn python ENOENT error on Linux by using getAugmented…
r3d91ll Dec 25, 2025
7f19c2e
feat(python): bundle Python 3.12 with packaged Electron app (#284)
AndyMik90 Dec 25, 2025
3ff6127
fix(frontend): validate backend source path before using it (#287)
AndyMik90 Dec 26, 2025
5106c6e
Potential fix for code scanning alert no. 224: Uncontrolled command l…
AndyMik90 Dec 26, 2025
8bb3df9
fix(frontend): support archiving tasks across all worktree locations …
AndyMik90 Dec 26, 2025
217249c
fix(github): add explicit GET method to gh api comment fetches (#294)
AndyMik90 Dec 26, 2025
8416f30
feat: enhance the logs for the commit linting stage (#293)
AlexMadera Dec 26, 2025
26beefe
feat(merge,oauth): add path-aware AI merge resolution and device code…
AndyMik90 Dec 26, 2025
7a51cbd
Fix/2.7.2 fixes (#300)
AndyMik90 Dec 26, 2025
937a60f
fix: stop tracking spec files in git (#295)
AndyMik90 Dec 26, 2025
d0b0b3d
fix(build): add --force-local flag to tar on Windows (#303)
AndyMik90 Dec 26, 2025
d9fb8f2
fix(build): use PowerShell for tar extraction on Windows
AndyMik90 Dec 26, 2025
086429c
fix(github): add augmented PATH env to all gh CLI calls
AndyMik90 Dec 26, 2025
c0a02a4
fix(build): use explicit Windows System32 tar path (#308)
AndyMik90 Dec 26, 2025
1c14227
chore(ci): cancel in-progress runs (#302)
tosincarik Dec 26, 2025
92c6f27
fix(python): use venv Python for all services to fix dotenv errors (#…
AlexMadera Dec 26, 2025
e1b0f74
fix(updater): proper semver comparison for pre-release versions (#313)
MikeeBuilds Dec 26, 2025
e80ef79
fix(project): fix task status persistence reverting on refresh (#246)…
MikeeBuilds Dec 26, 2025
661e47c
fix(ci): add auto-updater manifest files and version auto-update (#317)
MikeeBuilds Dec 26, 2025
cb6b216
fix(tasks): sync status to worktree implementation plan to prevent re…
AlexMadera Dec 26, 2025
8a80b1d
fix(ci): remove version bump to fix branch protection conflict (#325)
MikeeBuilds Dec 26, 2025
50e3111
feat: bump version (#329)
AlexMadera Dec 26, 2025
d3a63b0
perf: convert synchronous I/O to async operations in worktree handler…
JoshuaRileyDev Dec 27, 2025
fec6b9f
refactor(settings): remove deprecated ProjectSettings modal and hooks…
Mitsu13Ion Dec 27, 2025
9734b70
chore: Refactor/kanban realtime status sync (#249)
souky-byte Dec 27, 2025
787667e
refactor(components): remove deprecated TaskDetailPanel re-export (#344)
Mitsu13Ion Dec 27, 2025
d51f456
feat: centralize CLI tool path management (#341)
Furansujin Dec 27, 2025
9d43abe
refactor: remove deprecated code across backend and frontend (#348)
Mitsu13Ion Dec 27, 2025
fef07c9
feat: add terminal dropdown with inbuilt and external options in task…
JoshuaRileyDev Dec 27, 2025
40d04d7
chore: bump version to 2.7.2-beta.10
AndyMik90 Dec 27, 2025
e9782db
fix(ui): close parent modal when Edit dialog opens (#354)
MikeeBuilds Dec 27, 2025
4dcc5af
fix: make backend tests pass on Windows (#282)
tosincarik Dec 27, 2025
4e71361
fix(analyzer): add C#/Java/Swift/Kotlin project files to security has…
MikeeBuilds Dec 27, 2025
7881b2d
fix(terminal): preserve terminal state when switching projects (#358)
AndyMik90 Dec 27, 2025
1fa7a9c
fix: Resolve pre-commit hook failures with version sync, pytest path,…
ianstantiate Dec 27, 2025
eabe7c7
fix(subprocess): handle Python paths with spaces (#352)
MikeeBuilds Dec 27, 2025
20f20fa
fix(security): invalidate profile cache when file is created/modified…
MikeeBuilds Dec 27, 2025
753dc8b
fix(perf): remove projectTabs from useEffect deps to fix re-render lo…
MikeeBuilds Dec 27, 2025
9bbdef0
fix/Improving UX for Display/Scaling Changes (#332)
kvnloo Dec 27, 2025
2d3b7fb
docs: add security research documentation (#361)
bdmorin Dec 27, 2025
0ca2e3f
fix: fixed version-specific links in readme and pre-commit hook that …
ianstantiate Dec 28, 2025
db0cbea
fix: Memory Status card respects configured embedding provider (#336)…
MikeeBuilds Dec 28, 2025
bc22064
Fixes failing spec - "gh CLI Check Handler - should return installed:…
ianstantiate Dec 28, 2025
8b4ce58
fix(ideation): update progress calculation to include just-completed …
illia1f Dec 28, 2025
7751588
fix(github): improve PR review with structured outputs and fork suppo…
AndyMik90 Dec 28, 2025
68548e3
feat(analyzer): add iOS/Swift project detection (#389)
MikeeBuilds Dec 28, 2025
aaa8313
fix: improve CLI tool detection and add Claude CLI path settings (#393)
jslitzkerttcu Dec 28, 2025
98b12ed
fix(ui): prevent TaskEditDialog from unmounting when opened (#395)
MikeeBuilds Dec 28, 2025
321c971
fix(analyzer): move Swift detection before Ruby detection (#401)
MikeeBuilds Dec 29, 2025
0513121
fix: 2.7.2 bug fixes and improvements (#388)
AndyMik90 Dec 29, 2025
9aef0dd
fix(frontend): add .js extension to electron-log/main imports
AndyMik90 Dec 29, 2025
a39ea49
chore(ci): remove redundant CLA GitHub Action workflow
AndyMik90 Dec 29, 2025
4bdf7a0
fix(github): pass repo parameter to GHClient for explicit PR resoluti…
AndyMik90 Dec 29, 2025
230de5f
feat(build): add Flatpak packaging support for Linux (#404)
Mitsu13Ion Dec 29, 2025
e7e6b52
fix(model): respect task_metadata.json model selection (#415)
AndyMik90 Dec 30, 2025
2f66246
fix: Allow windows to run CC PR Reviewer (#406)
AlexMadera Dec 30, 2025
0a571d3
feat: add gitlab integration (#254)
Mitsu13Ion Dec 30, 2025
717fba0
feat: enhance pr review page to include PRs filters (#423)
AlexMadera Dec 30, 2025
62a7551
fix(spec_runner): add --base-branch argument support (#428)
Mitsu13Ion Dec 30, 2025
88c7605
fix(client): add spec_dir to SDK permissions (#429)
Mitsu13Ion Dec 30, 2025
515b73b
ci: remove conventional commits PR title validation workflow
AndyMik90 Dec 29, 2025
bdb0154
feat: Enhance the look of the PR Detail area (#427)
AlexMadera Dec 30, 2025
798ca79
fix(ui): add fallback to prevent tasks stuck in ai_review status (#397)
MikeeBuilds Dec 30, 2025
ac8dfca
refactor: remove deprecated TaskDetailPanel component (#432)
Mitsu13Ion Dec 30, 2025
666794b
feat(frontend): Add Files tab to task details panel (#430)
Mitsu13Ion Dec 30, 2025
3c0708b
fix(windows): resolve EINVAL error when opening worktree in VS Code (…
fireapache Dec 30, 2025
203a970
fix: infinite loop in useTaskDetail merge preview loading (#444)
abe238 Dec 31, 2025
c15bb31
fix: accept Python 3.12+ in install-backend.js (#443)
abe238 Dec 31, 2025
2effa53
fix: prevent infinite re-render loop in task selection useEffect (#442)
abe238 Dec 31, 2025
da31b68
feat: remove top bars (#386)
fireapache Dec 31, 2025
5d8ede2
Fix/2.7.2 beta12 (#424)
AndyMik90 Dec 31, 2025
0f9c5b8
fix(pr-review): treat LOW-only findings as ready to merge (#455)
AndyMik90 Dec 31, 2025
fb6b7fc
fix: create spec.md during roadmap-to-task conversion (#446)
Pranaveswar19 Dec 31, 2025
52a4fcc
fix(ci): add Rust toolchain for Intel Mac builds (#459)
AndyMik90 Dec 31, 2025
7210610
Fix/windows issues (#471)
AndyMik90 Jan 1, 2026
8e5c11a
chore: bump version to 2.7.2-beta.12 (#460)
AndyMik90 Jan 1, 2026
4da8cd6
fix(detection): support bun.lock text format for Bun 1.2.0+ (#525)
AndyMik90 Jan 1, 2026
8d58dd6
fix: prefer versioned Homebrew Python over system python3 (#494)
mirzaaghazadeh Jan 1, 2026
344ec65
fix(pr-review): use temporary worktree for PR review isolation (#532)
AndyMik90 Jan 1, 2026
3db02c5
fix(csp): allow external HTTPS images in Content-Security-Policy (#549)
MikeeBuilds Jan 2, 2026
30f7951
fix: resolve frontend lag and update dependencies (#526)
AndyMik90 Jan 2, 2026
f58c257
fix(memory): fix learning loop to retrieve patterns and gotchas (#530)
AndyMik90 Jan 2, 2026
7990dcb
fix(ui): preserve original task description after spec creation (#536)
AndyMik90 Jan 2, 2026
29e4550
fix: detect and clear cross-platform CLI paths in settings (#535)
AndyMik90 Jan 2, 2026
c2148bb
fix(ci): add Python setup to beta-release and fix PR status gate chec…
AndyMik90 Jan 2, 2026
16a7fa4
fix(merge): resolve KanbanBoard conflicts favoring develop
AndyMik90 Jan 2, 2026
90a2032
feat(terminal): respect preferred terminal setting for Windows PTY shell
AndyMik90 Jan 2, 2026
90dddc2
fix(ci): cache pip wheels to speed up Intel Mac builds
AndyMik90 Jan 2, 2026
dedd075
# 🔥 hotfix(electron): restore app functionality on Windows broken by …
sniggl Jan 2, 2026
6d4231e
ci(release): add CHANGELOG.md validation and fix release workflow
AndyMik90 Jan 2, 2026
04de8c7
fix(merge): handle Windows CRLF line endings in regex fallback
AndyMik90 Jan 2, 2026
effaa68
fix: Solve ladybug problem on running npm install all on windows (#576)
AlexMadera Jan 2, 2026
6ac3012
2.7.2 release
AndyMik90 Jan 2, 2026
2880baf
Merge branch 'fix/2.7.3-hotfixes' into develop
AndyMik90 Jan 2, 2026
d278963
feat: custom Anthropic compatible API profile management (#181)
gnoviawan Jan 2, 2026
3086233
Improving Task Card Title Readability (#461)
fireapache Jan 2, 2026
5efc2c5
docs: update stable download links to v2.7.2 (#579)
AlexMadera Jan 2, 2026
4a83304
feat: add Dart/Flutter/Melos support to security profiles (#583)
Mitsu13Ion Jan 2, 2026
6c85590
fix(kanban): complete refresh button implementation (#584)
MikeeBuilds Jan 3, 2026
14b3db5
fix: pass electron version explicitly to electron-rebuild on Windows …
fireapache Jan 3, 2026
f5be794
fix(frontend): resolve PATH and PYTHONPATH issues in insights and cha…
hluisi Jan 3, 2026
7177c79
fix: human_review status persistence bug (worktree plan path fix) (#605)
MikeeBuilds Jan 3, 2026
13535f1
feat(terminal): add worktree support for terminals (#625)
AndyMik90 Jan 3, 2026
acdd7d9
refactor(github-review): replace confidence scoring with evidence-bas…
AndyMik90 Jan 3, 2026
556f0b2
fix(frontend): filter empty env vars to prevent OAuth token override …
Ashwinhegde19 Jan 3, 2026
4ec9db8
fix: security hook cwd extraction and PATH issues (#555, #556) (#587)
hluisi Jan 3, 2026
f7b02e8
fix(ci): include update manifests for architecture-specific auto-upda…
hluisi Jan 3, 2026
39da819
Fix/small fixes 2.7.3 (#631)
AndyMik90 Jan 3, 2026
46c41f8
fix: change hardcoded Opus defaults to Sonnet (fix #433) (#633)
MikeeBuilds Jan 3, 2026
b720312
fix(ui): update TaskCard description truncation for improved display …
AndyMik90 Jan 3, 2026
846e524
fix: resolve Claude CLI not found in packaged Electron apps (Issue #529)
adryserage Jan 4, 2026
1d96d11
merge: resolve conflict with upstream/main in release.yml
adryserage Jan 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ jobs:
path: |
apps/frontend/dist/*.dmg
apps/frontend/dist/*.zip
apps/frontend/dist/*.yml
apps/frontend/dist/*.blockmap

# Apple Silicon build on ARM64 runner for native compilation
build-macos-arm64:
Expand Down Expand Up @@ -187,6 +189,8 @@ jobs:
path: |
apps/frontend/dist/*.dmg
apps/frontend/dist/*.zip
apps/frontend/dist/*.yml
apps/frontend/dist/*.blockmap

build-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -249,6 +253,8 @@ jobs:
name: windows-builds
path: |
apps/frontend/dist/*.exe
apps/frontend/dist/*.yml
apps/frontend/dist/*.blockmap

build-linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -318,6 +324,8 @@ jobs:
apps/frontend/dist/*.AppImage
apps/frontend/dist/*.deb
apps/frontend/dist/*.flatpak
apps/frontend/dist/*.yml
apps/frontend/dist/*.blockmap

create-release:
needs: [build-macos-intel, build-macos-arm64, build-windows, build-linux]
Expand All @@ -337,16 +345,30 @@ jobs:
- name: Flatten and validate artifacts
run: |
mkdir -p release-assets
find dist -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.flatpak" \) -exec cp {} release-assets/ \;
find dist -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.flatpak" -o -name "*.yml" -o -name "*.blockmap" \) -exec cp {} release-assets/ \;

# Validate that at least one artifact was copied
artifact_count=$(find release-assets -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.flatpak" \) | wc -l)
if [ "$artifact_count" -eq 0 ]; then
echo "::error::No build artifacts found! Expected .dmg, .zip, .exe, .AppImage, .deb, or .flatpak files."
# Validate that installer files exist (not just manifests)
installer_count=$(find release-assets -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.flatpak" \) | wc -l)
if [ "$installer_count" -eq 0 ]; then
echo "::error::No installer artifacts found! Expected .dmg, .zip, .exe, .AppImage, .deb, or .flatpak files."
exit 1
fi

echo "Found $artifact_count artifact(s):"
echo "Found $installer_count installer(s):"
find release-assets -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.flatpak" \) -exec basename {} \;

# Validate that electron-updater manifest files are present (required for auto-updates)
yml_count=$(find release-assets -type f -name "*.yml" | wc -l)
if [ "$yml_count" -eq 0 ]; then
echo "::error::No update manifest (.yml) files found! Auto-update architecture detection will not work."
exit 1
fi

echo "Found $yml_count manifest file(s):"
find release-assets -type f -name "*.yml" -exec basename {} \;

echo ""
echo "All release assets:"
ls -la release-assets/

- name: Generate checksums
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ _bmad-output/
.claude/
/docs
OPUS_ANALYSIS_AND_IDEAS.md
/.github/agents
4 changes: 2 additions & 2 deletions apps/backend/cli/batch_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def handle_batch_cleanup_command(project_dir: str, dry_run: bool = True) -> bool
True if successful
"""
specs_dir = Path(project_dir) / ".auto-claude" / "specs"
worktrees_dir = Path(project_dir) / ".worktrees"
worktrees_dir = Path(project_dir) / ".auto-claude" / "worktrees" / "tasks"

if not specs_dir.exists():
print_status("No specs directory found", "info")
Expand All @@ -209,7 +209,7 @@ def handle_batch_cleanup_command(project_dir: str, dry_run: bool = True) -> bool
print(f" - {spec_name}")
wt_path = worktrees_dir / spec_name
if wt_path.exists():
print(f" └─ .worktrees/{spec_name}/")
print(f" └─ .auto-claude/worktrees/tasks/{spec_name}/")
print()
print("Run with --no-dry-run to actually delete")

Expand Down
6 changes: 3 additions & 3 deletions apps/backend/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
muted,
)

# Configuration
DEFAULT_MODEL = "claude-opus-4-5-20251101"
# Configuration - uses shorthand that resolves via API Profile if configured
DEFAULT_MODEL = "sonnet" # Changed from "opus" (fix #433)


def setup_environment() -> Path:
Expand Down Expand Up @@ -82,7 +82,7 @@ def find_spec(project_dir: Path, spec_identifier: str) -> Path | None:
return spec_folder

# Check worktree specs (for merge-preview, merge, review, discard operations)
worktree_base = project_dir / ".worktrees"
worktree_base = project_dir / ".auto-claude" / "worktrees" / "tasks"
if worktree_base.exists():
# Try exact match in worktree
worktree_spec = (
Expand Down
7 changes: 7 additions & 0 deletions apps/backend/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@
# Environment variables to pass through to SDK subprocess
# NOTE: ANTHROPIC_API_KEY is intentionally excluded to prevent silent API billing
SDK_ENV_VARS = [
# API endpoint configuration
"ANTHROPIC_BASE_URL",
"ANTHROPIC_AUTH_TOKEN",
# Model overrides (from API Profile custom model mappings)
"ANTHROPIC_MODEL",
"ANTHROPIC_DEFAULT_HAIKU_MODEL",
"ANTHROPIC_DEFAULT_SONNET_MODEL",
"ANTHROPIC_DEFAULT_OPUS_MODEL",
# SDK behavior configuration
"NO_PROXY",
"DISABLE_TELEMETRY",
"DISABLE_COST_WARNINGS",
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=============================================

Handles workspace isolation through Git worktrees, where each spec
gets its own isolated worktree in .worktrees/{spec-name}/.
gets its own isolated worktree in .auto-claude/worktrees/tasks/{spec-name}/.

This module has been refactored for better maintainability:
- Models and enums: workspace/models.py
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/core/workspace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=============================

Handles workspace isolation through Git worktrees, where each spec
gets its own isolated worktree in .worktrees/{spec-name}/.
gets its own isolated worktree in .auto-claude/worktrees/tasks/{spec-name}/.

This package provides:
- Workspace setup and configuration
Expand Down
20 changes: 18 additions & 2 deletions apps/backend/core/workspace/finalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,15 @@ def handle_workspace_choice(
if staging_path:
print(highlight(f" cd {staging_path}"))
else:
print(highlight(f" cd {project_dir}/.worktrees/{spec_name}"))
worktree_path = get_existing_build_worktree(project_dir, spec_name)
if worktree_path:
print(highlight(f" cd {worktree_path}"))
else:
print(
highlight(
f" cd {project_dir}/.auto-claude/worktrees/tasks/{spec_name}"
)
)

# Show likely test/run commands
if staging_path:
Expand Down Expand Up @@ -232,7 +240,15 @@ def handle_workspace_choice(
if staging_path:
print(highlight(f" cd {staging_path}"))
else:
print(highlight(f" cd {project_dir}/.worktrees/{spec_name}"))
worktree_path = get_existing_build_worktree(project_dir, spec_name)
if worktree_path:
print(highlight(f" cd {worktree_path}"))
else:
print(
highlight(
f" cd {project_dir}/.auto-claude/worktrees/tasks/{spec_name}"
)
)
print()
print("When you're ready to add it:")
print(highlight(f" python auto-claude/run.py --spec {spec_name} --merge"))
Expand Down
14 changes: 10 additions & 4 deletions apps/backend/core/workspace/git_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,16 @@ def get_existing_build_worktree(project_dir: Path, spec_name: str) -> Path | Non
Returns:
Path to the worktree if it exists for this spec, None otherwise
"""
# Per-spec worktree path: .worktrees/{spec-name}/
worktree_path = project_dir / ".worktrees" / spec_name
if worktree_path.exists():
return worktree_path
# New path first
new_path = project_dir / ".auto-claude" / "worktrees" / "tasks" / spec_name
if new_path.exists():
return new_path

# Legacy fallback
legacy_path = project_dir / ".worktrees" / spec_name
if legacy_path.exists():
return legacy_path

return None


Expand Down
2 changes: 1 addition & 1 deletion apps/backend/core/workspace/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_next_spec_number(self) -> int:
max_number = max(max_number, self._scan_specs_dir(main_specs_dir))

# 2. Scan all worktree specs
worktrees_dir = self.project_dir / ".worktrees"
worktrees_dir = self.project_dir / ".auto-claude" / "worktrees" / "tasks"
if worktrees_dir.exists():
for worktree in worktrees_dir.iterdir():
if worktree.is_dir():
Expand Down
103 changes: 16 additions & 87 deletions apps/backend/core/worktree.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=============================================

Each spec gets its own worktree:
- Worktree path: .worktrees/{spec-name}/
- Worktree path: .auto-claude/worktrees/tasks/{spec-name}/
- Branch name: auto-claude/{spec-name}

This allows:
Expand Down Expand Up @@ -48,14 +48,14 @@ class WorktreeManager:
"""
Manages per-spec Git worktrees.

Each spec gets its own worktree in .worktrees/{spec-name}/ with
Each spec gets its own worktree in .auto-claude/worktrees/tasks/{spec-name}/ with
a corresponding branch auto-claude/{spec-name}.
"""

def __init__(self, project_dir: Path, base_branch: str | None = None):
self.project_dir = project_dir
self.base_branch = base_branch or self._detect_base_branch()
self.worktrees_dir = project_dir / ".worktrees"
self.worktrees_dir = project_dir / ".auto-claude" / "worktrees" / "tasks"
self._merge_lock = asyncio.Lock()

def _detect_base_branch(self) -> str:
Expand Down Expand Up @@ -194,7 +194,7 @@ def _unstage_gitignored_files(self) -> None:

def setup(self) -> None:
"""Create worktrees directory if needed."""
self.worktrees_dir.mkdir(exist_ok=True)
self.worktrees_dir.mkdir(parents=True, exist_ok=True)

# ==================== Per-Spec Worktree Methods ====================

Expand Down Expand Up @@ -478,14 +478,12 @@ def list_all_worktrees(self) -> list[WorktreeInfo]:
"""List all spec worktrees."""
worktrees = []

if not self.worktrees_dir.exists():
return worktrees

for item in self.worktrees_dir.iterdir():
if item.is_dir():
info = self.get_worktree_info(item.name)
if info:
worktrees.append(info)
if self.worktrees_dir.exists():
for item in self.worktrees_dir.iterdir():
if item.is_dir():
info = self.get_worktree_info(item.name)
if info:
worktrees.append(info)

return worktrees

Expand Down Expand Up @@ -587,81 +585,12 @@ def get_test_commands(self, spec_name: str) -> list[str]:

return commands

# ==================== Backward Compatibility ====================
# These methods provide backward compatibility with the old single-worktree API

def get_staging_path(self) -> Path | None:
"""
Backward compatibility: Get path to any existing spec worktree.
Prefer using get_worktree_path(spec_name) instead.
"""
worktrees = self.list_all_worktrees()
if worktrees:
return worktrees[0].path
return None

def get_staging_info(self) -> WorktreeInfo | None:
"""
Backward compatibility: Get info about any existing spec worktree.
Prefer using get_worktree_info(spec_name) instead.
"""
worktrees = self.list_all_worktrees()
if worktrees:
return worktrees[0]
return None

def merge_staging(self, delete_after: bool = True) -> bool:
"""
Backward compatibility: Merge first found worktree.
Prefer using merge_worktree(spec_name) instead.
"""
worktrees = self.list_all_worktrees()
if worktrees:
return self.merge_worktree(worktrees[0].spec_name, delete_after)
return False

def remove_staging(self, delete_branch: bool = True) -> None:
"""
Backward compatibility: Remove first found worktree.
Prefer using remove_worktree(spec_name) instead.
"""
worktrees = self.list_all_worktrees()
if worktrees:
self.remove_worktree(worktrees[0].spec_name, delete_branch)

def get_or_create_staging(self, spec_name: str) -> WorktreeInfo:
"""
Backward compatibility: Alias for get_or_create_worktree.
"""
return self.get_or_create_worktree(spec_name)

def staging_exists(self) -> bool:
"""
Backward compatibility: Check if any spec worktree exists.
Prefer using worktree_exists(spec_name) instead.
"""
return len(self.list_all_worktrees()) > 0

def commit_in_staging(self, message: str) -> bool:
"""
Backward compatibility: Commit in first found worktree.
Prefer using commit_in_worktree(spec_name, message) instead.
"""
worktrees = self.list_all_worktrees()
if worktrees:
return self.commit_in_worktree(worktrees[0].spec_name, message)
return False

def has_uncommitted_changes(self, in_staging: bool = False) -> bool:
def has_uncommitted_changes(self, spec_name: str | None = None) -> bool:
"""Check if there are uncommitted changes."""
worktrees = self.list_all_worktrees()
if in_staging and worktrees:
cwd = worktrees[0].path
else:
cwd = None
cwd = None
if spec_name:
worktree_path = self.get_worktree_path(spec_name)
if worktree_path.exists():
cwd = worktree_path
result = self._run_git(["status", "--porcelain"], cwd=cwd)
return bool(result.stdout.strip())


# Keep STAGING_WORKTREE_NAME for backward compatibility in imports
STAGING_WORKTREE_NAME = "auto-claude"
2 changes: 1 addition & 1 deletion apps/backend/ideation/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
include_roadmap_context: bool = True,
include_kanban_context: bool = True,
max_ideas_per_type: int = 5,
model: str = "claude-opus-4-5-20251101",
model: str = "sonnet", # Changed from "opus" (fix #433)
thinking_level: str = "medium",
refresh: bool = False,
append: bool = False,
Expand Down
Loading
Loading