r/LocalLLM • • 11d ago

Model Beam Free through Opencode has deleted the entire partition

Beam free was supposed to delete a file, but accidentally it has deleted the entire partition and I had very important files in it. I'm trying to recover the partition.

The surprising part was that opencode hasn't asked my permission to delete anything.

0 Upvotes

14 comments sorted by

6

u/StrialBiker 11d ago

what approval setting did you have in opencode during that session?

0

u/Ras_Has 11d ago

Default. I've just downloaded OpenCode and run those free models one by one for a local project. Deepseek was fine and edited/deleted some files. Beam was ok too and then suddenly it came up with the apology message.

5

u/tinny66666 11d ago

Opencode's permissions are pretty weak and no substitute for a sandbox of some type. It may block tool calls from accessing certain directories, but bash and python scripts don't even see the restrictions. In many ways the weak-ass permissions in opencode are worse than nothing because they give you a false sense of security that they will prevent harm, but really do very little.

If you don't have a sandbox, then sooner or later something WILL go awry.

1

u/Ras_Has 11d ago

You're right.

2

u/Independent-Row8578 11d ago

Avoid using beam free. I have seen at least 4-5 posts saying beam deleted something without consent. Happened with me too but luckily it was small and recoverable. Stopped using beam after that.

2

u/Ras_Has 11d ago

Thanks for the confirmation. I'm not alone then.

1

u/nombredeusuario2026 10d ago

No se le púede poner un harnes para que no lo haga? yo recién arranco, me recomiendan uno gratis?

1

u/Ras_Has 10d ago

Default Permission is off for automatic permission. This is a problem with opencode. You have to specify and tell the model to save a memory that the model shouldn't work outside the defined workspace. 

1

u/Takeoded 11d ago

What rm implementation were you using? Fwiw, GNU rm requires

rm -rfv --no-preserve-root /

to delete the partition.

Are you sure BEAM literally spelled out --no-preserve-root ?

1

u/Boring_Hurry_4167 11d ago

You need to tune your harness and built gates around it. also make sure your drive partition can be recoverabel through backup, snapshots, recycle bin etc, VM is nice but sometimes you need them on the main drive.

Gates like only can del in workspace outside need permission no buts. also certain linux commands are not allowed and always check, also always move to a staging area rather than del.

I experienced this before thats why I spend some time refining the harness and test it against this

0

u/nombredeusuario2026 11d ago

Hola. Soy nuevo en esto. Pero si yo le di a opencode acceso solamente a la carpeta de trabajo, aun asi puede borrar otra cosa de otra carpeta aun sin tener autorizacion?

1

u/Ras_Has 11d ago

That's what happened to me. Not with Deepseek or GLM 5.3 Flash, but with Beam Free on xHigh.

1

u/taytay735 11d ago

Yes. It might not even ask for permission to go out of your work folder.

0

u/[deleted] 11d ago

[deleted] — view deleted comment

1

u/Ras_Has 11d ago

Yes, thanks.