agent_servers: Let Gemini CLI know it is running in Zed (#38058)

By passing through Zed as the surface, Gemini can know which editor it
is running in.

Release Notes:

- N/A
This commit is contained in:
Ben Brandt
2025-09-15 08:30:46 +00:00
committed by GitHub
parent 5b1c87b6a6
commit 4d54ccf494
+1
View File
@@ -44,6 +44,7 @@ impl AgentServer for Gemini {
cx.spawn(async move |cx| {
let mut extra_env = HashMap::default();
extra_env.insert("SURFACE".to_owned(), "zed".to_owned());
if let Some(api_key) = cx
.update(GoogleLanguageModelProvider::api_key_for_gemini_cli)?
.await