Repository navigation
Automatically Decline CWD Sharing #2180
|
Is there an existing option (or perhaps combination of options) to automatically decline CWD sharing (and thus skip the prompt) in the same way that |
Replies: 1 comment 1 reply
|
There's no { "workdir": { "access": "none" } }Save that as e.g. Here's the logic in the source: nono/crates/nono-cli/src/sandbox_prepare.rs Lines 655 to 666 in 766fe84 |
There's no
--block-cwdflag, but a profile can do it. The prompt only shows up when the CWD access requirement isn'tNone. With no profile it defaults to read, which is why you get asked. If you load a profile withworkdir.accessset to"none", there's nothing to request, so it should skip the prompt entirely:{ "workdir": { "access": "none" } }Save that as e.g.
~/.config/nono/profiles/no-cwd.jsonand runnono run --profile no-cwd -- yourtool. Every profile field has a default, so that one key should be enough. If you're extending another profile, settingworkdiralso overrides the inherited value.Here's the logic in the source:
nono/crates/nono-cli/src/sandbox_prepare.rs
Lines 655…