Skip to content

feat: workspace image repointing, dashboard origin sync, onboarding fix - #72

Merged
ilovecrayons merged 5 commits into
mainfrom
fix/gui-ux-image-sync-onboarding
Sep 5, 2026
Merged

feat: workspace image repointing, dashboard origin sync, onboarding fix#72
ilovecrayons merged 5 commits into
mainfrom
fix/gui-ux-image-sync-onboarding

Conversation

@ilovecrayons

Copy link
Copy Markdown
Contributor

End-to-end verification against a live server surfaced four issues; each is its own commit.

What was wrong

  1. sudo "broken" in run terminals. Runs still used the image pinned at workspace creation (aether-standard:v0.1.2-alpha.12, which predates sudo in the standard image) and nothing could ever change that pin. The sudo fix shipped in the image long ago; no existing workspace could receive it.
  2. No sync-with-remote button. --sync-origin (Finished-run terminal replay, terminal clipboard, and --sync-origin #71) is daemon-only; the GUI had no affordance, so runs forked from a stale server base branch.
  3. Onboarding re-ran on every GUI launch. The onboarded flag lives in localStorage, but aether gui binds an ephemeral port, so the origin (and the flag) changed every launch.
  4. Server-side commits executed agent-planted git config. Found while testing: CommitAll ran hooks, fsmonitor, and clean filters from the agent-writable checkout as the server user.

What happens now

  • New admin-only workspace.image control method; aether workspace settings --image; Manage workspaces shows each workspace's image with a one-click update when the server's standard image is newer.
  • New repo.sync local-gateway verb + Settings "Sync from origin" button: fetches origin, fast-forwards the server's base branch, never forced, local branch and worktree untouched.
  • Hydration counts a linked gateway as onboarded before the redirect decision.
  • Server-side commits neutralize hooksPath, fsmonitor, and attribute sources, and drop .git/info/attributes.
  • Test isolation fixes: update.apply tests stub the desktop rebuild; the selfupdate ownership test pins the tempdir mode against umask 002.

Verification

make fmt-check vet lint test green; bun run typecheck + full vitest (572 tests) green. Verified live: deployed to a real server, updated a stale workspace image through the dashboard, synced the base branch (git's own output shown), launched an omp run that proved sudo whoami -> root on the new image, committed, and pulled the branch - forked from the current origin/main tip.

…mmits

The run checkout, .git included, is agent-writable, and CommitAll ran
git with whatever config the agent left there: a pre-commit hook,
fsmonitor, or a clean filter selected by a planted .gitattributes ran
as the server user on the host. Server-side commits now point hooks at
an empty path, disable fsmonitor, read attributes from the empty tree,
and drop .git/info/attributes, which has no override.
Workspaces pinned their standard image at creation and nothing could
change it, so a server upgrade left every existing workspace running
the old image - and its old tooling - forever. A new admin-only
workspace.image method reads or sets the pinned ref, the CLI takes
--image on workspace settings, and Manage workspaces shows each
workspace's image with a one-click update when the server's standard
image is newer.
Keeping the server's base branch current meant installing the sync
daemon with --sync-origin or pushing by hand; the GUI had no sync
affordance at all. A new repo.sync local-gateway verb fetches origin
and fast-forwards the server's base branch from it, never forced and
never touching the local branch or working tree, and the Settings page
gains a Sync from origin button that runs it once, on demand.
The onboarded flag lives in localStorage, but aether gui binds an
ephemeral port, so the origin - and the flag - changed on every
launch and hydration redirected a fully linked machine back into the
wizard each time. A gateway whose link.status answers linked now
counts as onboarded before the redirect decision.
update.apply tests ran the real desktop-app rebuild when the developer
machine had the app installed, flipping the response to its rebuilding
shape; they now stub the rebuild like the rebuild tests do. The
selfupdate ownership walk pinned t.TempDir's mode, which inherits the
umask and came out group-writable under 002.
@ilovecrayons
ilovecrayons merged commit 4032d13 into main Sep 5, 2026
6 checks passed
@ilovecrayons
ilovecrayons deleted the fix/gui-ux-image-sync-onboarding branch September 5, 2026 00:28
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