Compare commits

...
1 Commits
2 changed files with 5 additions and 10 deletions

No files matched your search

+2 -4
View File
@@ -143,13 +143,11 @@ export const ACTIONS: UIAction[] = [
{ id: "workspace.menu", kind: "view", target: "entity", proof: "interaction" },
{ id: "machine.menu", kind: "view", target: "none", proof: "interaction" },
{ id: "session.pin", kind: "view", target: "entity", proof: "interaction" },
{ id: "session.mark-read", kind: "kernel-mutation", target: "entity", proof: "interaction" },
{ id: "session.pause", kind: "kernel-mutation", target: "entity", proof: "interaction" },
{ id: "session.mark-read", kind: "kernel-mutation", target: "entity", proof: "interaction" }, { id: "session.pause", kind: "kernel-mutation", target: "entity", proof: "interaction" },
// Closing a conversation's pane ends its runtime and keeps the transcript;
// refused while a turn runs, so it never stops work.
{ id: "session.close", kind: "kernel-mutation", target: "entity", proof: "interaction" },
{ id: "session.branch", kind: "kernel-mutation", target: "entity", proof: "interaction" },
{ id: "session.archive", kind: "kernel-mutation", target: "entity", proof: "authority-effect" },
{ id: "session.branch", kind: "kernel-mutation", target: "entity", proof: "interaction" }, { id: "session.archive", kind: "kernel-mutation", target: "entity", proof: "authority-effect" },
{ id: "session.copy-info", kind: "shell-native", target: "entity", proof: "interaction" },
{ id: "session.export", kind: "shell-native", target: "entity", proof: "browser" },
{ id: "session.delete", kind: "destructive", target: "entity", proof: "authority-effect" },
+3 -6
View File
@@ -7,13 +7,12 @@ import { useRuntimeReload } from "./RuntimeReload";
import type { AccountState, AgentPort, Appearance as Look, CapabilityScope, McpEntry, ModelEntry, PluginPackage, SessionStatus, SkillEntry } from "../port/port";
import { useSettingsSearch } from "./useSettingsSearch";
import { bytes, tokens as fmtTokens } from "../i18n/format";
import { SECTION_NAME } from "./prefsnav";
import { SECTION_NAME, type Section } from "./prefsnav";
import { SettingsNav } from "./SettingsNav";
import { Group, SCOPE_SAID } from "./Group";
import { PlanApproval, DefaultMode } from "./PlanApproval";
import { PeersSection } from "./PeersSection";
import { SessionCoordination } from "./SessionCoordination";
import type { Section } from "./prefsnav";
import { AddServer } from "./AddServer";
import { PhoneAccess } from "./PhoneAccess";
import { PhoneReminders } from "./PhoneReminders";
@@ -621,10 +620,8 @@ export function Settings({ hub, onError, port, networkPort, localWorkspacePort,
{at === "hooks" && (
<>
<Group id="hooks"
title={t("自动化")}
hint={t("在 agent 执行任务前后运行自定义命令。这些命令在本机以当前用户权限运行;可拦截 agent 的两个事件已在下方标出。")}
>
<Group id="hooks" title={t("自动化")}
hint={t("在 agent 执行任务前后运行自定义命令。这些命令在本机以当前用户权限运行;可拦截 agent 的两个事件已在下方标出。")}>
<Hooks port={port} onChanged={afterExtChange} />
</Group>
<ScheduledRuns port={port} />