Skip to content

cmux-debug-cli: find a publish-hq build in the HQ tag app cache - #14579

Merged
teamleaderleo merged 1 commit into
mainfrom
debug-cli-hq-cache
Sep 25, 2026
Merged

teamleaderleo merged 1 commit into
mainfrom
debug-cli-hq-cache

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Why: scripts/cmux-debug-cli.sh only looked in DerivedData for the tagged CLI. A fleet build restored with cmux-ci publish-hq lands in the HQ Tag Opener cache instead (~/Library/Application Support/cmux/tag-app-cache/cmux-<tag>/cmux DEV <tag>.app, see cmuxterm-hq tools/cmux-hq/Sources/CmuxHQ/TagOpener.swift cachedAppURL), so the helper failed with "Tagged cmux CLI not found" and agents fell back to hand-typed CLI paths.

What: when the DerivedData CLI is missing, use the cached app's CLI. DerivedData still wins when both exist, the same order the Tag Opener resolves (resolvedAppURL). The not-found message lists both paths. One line in skills/cmux-dev-workflow/references/tagged-builds.md mentions the cache.

Validated: bash tests/test_cmux_debug_cli_helper.sh gains a case with only the cached app present. It failed before the script change ("Tagged cmux CLI not found") and passes after.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Fixes scripts/cmux-debug-cli.sh failing with "Tagged cmux CLI not found" when a fleet build was restored with cmux-ci publish-hq, since those builds land in the HQ Tag Opener cache (~/Library/Application Support/cmux/tag-app-cache) rather than DerivedData.

  • Falls back to the cached app's CLI when the DerivedData CLI is missing; DerivedData still wins when both exist, matching the Tag Opener's resolution order.
  • The not-found message now lists both paths, and the tests cover a cache-only build.

Written for commit 55bf706. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: manaflow-ai/cmux/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: d408ee78-23f4-46ae-9eb8-49ed213f8218

📥 Commits

Reviewing files that changed from the base of the PR and between 4027770 and 55bf706.

📒 Files selected for processing (3)
  • scripts/cmux-debug-cli.sh
  • skills/cmux-dev-workflow/references/tagged-builds.md
  • tests/test_cmux_debug_cli_helper.sh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@teamleaderleo
teamleaderleo merged commit 561d317 into main Sep 25, 2026
59 of 60 checks passed
@teamleaderleo
teamleaderleo deleted the debug-cli-hq-cache branch September 25, 2026 12:22
@github-actions

Copy link
Copy Markdown
Contributor

Merge receipt for 55bf7066bb: every check was green at merge (12 verified; 14 skipped by policy). Full suite runs on main after merge.

rustybret pushed a commit to rustybret/bmux that referenced this pull request Sep 25, 2026
c055747 ci: parse runner expressions in the fork guard, and gate LINUX_RUNNER on fork PRs (manaflow-ai#14192)
fc112a8 docs(testing): describe how run-e2e.sh actually picks the runner (manaflow-ai#14620)
0f6edfa ci(owned): keep seeds until the disk is actually short, not at a fixed 6 (manaflow-ai#14621)
1b78097 CI: one owned-pool rescue sweeper instead of a rescue run per CI run (manaflow-ai#14602)
c7e79f6 Hold Files tree reloads while its context menu is open (manaflow-ai#14451)
dbb24cb ci: read the owned-pool rescue's Actions API through the route App (manaflow-ai#14499)
36b8063 ci: store each app-host product file once in the product archive (manaflow-ai#14601)
0dba677 CI: run CmuxWorkspaces package tests (manaflow-ai#14592)
2244e98 Fix color detection in native tmux mirrors (manaflow-ai#14175)
3d2478e build: keep every built file in a project group so Xcode reuses its build description (manaflow-ai#14486)
a1a5ae9 ci(cmux-tui): cache cargo builds in the Rust jobs (manaflow-ai#14613)
560e640 ci(owned): keep 8 seeds per mini and pick seeds by cost, not a 2-commit cap (manaflow-ai#14607)
561d317 cmux-debug-cli: find a publish-hq build in the HQ tag app cache (manaflow-ai#14579)
c0aaac7 fix(events): survive receive-timeout reconfiguration churn during replay (manaflow-ai#13888)
3bd994a fix: keep split zoom when the zoomed pane outlives a tab close (manaflow-ai#12853)
ca984c7 Session snapshots can send binding actions to ghostty on a surface that is no longer live (manaflow-ai#12623)
a47d65b settings: expose local tmux session persistence (manaflow-ai#13210)
e3acb25 ci: give an owned Mac's full app rebuild 35 minutes to compile (manaflow-ai#14594)

# Conflicts:
#	.github/workflows/ci-artifact-transport.yml
#	.github/workflows/ci-cache-receipts.yml
#	.github/workflows/ci-guards.yml
#	.github/workflows/ci-macos.yml
#	.github/workflows/ci-owned-pool-rescue.yml
#	.github/workflows/ci-web.yml
#	.github/workflows/ci.yml
#	.github/workflows/cloud-machine-tests.yml
#	.github/workflows/cloud-vm-guest-install.yml
#	.github/workflows/cloud-vm-image-contract.yml
#	.github/workflows/cloud-vm-image-reachability.yml
#	.github/workflows/cloudflare-relay.yml
#	.github/workflows/cmux-skill-contract.yml
#	.github/workflows/cmux-tui-sdks.yml
#	.github/workflows/cmux-tui-spec.yml
#	.github/workflows/cmux-tui.yml
#	.github/workflows/indexnow-tests.yml
#	.github/workflows/iroh-v2.yml
#	.github/workflows/localization-catalog.yml
#	.github/workflows/r2-upload-tests.yml
#	.github/workflows/remote-daemon.yml
#	.github/workflows/repair-nightly-appcast-content-types.yml
#	.github/workflows/required-checks-drift.yml
#	.github/workflows/resolve-dispatch-ref.yml
#	.github/workflows/seed-derived-data.yml
#	.github/workflows/terminal-hang-diagnostics.yml
#	.github/workflows/test-e2e.yml
#	.github/workflows/test-ios.yml
#	.github/workflows/testbox-broker-guard.yml
#	.github/workflows/web-validation.yml
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