From c2420e265de51e7f2068f33300fff6a6ef8654d2 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 29 Sep 2026 03:38:35 +0000 Subject: [PATCH] fix: simplify motd banner Co-authored-by: cooper --- .stack/config.nix | 6 ++---- apps/docs/content/docs/modules/prelude.mdx | 2 +- docs/quick-start.md | 2 +- nix/stackpanel/modules/prelude/facade.nix | 15 +-------------- 4 files changed, 5 insertions(+), 20 deletions(-) diff --git a/.stack/config.nix b/.stack/config.nix index 49cb8092..8050f7a4 100644 --- a/.stack/config.nix +++ b/.stack/config.nix @@ -669,7 +669,7 @@ # --------------------------------------------------------------------------- prelude = { tagline = "Stackpanel devshell"; - subtitle = "your environment is ready"; + subtitle = "Nix shell for the framework, agent, and Studio"; settings.motd.title.text = ./title.txt; }; @@ -679,9 +679,7 @@ motd = { enable = true; hints = [ - "Run 'just test' to test the stackpanel shell and templates" - "Run 'just test-smoke' to test the dev shell" - "Run 'nix flake check' to run all flake checks" + "Build Stackpanel's Nix framework, Go agent, and Studio UI from here. Use 'menu' for commands; run 'just test-smoke' for a quick check." ]; }; diff --git a/apps/docs/content/docs/modules/prelude.mdx b/apps/docs/content/docs/modules/prelude.mdx index aae9f9a6..4f02cf0d 100644 --- a/apps/docs/content/docs/modules/prelude.mdx +++ b/apps/docs/content/docs/modules/prelude.mdx @@ -61,7 +61,7 @@ prelude = { ## Command catalogue façade -Existing modules keep writing `stackpanel.motd.commands` / `features` / `hints`. Stackpanel maps those into `prelude.commands` (sanitized keys, first five on Getting Started). Live agent/service status still comes from `stack motd --json` into Prelude’s MOTD status lights — there is **one** banner. +Existing modules keep writing `stackpanel.motd.commands` / `features` / `hints`. Stackpanel maps those into `prelude.commands` (sanitized keys, first five on Getting Started). Live agent and aggregate health status still come from `stack motd --json` into Prelude’s MOTD status lights — there is **one** banner. ```nix stackpanel.motd.commands = [ diff --git a/docs/quick-start.md b/docs/quick-start.md index 58f5b762..0eccc2a8 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -12,7 +12,7 @@ nix develop ``` You should see **one** Prelude MOTD — project name, Getting Started commands, -feature chips, and live status lights (agent / services / health). +feature chips, and live status lights (agent / health). ## 2. Reprint the welcome banner diff --git a/nix/stackpanel/modules/prelude/facade.nix b/nix/stackpanel/modules/prelude/facade.nix index 184731a9..a729fb10 100644 --- a/nix/stackpanel/modules/prelude/facade.nix +++ b/nix/stackpanel/modules/prelude/facade.nix @@ -126,21 +126,8 @@ let failLevel = "warning"; async = true; }; - services = { - order = 200; - label = "services"; - check = '' - command -v stack >/dev/null 2>&1 || exit 1 - json=$(stack motd --json 2>/dev/null) || exit 1 - echo "$json" | jq -e '(.Services | length) == 0 or ([.Services[] | select(.Running != true)] | length) == 0' >/dev/null - ''; - ok = "ok"; - fail = "down"; - failLevel = "warning"; - async = true; - }; health = { - order = 300; + order = 200; label = "health"; check = '' command -v stack >/dev/null 2>&1 || exit 1