дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
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.
Цей коміт міститься в:
1 джерело
1e4eee27c4
коміт
ad2aeed54e
1 file changed
+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}>
|
||||
|
||||
Reference in new issue
Заблокувати користувача