tray: rebuild and restart the dev app from the tray - #411
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tart build.sh dev writes MSBuildStamp (time, sha, +dirty, tree) when given one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dev flavor watches ~/.mattstack/rt/dev-app for a staged build whose stamp differs from its own; the tray menu and a pill in the window's tab bar restart into it through the DevBuild handoff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A swapped-out bundle leaves managed apps running a deleted Helpers/bun, which loses its Documents grant (EPERM); the handoff and the --ref rebuild now restart deck's managed apps after the deck helper. Also: staging retires the old staged dir by rename; an unstamped running app still offers a staged build; the aside copy is guarded against the mv-into-dir trap; the handoff logs to dev-app-restart.log; Restart is hidden while a rebuild runs; the menu re-checks on open; prod guards; build errors keep stdout; Rebuild hides when its worktree is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etry loop restart --managed fails when any one app fails, so retrying it re-killed every healthy app; poll deck list until it answers, then restart once. Also: an unwritable handoff log no longer kills the handoff, and a staged dir that cannot be retired fails staging. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The list comes from the daemon's worktree:list (repo-tools trees only), so the dev app never reads the checkouts itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e build log Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le the daemon starts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…marked disposable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y label Orange text washed out on the translucent menu bar over light wallpapers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 14 minutes. View limit detailsLimit details: You’ve used the included review currently available. Your 83 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (18)
Comment |
…ttons Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… empty submenu, build timeout, skill trigger) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dev app: rebuild and restart from the tray
Iterating on mattstack-dev meant a terminal build and a hand swap into /Applications. Modeled on flock's "New build · Restart": build any repo-tools tree from the tray, then restart into it with one click.
What changed
Build and stage (
scripts/build-dev-app.ts --local,lib/release/dev-app-stage.ts)~/.mattstack/rt/dev-app/staged/, only ever by whole-dir renamesbuild.sh devwritesMSBuildStamp(time, sha,+dirty, tree)Tray (dev flavor only)
DevBuildWatcherwatches the staging dir and compares stamps (read from disk)worktree:list, merged/closed/disposable trees skipped); a ready build replaces both with New build · Restartdevpill plusbuilding…/new build ready/build failed; the window tab bar mirrors it with a pilldeck restart --managedAlso
--refrebuild path restarts deck's managed apps too; a swap left them running the deleted bundle'sHelpers/bun, which lost its Documents grant (EPERM)Tests
mattstack-checks336/336 (handoff script run for real in temp dirs: swap, rollback, stale aside, unwritable log, waits for exit, single managed restart); release and script tests 254/254. Live: rebuilt and restarted the dev app from the tray several times; managed apps came back on the new bundle.🤖 Generated with Claude Code