r/LocalLLM • u/Ras_Has • 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
6
u/StrialBiker 11d ago
what approval setting did you have in opencode during that session?
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.
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.
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/Takeoded 11d ago
What rm implementation were you using? Fwiw, GNU rm requires
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?
0
u/[deleted] 11d ago
[deleted] — view deleted comment