r/opencode • • 18d ago

Smart App Control not letting me code!

Post image
1 Upvotes

3 comments sorted by

View all comments

1

u/FallElectronic3774 18d ago

SAC doesn't have an exclusion list, so there's no "allow this app" button to find. It only lets through binaries with a trusted signature or enough SmartScreen reputation, and a portable zip from a GitHub release has neither.

Check Event Viewer > Applications and Services Logs > Microsoft > Windows > CodeIntegrity > Operational. The block is logged there with the file name, which tells you whether it's opencode.exe itself or a child process it spawned.

The options are roughly: run it inside WSL, since SAC only polices Windows binaries; use a signed build if one exists; or turn SAC off. Turning it off is one-way — you can't switch it back on without reinstalling Windows. I'd try WSL first.