zlacker

[return to "ChatGPT Containers can now run bash, pip/npm install packages and download files"]
1. dangoo+821[view] [source] 2026-01-27 01:14:20
>>simonw+(OP)
Giving agents linux has compounding benefits in our experience. They're able to sort through weirdness that normal tooling wouldn't allow. Like they can read and image, get an error back from the API and see it wasn't the expected format. They read the magic bytes to see it was a jpeg despite being named .png, and read it correctly.
◧◩
2. ndsipa+372[view] [source] 2026-01-27 10:56:22
>>dangoo+821
> They read the magic bytes to see it was a jpeg despite being named .png, and read it correctly.

Maybe I'm missing something, but it seems trivial to implement reading the magic bytes. I haven't tested it, but I'd expect most linux image displayers/editors to automatically work with misnamed files as that is almost entirely the purpose of magic bytes.

Personally, I think Microsoft is to blame for everyone relying on file extensions too much as it was a bad idea which led to a lot of security issues.

[go to top]