дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 11:15:40 +02:00
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
Цей коміт міститься в:
1 джерело
f84ad80305
коміт
eef24ea785
5 files changed
+72
-9
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -3216,6 +3216,7 @@
|
||||
"away from your changes": "不影响你的改动",
|
||||
"edits your files directly": "直接修改你的文件",
|
||||
"from": "基于",
|
||||
"on": "位于",
|
||||
"Models and modes appear after this agent's first task.": "这个 agent 跑完第一个任务后会显示模型和模式。",
|
||||
"Queue a message for when the agent is done (⌘↵ sends it now)": "排队一条消息,agent 做完后发送(⌘↵ 立即发送)",
|
||||
"Couldn't send the message": "消息发送失败",
|
||||
|
||||
Reference in new issue
Заблокувати користувача