From 81ea5502bfc8f2ca8f16c2a09762d87073a3841f Mon Sep 17 00:00:00 2001 From: masked8knights Date: Fri, 21 Aug 2026 21:48:25 +1000 Subject: [PATCH] fix(prime-agent): resume previous session on ACP restart The ACP shim launches prime-agent fresh on every BB thread restart, and without history carry-forward BB reported 'could not restore the previous session; continuing in a fresh session without in-agent history', losing chat context on every stop/start. Pass --continue through the shim so each fresh ACP process re-attaches to the most recent prime-agent session file. First-run is unaffected (nothing to resume). The ACP session/load protocol itself is implemented by prime-agent; this package wires the restore flag through its launcher. --- packages/bb-plugin-prime-agent/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bb-plugin-prime-agent/server.ts b/packages/bb-plugin-prime-agent/server.ts index 440efa8..d494dd8 100644 --- a/packages/bb-plugin-prime-agent/server.ts +++ b/packages/bb-plugin-prime-agent/server.ts @@ -65,7 +65,7 @@ for a in "$@"; do fi done # shellcheck disable=SC2086 -exec prime-agent $out +exec prime-agent --continue $out `; const LOGO = `