Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(agents): don't show a branch for a task in a folder that isn't a repository (#1316)

l0ng-aiad2aeed54e69
diff --git a/src/features/agents/HomeEditor.tsx b/src/features/agents/HomeEditor.tsx
index bf8e04213..85a552934 100644
--- a/src/features/agents/HomeEditor.tsx
+++ b/src/features/agents/HomeEditor.tsx
@@ -170,7 +170,8 @@ export function HomeEditor({ docked = false }: { docked?: boolean; input?: Edito
onChange={(isolation) => updateDraft({ isolation, isolationChosen: true })}
/>
)}
- {isolation === "local" && current && (
+ {/* A folder that isn't a repository has no branch: the one Git found below it isn't where the agent runs. */}
+ {isolation === "local" && isGit && current && (
<>
{!docked && (
<span className={styles.note}>