Skip to content

[backend] Demo seed writes 120 fake workspaces into the real DB with no purge path #120

Closed

Description

@devin-ai-integration

POST /system/seed-demo (demo_seed.go) writes up to 120 workspaces, ~42k findings and scans into the live database when BLUNTCODE_DEMO_SEED=1. Two problems:

  • No cleanup story: there's no unseed endpoint, no "demo" flag on the rows, and deleting 120 workspaces one at a time through DELETE /workspaces/{id} is the only way back. Seeded junk permanently shares the DB with real workspaces.
  • Fake roots point at os.MkdirTemp dirs — on reboot /tmp is wiped, leaving 120 workspaces whose roots are all "missing" — exactly the dead-folder issue Workspaces whose folder was deleted stay in the list with no 'missing' indicator #62 complains about, manufactured in bulk.

At minimum tag seeded rows so a "reset demo" endpoint can remove them wholesale.

Activity

  1. sanketpatel32 commented on Nov 22, 2026

    @sanketpatel32
    Owner

    Fixed in PR #128 (merged 76e635c, shipped in v0.51.0).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions