SSH keys in account settings; wrappers for agents, terminal and git

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Sonnet 5.5 committed 2026-11-15 11:47:31 +01:00
1 parent 247ddcf14a
commit 6e8e739906
16 files changed
+517 -6

No files matched your search

+3 -2
View File
@@ -104,6 +104,7 @@ fn command(app: &App, owner: Option<&str>, cwd: &Path, args: &[String]) -> Resul
c.env("GIT_CONFIG_GLOBAL", cfg);
}
c.envs(crate::gitcreds::identity_env(app, &user.id));
c.envs(crate::sshkeys::env(app, &user));
}
Ok(c)
}
@@ -365,8 +366,8 @@ pub async fn run(app: Arc<App>, session_id: &str, cancel: CancellationToken) ->
args.extend(["--resume".into(), r.clone()]);
}
let mut appended = session.instructions.trim().to_string();
if let Some(git) = owner.as_deref().and_then(|u| crate::gitcreds::prompt_section(&app, u)) {
appended = format!("{appended}\n{git}").trim().to_string();
for extra in owner.as_deref().into_iter().flat_map(|u| [crate::gitcreds::prompt_section(&app, u), crate::sshkeys::prompt_section(&app, u)]).flatten() {
appended = format!("{appended}\n{extra}").trim().to_string();
}
if !appended.is_empty() {
args.extend(["--append-system-prompt".into(), appended]);