Skip to content

feat(app): bare desktop session — spawn app launch desktop (#591) - #594

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/591-desktop-session
Sep 15, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/591-desktop-session

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Feature A of the approved plan to generalize spawn app launch beyond a single X11 app. Adds a bare desktop session for users who want a general GUI workspace ("open a terminal and run anything"), not a single-app kiosk.

Depends on libs v0.45.0 (the kind schema + built-in desktop entry), already released.

What changes

  • spawn app launch desktop (alias workspace) launches a full Linux desktop over DCV — no application container.
  • Routing in cmd/app.go on entry.Kind():
  • CPU by default (the catalog desktop entry uses c7i/m7i); --instance-type g6.xlarge opts into a GL-accelerated desktop (DCV doesn't require a GPU).
  • Reuses everything else: SSM base-AMI resolution, the DCV boot-install, the spawn:ready-* handshake (DCVSessionID is set, so no spored change), DCV idle branch, OnComplete: stop.

Tests

TestBuildDesktopDCVUserData — asserts the desktop user-data installs a desktop env + DCV, runs the desktop init (not an app), pulls no container, and has no format-verb leak. Full cmd suite + vet green.

Not yet validated end-to-end

The desktop-environment specifics (GNOME-on-X vs the WM+terminal fallback in a DCV virtual session on AL2023) need a real-instance run to settle — that's the gated follow-up (TTL + terminate + leak-check). The fallback is designed so a terminal always comes up even if the full GNOME session misbehaves.

Refs #591, #590.

Add a 'desktop' launch kind: a full Linux desktop over DCV (open a terminal, run
anything) instead of a single-app kiosk. Route entry.Kind()==desktop to a new
buildDesktopDCVUserData that installs a desktop environment + DCV at boot and
runs it as the DCV session --init (GNOME preferred, WM+xterm fallback), no
container. Guard kind==web with a clear not-yet error (Feature B). Bump libs to
v0.45.0 (kind schema). Unit-tested (TestBuildDesktopDCVUserData).

Refs #591, #590.
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 53.84615% with 18 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/app.go 53.84% 18 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit ac32335 into main Sep 15, 2026
10 of 11 checks passed
@scttfrdmn
scttfrdmn deleted the feat/591-desktop-session branch September 15, 2026 01:43
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