fix(agents): Leave changes made before a local checkout task out of its changes (#123)

* fix(agents): Leave changes made before a local checkout task out of its changes

A task in the project's own checkout listed every uncommitted and untracked
file as its own. The files already changed when the task starts are now
recorded with their size and modification time, and drop out of the task's
changes until they are edited again.

* feat(agents): Show the current branch for a local checkout task
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-10-28 14:55:10 +08:00
1 джерело f84ad80305
коміт eef24ea785
5 files changed
+72 -9

No files matched your search

+9
Переглянути файл
@@ -34,6 +34,15 @@
padding: 0 2px;
font-size: var(--fs-small);
}
/* The current branch, read-only: same height and colour as the pickers beside it. */
.branch {
display: inline-flex;
align-items: center;
gap: 4px;
height: var(--h-control);
padding: 0 6px;
color: var(--fg-secondary);
}
.project {
margin-right: 6px;
color: var(--fg-muted);
+12 -1
Переглянути файл
@@ -4,7 +4,7 @@ import type { Branch } from "@/bindings";
import { call, commands } from "@/platform/ipc";
import { useTx, useTxTemplate } from "@/platform/i18n";
import { useProject } from "@/platform/project";
import { Button, Select, T, type SelectOption } from "@/ui";
import { Button, Icon, Select, T, type SelectOption } from "@/ui";
import { Composer } from "./Composer";
import { canSend, emptyDraft } from "./composerModel";
import { ConfigPickers } from "./ConfigPickers";
@@ -107,6 +107,17 @@ export function HomeEditor() {
]}
onChange={(isolation) => updateDraft({ isolation })}
/>
{draft.isolation === "local" && current && (
<>
<span className={styles.note}>
<T>on</T>
</span>
<span className={styles.branch}>
<Icon name="branch" size={14} />
{current}
</span>
</>
)}
{draft.isolation === "worktree" && branches.length > 0 && (
<>
<span className={styles.note}>