xonecas.io
8447
Co

conveyor / commit 29aac31

macOS: Ctrl+click opens the prompt, and agents get the Keychain's Claude login

Co-Authored-By: Claude Opus 5.5

sacenox2026-11-16 29aac319fcc49fcb500f100f2386c4659f1303b6 parent 0654270

2 files changed

crates/conveyor-app/src/inspect.rs+3−1
@@ -36,7 +36,9 @@ pub fn view(s: &State, rcx: &mut rune::Cx<State>) -> El {
3636 s.ctrl = tx.mods().ctrl;
3737 pick(s, tx);
3838 })
39- .on_press_tx(|s: &mut State, _| form::open(s));
39+ .on_press_tx(|s: &mut State, _| form::open(s))
40+ // On macOS, Rune reports a Ctrl+click as a secondary press.
41+ .on_secondary_press(|s: &mut State, _, _| form::open(s));
4042 if crate::safe::offered(s) {
4143 layer = layer.child(el().key("safe-mode").pin(Some(12.0), None, None, Some(12.0)).h(24.0).px(10.0).center_y().radius(12.0)
4244 .fill(t.card).border(1.0, accent).role("button").label("Safe mode").help("Pause every widget, and keep or discard builds on trial")
crates/conveyor/src/agent.rs+7−1
@@ -167,7 +167,13 @@ fn give_agent_config(vm: &Vm) -> Result<(), String> {
167167 let home = std::env::var("HOME").map_err(|e| e.to_string())?;
168168 let files: Vec<&str> = AGENT_FILES.into_iter().filter(|f| Path::new(&home).join(f).exists()).collect();
169169 let tar = Command::new("tar").env("COPYFILE_DISABLE", "1").arg("--no-xattrs").arg("-C").arg(&home).arg("-cf").arg("-").args(&files).output().map_err(|e| e.to_string())?.stdout;
170- vm.sh("tar -xf - -C ~", &tar).map(|_| ())
170+ vm.sh("tar -xf - -C ~", &tar)?;
171+ // On macOS, Claude Code keeps its login in the Keychain, not in .credentials.json.
172+ if cfg!(target_os = "macos") {
173+ let creds = vm::run(Command::new("security").args(["find-generic-password", "-s", "Claude Code-credentials", "-w"]))?;
174+ vm.sh("mkdir -p ~/.claude && umask 077 && cat > ~/.claude/.credentials.json", creds.trim().as_bytes())?;
175+ }
176+ Ok(())
171177 }
172178
173179 pub fn git(repo: &Path, git_ssh: &str, args: &[&str]) -> Result<String, String> {