chore(release): bump to v0.7.2 — 高级设置 + WebUI 快捷入口 + loop_control 兼容 + macOS 安装脚本
Release / Attach macOS install script (push) Canceled after 0s
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s

This commit is contained in:
KimiSwitch Dev committed 2026-08-07 10:21:47 +08:00
1 parent 24d37fbbf4
commit fc09a29b9f
21 files changed
+492 -230

No files matched your search

+24 -4
View File
@@ -24,7 +24,18 @@ const PERMISSION_LABELS: Record<(typeof PERMISSION_DECISIONS)[number], Translati
ask: "permissionAsk",
};
const COMMON_EVENTS = ["PreToolUse", "PostToolUse"] as const;
// kimi-code 0.33+ added TurnStarted / UserPromptQueued / TaskStarted /
// SessionHeartbeat hook events (plus SessionStart / SessionEnd).
const COMMON_EVENTS = [
"PreToolUse",
"PostToolUse",
"TurnStarted",
"UserPromptQueued",
"TaskStarted",
"SessionHeartbeat",
"SessionStart",
"SessionEnd",
] as const;
export function AgentSettingsPanel({ rawOther, onChange }: AgentSettingsPanelProps) {
const { t } = useTranslation();
@@ -91,9 +102,18 @@ export function AgentSettingsPanel({ rawOther, onChange }: AgentSettingsPanelPro
<Card title={t("loopControlSettings")}>
<NumberField
label={t("maxRetriesPerStep")}
value={settings.loop_control?.max_retries_per_step ?? 3}
onChange={(v) => updateLoopControl({ max_retries_per_step: v })}
label={t("maxAttemptsPerStep")}
value={
settings.loop_control?.max_attempts_per_step ??
settings.loop_control?.max_retries_per_step ??
3
}
onChange={(v) =>
updateLoopControl({
max_attempts_per_step: v,
max_retries_per_step: v,
})
}
/>
<NumberField
label={t("reservedContextSize")}
+18
View File
@@ -161,6 +161,24 @@ export function SubagentSettingsPage({
</div>
)}
{/* Kimi Code WebUI quick open */}
<Card title={t("webuiSection")}>
<p className="text-xs text-content-muted">{t("webuiDesc")}</p>
<button
type="button"
onClick={async () => {
try {
await invoke("open_kimi_web");
} catch (err) {
alert(err instanceof Error ? err.message : String(err));
}
}}
className="mt-3 px-3 py-1.5 text-sm rounded bg-blue-600 text-white hover:bg-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none"
>
{t("openWebUI")}
</button>
</Card>
{/* Subagent: secondary model picker + inherited settings */}
<Card title={t("secondaryModelSection")}>
<label className="flex items-center gap-3 text-sm text-content-primary">