Skip to main content

SHEET 06 OF 41

/DOC/:SLUG

PART:
03 DOCUMENTATION
CIRCULATION:
PUBLIC
SOURCE:
pages/Doc/[...Slug].astro
AS OF:
2026-12-02

What to observe after the build, in order, and the first place to look when a checkpoint does not happen.

/Guide

First Launch Checkpoints

What to observe after the build, in order, and the first place to look when a checkpoint does not happen.

PUBLISHED GUIDE Source/Content/doc/first-launch-checkpoints.md UNAVAILABLE UNAVAILABLE PROCEDURE 6

The build pages end at the same sentence: the editor window opens. This page is the sequence a first launch actually runs, the evidence each checkpoint leaves, and the first place to look when one does not happen. It is not a second troubleshooting index; it is the order the system starts in, so a reader can stop at the first checkpoint that never arrives instead of guessing at the last one.

The evidence below is read from the startup implementation and the build guide: Element/Mountain/Source/Binary/Main/Entry.rs and Element/Cocoon/Scripts/cocoon/bootstrap-fork.js own the two process starts, Installation owns the artifact paths, and Troubleshooting owns the recovery procedures this page links to. Application Startup and Handshake owns the three-phase narrative this page walks.

Before You Launch 🚦

Check Where Source
The native binary exists Element/Mountain/Target/debug/Mountain Installation, Artifact Paths
The macOS bundle exists Element/Mountain/Target/debug/bundle/macos/ Installation, Artifact Paths
The extension host entry point exists Element/Cocoon/Target/Main.js Installation, Artifact Paths
A bundled profile’s workbench assets exist Element/Sky/Target/Static/Bundled/ Installation, Artifact Paths

Launch the binary directly, or use the development launcher:

./Element/Mountain/Target/debug/Mountain
./Maintain/Debug/Run.sh --profile debug-mountain

Build.sh builds; it has no run flag. Run.sh starts a hot-reloading session against an existing build.

The Checkpoints 🧭

Read these in order. Each one is a phase boundary in the startup sequence, not a step a reader performs.

1. The process starts and a window opens

The OS launches the Mountain binary; Tauri creates its builder, builds the application state in the setup hook (ApplicationState::default()) and manages it for the app’s lifetime. The window is the first visible evidence that the native process is alive.

Source: Land/Element/Mountain/Source/Binary/Main/Entry.rs (the setup hook and ApplicationState::default()); Application Startup and Handshake, Phase 1.

2. Mountain’s tier banner appears

LogResolvedTiers() emits one [LandFix:Tier] Mountain tiers: ... line before the Tokio runtime spawns any tasks. The line lists the compiled-in value of every tier variable, so it records the configuration baked into the binary that is running, not the host environment’s current exports.

Source: Land/Element/Mountain/Source/LandFixTier.rs (LogResolvedTiers), called from Binary/Main/Entry.rs.

3. Cocoon starts and reads its two ports

Mountain spawns node ./Element/Cocoon/Scripts/cocoon/bootstrap-fork.js. Cocoon logs [Cocoon] Bootstrap script starting, then reads MOUNTAIN_GRPC_PORT (default 50051) and COCOON_GRPC_PORT (default 50052) and prints both under [Cocoon] Environment:.

Source: Land/Element/Cocoon/Scripts/cocoon/bootstrap-fork.js, bootstrap().

4. Cocoon’s gRPC services start

Cocoon connects its Mountain client, starts its own gRPC server and logs [Cocoon] gRPC services started successfully. If that line never appears, the services did not start; the bootstrap logs [Cocoon] Failed to start gRPC services: with the cause before exiting non-zero.

Source: Land/Element/Cocoon/Scripts/cocoon/bootstrap-fork.js, startServices().

5. Cocoon signals readiness

Cocoon sends a cocoon.ready notification carrying pid, port (COCOON_GRPC_PORT) and version, then logs [Cocoon] Readiness signaled to Mountain and [Cocoon] Bootstrap complete - Cocoon ready for Mountain integration. The protocol layer is Vine: Vine.proto defines Mountain’s CocoonService (InitialHandshake, InitExtensionHost, ProcessMountainRequest) and Cocoon’s MountainService (ProcessCocoonRequest, SendCocoonNotification).

Source: Land/Element/Cocoon/Scripts/cocoon/bootstrap-fork.js, signalReadiness(); Land/Element/Vine/Proto/Vine.proto.

6. The workbench paints its first frame

Tauri loads the workbench shell in the webview. Wind/Source/Preload.ts installs window.vscode, shimming ipcRenderer and process for the Tauri host, and the workbench entry calls workbench.startup() to render its chrome. The workbench does not block paint on extension activation: the chrome renders first and contributed UI arrives as the extension stream reports each activatedExtension event.

Source: Land/Element/Wind/Source/Preload.ts; Land/Element/Sky/Source/Function/Sky/Bridge.ts (the workbench.startup() reference); Application Startup and Handshake, Phase 3.

7. The shell is ready for its first workflows

Once the gRPC services are up, readiness is signalled and the workbench paints, the dependent workflows can proceed. Two of them are opening a file and starting an integrated terminal; their pages state the sequence and the failure modes.

When a Checkpoint Does Not Happen 🔎

Stop at the first checkpoint that never arrives. This table names the first check and the page that owns the recovery.

Symptom Where the sequence broke First check Recovery
No window, process exits immediately Phase 1 The binary and the .app bundle exist; macOS code signing Troubleshooting, Code Signing Issues
Window opens, workbench stays blank Phase 3 - the workbench never painted Whether [Cocoon] gRPC services started successfully and [Cocoon] Readiness signaled to Mountain printed Troubleshooting, Blank workbench
[Cocoon] gRPC services started successfully never prints Phase 2 - the gRPC server or the Mountain client failed lsof -i :50051 -i :50052 for an orphaned Cocoon; the [Cocoon] Failed to start gRPC services: line Troubleshooting, Blank workbench
Crash during extension-host initialization Phase 3 - the initialization payload was incomplete dataFolderName in the initialization data Troubleshooting, dataFolderName crash
Chrome paints, extension contributions missing Phase 3 - activation stream stalled The activatedExtension events Troubleshooting, Extension not loading
First launch is slow, later launches are not Phase 1, extension scan - the pre-baked manifest was absent Whether extensions.manifest.json exists Troubleshooting
Cocoon survives Mountain’s exit Phase 1 - the child was not tied to the parent VSCODE_PARENT_PID in the spawned environment Troubleshooting

What Is Not Evidence ⚠️

A window that opens is not proof the extension host connected. The workbench paints its chrome before extension activation finishes, so a shell with no extension contributions can look like a working editor. The boot log’s order is the evidence: [LandFix:Tier] Mountain tiers: ..., then [Cocoon] gRPC services started successfully, then [Cocoon] Readiness signaled to Mountain, then the first frame. A blank workbench is almost always a startup problem rather than a rendering problem.


Project Maintainers: Source Open (Source/[email protected]) | GitHub Repository | Report an Issue

Guide, 6 PAGES, page 6 of 6

THE LAYER'S INDEX

NEXT: /BLOG 04 BLOG

NOTES FROM THE BUILD, NEWEST FIRST

〈06〉 /DOC/:SLUG 41 SHEETS AS OF: 2026-12-02