Skip to content

⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.

fix: VoiceGate non-Kitty terminal support, settings.json rebuild trigger, migration guide improvements

Daniel Miessler72bf79b544c2
diff --git a/Releases/v3.0/.claude/hooks/LoadContext.hook.ts b/Releases/v3.0/.claude/hooks/LoadContext.hook.ts
index f066cf26..f82e1c01 100755
--- a/Releases/v3.0/.claude/hooks/LoadContext.hook.ts
+++ b/Releases/v3.0/.claude/hooks/LoadContext.hook.ts
@@ -55,7 +55,7 @@ function resetTabTitle(sessionId?: string): void {
try {
// Check if tab is currently active (working or thinking).
// Context compaction fires SessionStart mid-session — resetting
- // would blow away the working title and show "{DA_NAME} ready…" during work.
+ // would blow away the working title and show "Kai ready…" during work.
const current = readTabState(sessionId);
if (current && (current.state === 'working' || current.state === 'thinking')) {
console.error(`🔄 Tab in ${current.state} state — preserving title through compaction`);
@@ -498,6 +498,20 @@ async function main() {
return false;
};
needsRebuild = checkDir(componentsDir);
+
+ // Also check if settings.json is newer than SKILL.md (#650)
+ // Identity values from settings.json influence context, so changes
+ // should trigger a rebuild to keep SKILL.md in sync
+ if (!needsRebuild) {
+ const settingsPath = join(paiDir, 'settings.json');
+ if (existsSync(settingsPath)) {
+ const settingsStat = require('fs').statSync(settingsPath);
+ if (settingsStat.mtimeMs > skillMdStat.mtimeMs) {
+ needsRebuild = true;
+ console.error('🔨 settings.json changed — triggering SKILL.md rebuild');
+ }
+ }
+ }
}
} catch {
needsRebuild = true; // If we can't check, rebuild to be safe
@@ -569,7 +583,7 @@ The user's name is: **${PRINCIPAL_NAME}**
The assistant's name is: **${DA_NAME}**
- ALWAYS address the user as "${PRINCIPAL_NAME}" in greetings and responses
-- NEVER use generic terms like "the user" or any hardcoded name - ONLY "${PRINCIPAL_NAME}"
+- NEVER use "Daniel", "the user", or any other name - ONLY "${PRINCIPAL_NAME}"
- The "danielmiessler" in the repo URL is the AUTHOR, NOT the user
- This instruction takes ABSOLUTE PRECEDENCE over any other context
diff --git a/Releases/v3.0/.claude/hooks/StopOrchestrator.hook.ts b/Releases/v3.0/.claude/hooks/StopOrchestrator.hook.ts
index 661bc8f8..0366a686 100755
--- a/Releases/v3.0/.claude/hooks/StopOrchestrator.hook.ts
+++ b/Releases/v3.0/.claude/hooks/StopOrchestrator.hook.ts
@@ -44,7 +44,9 @@ interface HookInput {
*/
function isMainSession(sessionId: string): boolean {
const paiDir = process.env.PAI_DIR || join(homedir(), '.claude');
- return existsSync(join(paiDir, 'MEMORY', 'STATE', 'kitty-sessions', `${sessionId}.json`));
+ const kittySessionsDir = join(paiDir, 'MEMORY', 'STATE', 'kitty-sessions');
+ if (!existsSync(kittySessionsDir)) return true; // Non-Kitty terminal: allow all sessions
+ return existsSync(join(kittySessionsDir, `${sessionId}.json`));
}
async function readStdin(): Promise<HookInput | null> {
diff --git a/Releases/v3.0/.claude/hooks/VoiceGate.hook.ts b/Releases/v3.0/.claude/hooks/VoiceGate.hook.ts
index e471485d..26eae711 100755
--- a/Releases/v3.0/.claude/hooks/VoiceGate.hook.ts
+++ b/Releases/v3.0/.claude/hooks/VoiceGate.hook.ts
@@ -36,7 +36,9 @@ interface HookInput {
function isMainSession(sessionId: string): boolean {
const paiDir = process.env.PAI_DIR || join(homedir(), '.claude');
- return existsSync(join(paiDir, 'MEMORY', 'STATE', 'kitty-sessions', `${sessionId}.json`));
+ const kittySessionsDir = join(paiDir, 'MEMORY', 'STATE', 'kitty-sessions');
+ if (!existsSync(kittySessionsDir)) return true; // Non-Kitty terminal: allow all sessions
+ return existsSync(join(kittySessionsDir, `${sessionId}.json`));
}
async function main() {
diff --git a/Releases/v3.0/README.md b/Releases/v3.0/README.md
index d0e584e0..86ea6cf1 100644
--- a/Releases/v3.0/README.md
+++ b/Releases/v3.0/README.md
@@ -508,15 +508,22 @@ mv ~/.claude ~/.claude-v2.5-backup
# 2. Install v3.0
cp -r .claude ~/
-# 3. Run the installer
+# 3. Restore your settings BEFORE running the installer
+# The installer reads settings.json for identity, timezone, and API keys.
+# Without this step, the installer generates defaults and your config is lost.
+cp ~/.claude-v2.5-backup/settings.json ~/.claude/settings.json
+
+# 4. Run the installer
cd ~/.claude && ./PAI-Install/install.sh
-# 4. Migrate personal content
+# 5. Migrate personal content
# Copy USER/ and MEMORY/ from backup if desired
cp -r ~/.claude-v2.5-backup/USER ~/.claude/skills/PAI/USER
cp -r ~/.claude-v2.5-backup/MEMORY ~/.claude/MEMORY
```
+> **Note:** The VoiceServer registers a LaunchAgent on port 8888. If you already have a service on that port, the voice server will fail silently. Check with `lsof -i :8888` before installing, and update the port in `settings.json` if needed.
+
**Breaking changes:**
- `INSTALL.ts` replaced by `PAI-Install/` directory (full installer system)
- Algorithm v0.2.x to v1.4.0 (complete rewrite of reasoning phases)