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

For a folder that isn't a repository, the current-branch query answers with a repository found below it, so the New Agent Task page read "<folder> on <branch>" although the agent runs in the folder itself and the branch couldn't be changed. The branch is now shown only when the project is a repository.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-04 23:39:50 +08:00
1 джерело 1e4eee27c4
коміт ad2aeed54e
1 file changed
+2 -1
+2 -1
Переглянути файл
@@ -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}>