r/opencode • • 11d ago

Beam Free through Opencode has deleted the entire partition

/r/LocalLLM/comments/1xxc6oc/beam_free_through_opencode_has_deleted_the_entire/
0 Upvotes

10 comments sorted by

5

u/OneArmedZen 11d ago

I made a comment about a week or two back, that the beam model tends to realllllyyy like using "rm -rf" more than any other model I've tried, so it has to be babysitted with every command. I would use this model more if it weren't for this fact.

2

u/Ras_Has 11d ago

Exactly my case.

2

u/for4f 11d ago

yeah beam scares me lol. i don't let any agent near sudo, mine runs as a locked-down user in docker with the important stuff mounted read-only. one rm -rf story on here was enough for me

1

u/No-Protection-7019 11d ago

Beam est le pire des modèles qui existe :) Lui confier le root est la pire des choses à faire.

2

u/Ras_Has 11d ago

Workspace was defined. But the problem is, any kind of delete should go through the user. It didn't happen. Other harness I'm using, asked me for sensitive command like this one.

1

u/No-Protection-7019 11d ago

Le root, c'est pour toi et uniquement pour toi. Si tu as vraiment besoin du root, trouve un vieux PC et fais ça dessus ou dans une machine virtuelle. Part du principe que le "root" c'est mal.

1

u/Ras_Has 11d ago

Access was default. I haven't grant any root access. I've downloaded this to my old pc as you're suggesting. Just half an hour later, it happened.

1

u/No-Protection-7019 11d ago

tu as lancé opencode en root ? parce que normalement il n'a aucun moyen d'y accéder seul. Tu es sous windows ? (comme je ne l'utilise pas je l'oublie toujours)

1

u/Ras_Has 11d ago

I've given access to a folder as project workspace. During cleaning up a file, it's command was formatted wrongly. For example: the address of the file was, D:\opencode\project1\demo.file. The command first deleted the file, then the project1 folder, then the opencode folder, then the D partition.

1

u/No-Protection-7019 11d ago

Là, je ne pourrais pas être objectif, j'ai toujours considéré Windows comme le pire système d'exploitation jamais créé. Machine virtuelle OBLIGATOIRE ou système de restauration d'image disque pour éviter de perdre du temps + synchronisation de chaque changement de code sur un autre support.