# bb e2e check #2: restarting the bb dev instance (server + host daemon) replaces the thread's `claude` process # worktree wf_570fde41-63f-9 @ 16ceb3a54, own dev instance: Server http://localhost:23805, Host daemon http://127.0.0.1:31805 # data dir: /home/sawyer/.bb-dev/projects-bb-.claude-worktrees-wf_570fde41-63f-9-45ed1305f002 # project proj_txeksunvpf (/tmp/bb1654-rev2-scratch, host host_ymk48rmi75) $ node packages/scripts/dist/commands/run-cli.js thread spawn --project proj_txeksunvpf --provider claude-code \ --permission-mode accept-edits --title "1654 restart check" --prompt "Reply only with ok." --json -> thr_kfwp7tkjf8 $ node packages/scripts/dist/commands/run-cli.js thread wait thr_kfwp7tkjf8 --json matched: status idle (15:17:05 UTC) $ ss -ltnp | grep :31805 -> host daemon pid 3750764 $ pstree -p -T 3750764 | grep claude |-MainThread(3753249)---claude(3753262) $ ps -o pid,ppid,etimes,lstart,args -p 3753249,3753262 PID PPID ELAPSED STARTED COMMAND 3753249 3750764 14 Tue Aug 18 15:16:59 2026 node ... apps/host-daemon (provider-claude-code bridge) 3753262 3753249 13 Tue Aug 18 15:16:59 2026 /home/sawyer/.local/bin/claude --output-format stream-json --verbose --input-format stream-json --thinking adaptive ... # --- restart bb (what the reporter did) --- $ pnpm dev:stop [2026-08-18 15:17:19] Stopping screen session bb-dev-app-projects-bb-.claude-worktrees-wf_570fde41-63f-9-dev [2026-08-18 15:17:21] Stopping remaining dev-instance processes: 3753769 $ ps -p 3753262 -> (no such process: the claude process died with the host daemon) $ scripts/bb-dev-app current -> Server http://localhost:23805, Host daemon http://127.0.0.1:31805, Dev session: running # --- resend on the SAME thread after the restart --- $ node packages/scripts/dist/commands/run-cli.js thread tell thr_kfwp7tkjf8 "Reply only with ok." --json { "threadId": "thr_kfwp7tkjf8", "ok": true, "mode": "steer" } $ node packages/scripts/dist/commands/run-cli.js thread wait thr_kfwp7tkjf8 --json matched: status idle (15:17:59 UTC) $ ss -ltnp | grep :31805 -> new host daemon pid 3755187 $ pstree -p -T 3755187 | grep claude `-MainThread(3756019)---claude(3756083) $ ps -o pid,ppid,etimes,lstart,args -p 3756019,3756083 PID PPID ELAPSED STARTED COMMAND 3756019 3755187 12 Tue Aug 18 15:17:53 2026 node ... apps/host-daemon (provider-claude-code bridge) 3756083 3756019 12 Tue Aug 18 15:17:53 2026 /home/sawyer/.local/bin/claude --output-format stream-json --verbose --input-format stream-json ... $ ps -p 3753262 -> old pid 3753262 gone # => After a bb restart the same thread is served by a NEW claude process (pid 3756083, started 15:17:53), which reads # credentials fresh at startup. This is the "restart fixes it" path from the issue, verified directly (not by proxy).