Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(shell): disable GLSL shaders to resolve Ghostty terminal lag

Adam Eivyd1669ff3360d
diff --git a/.changelog/v0.14.x.md b/.changelog/v0.14.x.md
index 954057c8d1..d8e863c0a2 100644
--- a/.changelog/v0.14.x.md
+++ b/.changelog/v0.14.x.md
@@ -9,13 +9,17 @@ This release adds Ghostty terminal theme integration and a project update workfl
## Features
### Ghostty Shell Integration
-- **6 custom terminal themes** (blue, green, purple, orange, red, cyan) with matching GLSL shaders — each theme has a distinct color palette and animated background effect (nebula, matrix rain, forge sparks, etc.)
+- **6 custom terminal themes** (blue, green, purple, orange, red, cyan) — each theme has a distinct color palette tuned for different project types
- **`proj` launcher function** — open any project directory in a themed Ghostty window with `proj <path> [theme]`; auto-detects `.ghostty-theme` files for per-project theming
- **Auto-theme on `cd`** — OSC escape sequences dynamically recolor the terminal when entering/leaving directories with `.ghostty-theme` files (chpwd hook)
- **`proj-themes` listing** — shows all available themes with emoji indicators and descriptions
-- **`setup-ghostty.js` installer** — copies shaders + themes to Ghostty config dirs, clones community shader repo, adds shell source line to `~/.zshrc` (all idempotent)
+- **`setup-ghostty.js` installer** — copies themes to Ghostty config dirs, adds shell source line to `~/.zshrc` (all idempotent)
- **Opt-in during `setup.sh`** — first-time setup prompts for Ghostty integration; safe to skip if Ghostty isn't installed
### Update Script
-- **`update.sh`** — one-command post-pull updater that refreshes dependencies, ensures data/browser setup, and re-syncs Ghostty shaders/themes
+- **`update.sh`** — one-command post-pull updater that refreshes dependencies, ensures data/browser setup, and re-syncs Ghostty themes
- **`npm run update`** — npm script equivalent for the same workflow
+
+## Fixes
+
+- **Disabled GLSL custom shaders** — fragment shaders (bloom, nebula, rain, etc.) ran per-pixel every frame causing GPU-bound lag on terminal output; themes now use color palettes only
diff --git a/.ghostty-theme b/.ghostty-theme
index d62b540dde..f03e7a3d19 100644
--- a/.ghostty-theme
+++ b/.ghostty-theme
@@ -28,8 +28,6 @@ palette = 15=#e8eef5
# Visual effects
background-opacity = 0.92
-custom-shader = ~/.config/ghostty/shaders/blue-glow.glsl
-custom-shader = ~/.config/ghostty/shaders/community/cursor_blaze.glsl
# Window padding
window-padding-x = 4
diff --git a/scripts/setup-ghostty.js b/scripts/setup-ghostty.js
index a1d7d1c198..1d5e4d40e0 100644
--- a/scripts/setup-ghostty.js
+++ b/scripts/setup-ghostty.js
@@ -33,18 +33,7 @@ if (!ghosttyInstalled) {
console.log('👻 Setting up Ghostty shell integration...');
-// 1. Copy shaders → ~/.config/ghostty/shaders/
-const shaderSrc = join(rootDir, 'shell/shaders');
-const shaderDest = join(home, '.config/ghostty/shaders');
-mkdirSync(shaderDest, { recursive: true });
-
-const shaderFiles = readdirSync(shaderSrc).filter(f => f.endsWith('.glsl'));
-for (const file of shaderFiles) {
- cpSync(join(shaderSrc, file), join(shaderDest, file));
-}
-console.log(`✅ Copied ${shaderFiles.length} shaders → ${shaderDest}`);
-
-// 2. Copy themes → platform-specific themes directory
+// 1. Copy themes → platform-specific themes directory
const themeSrc = join(rootDir, 'shell/themes');
const themeDest = isMac
? join(home, 'Library/Application Support/com.mitchellh.ghostty/themes')
@@ -57,23 +46,7 @@ for (const file of themeFiles) {
}
console.log(`✅ Copied ${themeFiles.length} themes → ${themeDest}`);
-// 3. Clone community shaders if not present
-const communityDir = join(shaderDest, 'community');
-if (!existsSync(communityDir)) {
- console.log('📦 Cloning community shaders...');
- try {
- execSync(`git clone https://github.com/0xhckr/ghostty-shaders "${communityDir}"`, {
- stdio: 'inherit',
- });
- console.log('✅ Community shaders cloned');
- } catch {
- console.log('⚠️ Could not clone community shaders (no git or network?) — skipping');
- }
-} else {
- console.log('✅ Community shaders already present');
-}
-
-// 4. Add source line to shell rc file
+// 2. Add source line to shell rc file
const shellRcPath = existsSync(join(home, '.zshrc'))
? join(home, '.zshrc')
: join(home, '.bashrc');
diff --git a/shell/themes/blue.conf b/shell/themes/blue.conf
index 5e5bb8e729..40c766d9be 100644
--- a/shell/themes/blue.conf
+++ b/shell/themes/blue.conf
@@ -28,8 +28,6 @@ palette = 15=#e8eef5
# Visual effects
background-opacity = 0.92
-custom-shader = ~/.config/ghostty/shaders/blue-glow.glsl
-custom-shader = ~/.config/ghostty/shaders/community/cursor_blaze.glsl
# Window padding
window-padding-x = 4
diff --git a/shell/themes/cyan.conf b/shell/themes/cyan.conf
index 1966136722..eaa9ba56e6 100644
--- a/shell/themes/cyan.conf
+++ b/shell/themes/cyan.conf
@@ -28,8 +28,6 @@ palette = 15=#e5f5f5
# Visual effects
background-opacity = 0.92
-custom-shader = ~/.config/ghostty/shaders/cyan-data.glsl
-custom-shader = ~/.config/ghostty/shaders/community/cursor_blaze.glsl
# Window padding
window-padding-x = 4
diff --git a/shell/themes/green.conf b/shell/themes/green.conf
index 4a32650af8..e2443ba731 100644
--- a/shell/themes/green.conf
+++ b/shell/themes/green.conf
@@ -28,8 +28,6 @@ palette = 15=#e5f5e8
# Visual effects
background-opacity = 0.92
-custom-shader = ~/.config/ghostty/shaders/green-rain.glsl
-custom-shader = ~/.config/ghostty/shaders/community/cursor_blaze.glsl
# Window padding
window-padding-x = 4
diff --git a/shell/themes/orange.conf b/shell/themes/orange.conf
index af3acda1b4..e26c4d2a6d 100644
--- a/shell/themes/orange.conf
+++ b/shell/themes/orange.conf
@@ -28,8 +28,6 @@ palette = 15=#f5ede5
# Visual effects
background-opacity = 0.92
-custom-shader = ~/.config/ghostty/shaders/orange-forge.glsl
-custom-shader = ~/.config/ghostty/shaders/community/cursor_blaze.glsl
# Window padding
window-padding-x = 4
diff --git a/shell/themes/purple.conf b/shell/themes/purple.conf
index d284d78fcc..75cb41946c 100644
--- a/shell/themes/purple.conf
+++ b/shell/themes/purple.conf
@@ -28,8 +28,6 @@ palette = 15=#f0e8f5
# Visual effects
background-opacity = 0.92
-custom-shader = ~/.config/ghostty/shaders/purple-nebula.glsl
-custom-shader = ~/.config/ghostty/shaders/community/cursor_blaze.glsl
# Window padding
window-padding-x = 4
diff --git a/shell/themes/red.conf b/shell/themes/red.conf
index f35a157e75..22651139f0 100644
--- a/shell/themes/red.conf
+++ b/shell/themes/red.conf
@@ -28,8 +28,6 @@ palette = 15=#f5e5e5
# Visual effects
background-opacity = 0.92
-custom-shader = ~/.config/ghostty/shaders/red-pulse.glsl
-custom-shader = ~/.config/ghostty/shaders/community/cursor_blaze.glsl
# Window padding
window-padding-x = 4