228
native dialog
also open panel, save panel
Open and save go through the OS dialog. The path it returns is the permission.
What is native dialog?
A native open or save dialog is an OS panel. It returns a path the user chose. On a sandboxed Mac that path is a security-scoped bookmark you must keep if you want to reopen the file later. An HTML file input in a desktop window does not grant that, and it looks like a website.
Why does native dialog matter when vibe coding?
The draft puts `<input type="file">` in the window and then tries to read an arbitrary path. The sandbox denies it, or the app asks for broad disk access instead of the one file.
How do you do native dialog?
Show the dialog from the shell process. Remember a bookmark if you must reopen. Do not request full-disk access because the dialog felt inconvenient.
How do you ask a model for native dialog?
Use the native open dialog for (document). Start in the shell process. Persist access with a security-scoped bookmark if the sandbox requires it. Do not use an HTML file input. Do not ask for full disk access.
What goes wrong with native dialog?
Holding the path string and assuming it is still readable after relaunch. The sandbox grant died with the process.