Skip to content

Fix Homeboy project detection when site URLs are blank#188

Merged
chubes4 merged 1 commit into
mainfrom
fix/homeboy-upgrade-empty-site-domain
Jun 3, 2026
Merged

Fix Homeboy project detection when site URLs are blank#188
chubes4 merged 1 commit into
mainfrom
fix/homeboy-upgrade-empty-site-domain

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented Jun 3, 2026

Summary

  • Scope Studio WP-CLI site URL detection to the target WordPress path with studio wp option get siteurl --path=<site> so upgrade/setup resolves the intended site instead of the ambient/default Studio context.
  • Keep a basename fallback only as a last-resort guard when WP-CLI returns no site URL.
  • Harden Homeboy project resolution so absolute site paths do not slugify to an empty project id, and preserve empty homeboy.json as a skip condition.

Testing

  • bash tests/*.sh
  • node tests/effective-prompt/run.mjs
  • Canary: ./upgrade.sh --skip-plugins --wp-path /Users/chubes/Studio/intelligence-chubes4 from this branch installed the generated AGENTS.md guidance without the empty Homeboy project warning.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Diagnosed the failed canary path, drafted the path-scoped resolver fix and regression test, ran local verification, and prepared this PR for Chris to review.

@chubes4 chubes4 force-pushed the fix/homeboy-upgrade-empty-site-domain branch from a4e3d4c to cef8d34 Compare June 3, 2026 22:50
@chubes4 chubes4 merged commit 8176520 into main Jun 3, 2026
4 checks passed
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