Be forewarned that this is a dumb solution to a dumb problem. Claude code/cowork will often be unable to use the sandbox environment: this means it can read and write files but can’t run them - making it mostly useless. The dumb solution: ask codex to create a .vbs script that checks the current folder every x seconds for a sandbox-workaround.txt. If that txt contains a path to a bat file as the first line, and a run=true flag as the second line, proceed to run the corresponding bat file once, while switching the flag to false. Tell claude to ‘arm’ the .txt file whenever the sandbox fails. For my use case, claude will build a python file, the sandbox will fail, he will write a .bat file telling pyrhon to run that file, edit the sandbox txt file, set the flag to true, and wait. It’s ugly but it works, and it’s faster that rebooting everything. It probably also opens a host of security issues, so use at your own risk