Start the XFCE desktop before code-server and coder-init #4
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
GuillaumeHemmen-k8s/coder-sindri-deployment!4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "perf/start-xfce-first"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The Desktop tile takes ~15s to become healthy after the container starts, versus ~6s for code-server. Agent log timeline from the 2026-09-30 04:01 UTC start:
start-xfce-vncwas the last step of the startup script, so it queued behind the code-server install andcoder-init(~6s) before starting its own ~4-9s bring-up (TigerVNC + XFCE + a fixedsleep 2+ websockify).Change
Reorder the startup script:
coder-init-desktop+start-xfce-vncfirst (still backgrounded), then the code-server install/start andcoder-init. Nothing else changes.Safe because the desktop depends on neither moved step:
coder-init-desktoponly heals~/.config/xfce4/helpers.rc(default browser) and stale Claude Desktop entries — both read when used, not at session start. It is kept before XFCE anyway.coder-initdoes bashrc/profile seeding, gitignore and nvm — not used by the X session.Expected: Desktop healthy ~6s sooner, roughly alongside code-server. Headless variant is unaffected (both blocks are guarded by
command -v).Not validated
terraformisn't installed in the workspace, so noterraform validate; the change only reorders lines inside the heredoc. Verification is timing the next workspace start aftercoder templates push.🤖 Generated with Claude Code