# bb = /tmp/bb-reports/issues/1761/repro/1761-bb.sh with BB_REPO= # dev instance: app :13758, server :21758, daemon :29758 # data dir: /home/sawyer/.bb-dev/projects-bb-.claude-worktrees-wf_242c3e11-a10-30-4235fe46eb15 $ bb plugin install builtin:tasks --yes $ bb tasks project create --name "Scani" --prefix SC --link-bb-project proj_92hz2xp5u3 $ bb tasks create --project SC --title "OSS divergence audit" # -> SC-1 # worker 1: forced into status=error with a bogus model (stands in for "machine crash killed your predecessor") $ bb thread spawn --project proj_92hz2xp5u3 --provider codex --model totally-bogus-model-xyz --permission-mode accept-edits --title "SC-1 · OSS divergence audit (phase 1)" --prompt "Reply only with ok." # thr_fy32f8grbs $ bb thread show thr_fy32f8grbs --json | grep '"status"' -> "status": "error" $ bb tasks attach SC-1 --thread thr_fy32f8grbs Attached thr_fy32f8grbs to SC-1 # worker 2 (respawn) $ bb thread spawn --project proj_92hz2xp5u3 --provider codex --permission-mode accept-edits --title "Resuming SC-1 after a machine crash killed your predecessor" --prompt "Reply only with ok." # thr_xiwb5bxu5x $ bb thread wait thr_xiwb5bxu5x --timeout 90 $ bb tasks attach SC-1 --thread thr_xiwb5bxu5x Attached thr_xiwb5bxu5x to SC-1 # worker 3 (respawn again) $ bb thread spawn --project proj_92hz2xp5u3 --provider codex --permission-mode accept-edits --title "Take SC-1 — the private repo has diverged from its own upstream" --prompt "Reply only with ok." # thr_estd3atd82 $ bb thread wait thr_estd3atd82 --timeout 90 $ bb tasks attach SC-1 --thread thr_estd3atd82 Attached thr_estd3atd82 to SC-1 $ bb tasks threads SC-1 THREAD STATUS PRESET TITLE thr_fy32f8grbs failed Attached SC-1 · OSS divergence audit (phase 1) thr_xiwb5bxu5x idle Attached Resuming SC-1 after a machine crash killed your predecessor thr_estd3atd82 idle Attached Take SC-1 — the private repo has diverged from its own upstream $ bb tasks threads SC-1 --json {"task":{"id":"01M09XPA7J83N4ZS7JYFBTD936","projectId":"01M09XP9J4NTD9BZFGV9ZXGKRJ","number":1,"key":"SC-1","title":"OSS divergence audit","description":"","status":"backlog","priority":"none","dueDate":null,"parentTaskId":null,"position":1024,"createdAt":"2026-08-18T07:52:05.106Z","updatedAt":"2026-08-18T07:52:05.106Z","labelIds":[]},"taskThreads":[{"id":"01M09XQHXM4FZ79XQCMETVB6KC","taskId":"01M09XPA7J83N4ZS7JYFBTD936","threadId":"thr_fy32f8grbs","presetName":"Attached","title":"SC-1 · OSS divergence audit (phase 1)","liveStatus":"failed","attachedAt":"2026-08-18T07:52:45.748Z","updatedAt":"2026-08-18T07:52:45.748Z"},{"id":"01M09XQT4RKBHGNYBYPW62VE9B","taskId":"01M09XPA7J83N4ZS7JYFBTD936","threadId":"thr_xiwb5bxu5x","presetName":"Attached","title":"Resuming SC-1 after a machine crash killed your predecessor","liveStatus":"idle","attachedAt":"2026-08-18T07:52:54.168Z","updatedAt":"2026-08-18T07:52:54.168Z"},{"id":"01M09XR0K460WGABW3P5YTGC0P","taskId":"01M09XPA7J83N4ZS7JYFBTD936","threadId":"thr_estd3atd82","presetName":"Attached","title":"Take SC-1 — the private repo has diverged from its own upstream","liveStatus":"idle","attachedAt":"2026-08-18T07:53:00.773Z","updatedAt":"2026-08-18T07:53:00.773Z"}]} $ bb tasks detach SC-1 --thread thr_fy32f8grbs unknown command: detach; run bb tasks --help exit=1 $ bb tasks attach --help Usage: bb tasks attach [--thread ] [--json] $ bb tasks attachment remove 01M09XQHXM4FZ79XQCMETVB6KC # the task_threads row id; "attachment" is the file-attachment table attachment not found: 01M09XQHXM4FZ79XQCMETVB6KC exit=1 # a thread respawned onto NEW work keeps its old attachment (issue's "wrong task by title" observation) $ bb tasks create --project SC --title "PaymentFormPage strings" # -> SC-2 $ bb tasks attach SC-2 --thread thr_estd3atd82 Attached thr_estd3atd82 to SC-2 $ bb tasks threads SC-1 THREAD STATUS PRESET TITLE thr_fy32f8grbs failed Attached SC-1 · OSS divergence audit (phase 1) thr_xiwb5bxu5x idle Attached Resuming SC-1 after a machine crash killed your predecessor thr_estd3atd82 idle Attached Take SC-1 — the private repo has diverged from its own upstream $ bb tasks threads SC-2 THREAD STATUS PRESET TITLE thr_estd3atd82 idle Attached Take SC-1 — the private repo has diverged from its own upstream $ bb tasks show SC-1 | sed -n '/Attached threads/,/^$/p' Attached threads THREAD STATUS PRESET TITLE thr_fy32f8grbs failed Attached SC-1 · OSS divergence audit (phase 1) thr_xiwb5bxu5x idle Attached Resuming SC-1 after a machine crash killed your predecessor thr_estd3atd82 idle Attached Take SC-1 — the private repo has diverged from its own upstream $ sqlite3 /plugins/tasks/*.db "select thread_id, live_status, attached_at from task_threads order by attached_at" thr_fy32f8grbs|failed|2026-08-18T07:52:45.748Z thr_xiwb5bxu5x|idle|2026-08-18T07:52:54.168Z thr_estd3atd82|idle|2026-08-18T07:53:00.773Z thr_estd3atd82|idle|2026-08-18T07:53:13.770Z