Skip to content

Plugins built in a thread are tied to the thread's workspace and deleted silently when it's archived #6670

Closed

Description

@tallchap67

Summary

I built plugins in a normal thread. bb linked them to that thread's workspace folder (~/.bb/plugins/environment-personal-workspace/host-data/workspaces/thr_…) instead of copying them somewhere permanent. When I archived the thread, bb deleted the folder and the plugins went with it. The only warning was in a server log. Nothing appeared in the UI.

Versions and environment

Version: bb 0.48.1, Windows 11

Steps to reproduce

  1. In a project using the Personal workspace environment, start a normal thread and have the agent build a plugin: bb plugin new kanban, edit the files, then run bb plugin install . --yes from the workspace folder (~/.bb/plugins/environment-personal-workspace/host-data/workspaces/thr_/bb-plugin-kanban).
  2. The install succeeds and the plugin works. The CLI and UI show no warning.
  3. Archive the thread.
  4. Restart bb (for me, bb update did this).
  5. bb plugin list shows the plugin as "missing". The workspace folder is gone, with nothing in the Recycle Bin.

Did NOT reproduce with: a plugin installed from a path outside the managed workspace (E:\bb-plugins\bb-plugin-tracker-board). It survived the same archive and restart.

Expected vs actual

Actual: All three plugins showed as "missing" after the next bb restart (the bb update), and their source folders were gone. `bb plugin list` showed: "3 plugins not running (chief-of-staff: missing, delivery-dashboard: missing, kanban: missing)". The only warning was a level-40 line in server.1.log. Nothing appeared in the UI, at install, or at archive.

Expected, any of:
- Installing a plugin from a bb-managed workspace copies it to a permanent location.
- Archiving a thread warns that installed plugins live in its workspace and will be deleted.
- At minimum, the "installed from inside a bb-managed workspace" warning is shown in the UI or CLI output, not only in the server log.

Evidence

bb 0.48.1, Windows 11. This was hit in normal use; I haven't re-run it on a fresh install.

Plugin threads: thr_garsdthqfa (chief-of-staff), thr_jvyz47sviq (delivery-dashboard), thr_c79rkcx5tq (kanban). All three were archived 30 Oct 00:00:20–00:00:23. No automations were configured, so I don't know what triggered the archive.

~/.bb/logs/server.1.log (one of 5 identical lines, one per install):
{"level":40,"component":"server","msg":"plugin "...\workspaces\thr_c79rkcx5tq\bb-plugin-kanban" is installed from inside a bb-managed workspace; its source will be deleted when that environment is destroyed (e.g. when the owning thread is archived). Reinstall from a stable path outside the managed workspace to avoid losing it."}

AGENT GENERATED. Investigation thread: thr_wk8yyapx9n

What you ruled out

Not caused by the bb update itself: the folders were deleted at archive time, and the update's restart is just when bb noticed.
Unarchiving does not restore the workspace.
Not an automation: bb automation list is empty.

Suggested priority and effort (optional)

High: plugin source code is silently deleted during normal use. bb already knows the risk at install time (it logs a warning), but the user never sees it. The only recovery was replaying file diffs from the archived threads' logs. Effort probably low: show the existing warning in the CLI/UI, or warn on archive.

Checks

  • I reproduced this on the latest release or on main, or I say above that I could not.
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED and links the thread or report.

Activity

  1. added theissue type on Oct 30, 2026
  2. added
    plugins
    workspaces
    confirmed-repro
    on Oct 30, 2026
  3. bb-slop-cop commented on Oct 30, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority High · Effort Medium; added plugins and workspaces. All classifications were previously unset.
    • Verdict: REPRODUCED · root-cause confidence high. Reproduction and root-cause report.
    • Root cause: Path installation retains the disposable workspace directory; provider cleanup deletes it without checking installed plugins. The known source-loss warning reaches only the server logger.
    • Evidence: The focused real-code test fails in two trusted-main checkouts: after workspace removal and plugin-runtime restart, the managed plugin is missing while the stable-path control remains running. Archive scheduling is source-traced; Windows and full UI/CLI archiving were not exercised. Reproduction label: confirmed-repro.
    • No PR: Source preservation or retention requires a product-policy decision; warning delivery across SDK, CLI, and UI changes a public install contract. Neither meets this rule’s simple-fix gate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-repropluginsworkspaces

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions