An always-on second brain you talk to. Voice notes in Telegram → typed, linked knowledge in your Obsidian vault. Runs 24/7 on the Claude subscription you already have.
Python ai-agentsai-automationclaudeclaude-codeebbinghausknowledge-graphllmmemory-systemobsidianpersonal-assistantpkmproductivitypythonsecond-braintelegram-botvoice-assistant
fix(parse): classify first-run onboarding screens as LOGGED_OUT
smixsf82c5527c450
diff --git a/src/d_brain/services/tmux_parse.py b/src/d_brain/services/tmux_parse.pyindex 80213c3..67242b2 100644--- a/src/d_brain/services/tmux_parse.py+++ b/src/d_brain/services/tmux_parse.py@@ -104,7 +104,10 @@ _RATE_RE = re.compile()_LOGGED_OUT_RE = re.compile(r"invalid api key|please run /login|logged out|please log ?in|"- r"authentication (failed|required|expired)|session expired",+ r"authentication (failed|required|expired)|session expired|"+ # First-run onboarding screens (fresh CLAUDE_CONFIG_DIR): they need a+ # human, restarts won't help — alert like a logout, don't kill.+ r"select login method|syntax theme: \w+ \(ctrl\+t to disable\)",re.I,)# READY signals. The bypass footer is our always-present anchor (we launchdiff --git a/tests/test_tmux_parse.py b/tests/test_tmux_parse.pyindex e1d5e14..0c922e6 100644--- a/tests/test_tmux_parse.py+++ b/tests/test_tmux_parse.py@@ -354,3 +354,26 @@ def test_is_idle_false_on_menu_selector():" ⏵⏵ bypass permissions on (shift+tab to cycle)\n")assert not is_idle(pane)+++def test_classify_login_menu_as_logged_out():+ """Incident 2026-06-10: a fresh CLAUDE_CONFIG_DIR sent the new process+ into first-run onboarding (theme → login menu); classify_state saw+ UNKNOWN and the watchdog stayed silent while every ask timed out. The+ login/onboarding screens need a human — classify them LOGGED_OUT."""+ login = (+ " Claude Code can be used with your Claude subscription or billed "+ "based on API usage through your Console account.\n"+ " Select login method:\n"+ " ❯ 1. Claude account with subscription · Pro, Max, Team, or Enterprise\n"+ " 2. Anthropic Console account · API usage billing\n"+ )+ assert classify_state(login) == PaneState.LOGGED_OUT+++def test_classify_onboarding_theme_as_logged_out():+ theme = (+ " 3. Light mode\n ❯ 6. Dark mode (ANSI colors only) ✔\n"+ " Syntax theme: ansi (ctrl+t to disable)\n"+ )+ assert classify_state(theme) == PaneState.LOGGED_OUT