跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

提交记录
修改ui/scripts/macos-resources-smoke.mjs+3 −1看文件
@@ -48,6 +48,7 @@ try {
4848 await panel.getByText("已保存,重启环境后生效。", { exact: true }).waitFor();
4949 assert.deepEqual(requests[0].allocation, { automatic: false, memory_gib: 6, cpus: 3 });
5050 failSave = true;
51新增: await panel.getByLabel("内存上限(GiB)", { exact: true }).fill("8");
5152 await panel.getByRole("button", { name: "保存资源配置", exact: true }).click();
5253 const error = panel.getByRole("alert").filter({ hasText: "资源配置保存失败" });
5354 await error.waitFor();
@@ -58,11 +59,12 @@ try {
5859 assert.ok(await error.isVisible());
5960 failSave = false;
6061 await panel.getByRole("button", { name: "重启并应用已保存配置", exact: true }).click();
61删除: await page.getByRole("dialog", { name: "重启并应用已保存的资源配置?", exact: true }).getByRole("button", { name: "保存后重启", exact: true }).click();
62新增: await page.getByRole("dialog", { name: "重启并应用已保存的资源配置?", exact: true }).getByRole("button", { name: "重启并应用", exact: true }).click();
6263 await error.waitFor({ state: "hidden" });
6364 assert.deepEqual(requests.at(-1), {});
6465 await panel.getByRole("heading", { name: "计算资源", exact: true }).scrollIntoViewIfNeeded();
6566 await page.screenshot({ path: join(output, "macos-resources.png"), animations: "disabled" });
67新增: await panel.getByText("资源统计说明", { exact: true }).click();
6668 await panel.getByText(/内存估算使用客机物理容量/).scrollIntoViewIfNeeded();
6769 await page.screenshot({ path: join(output, "macos-resource-observation.png"), animations: "disabled" });
6870 assert.deepEqual(errors, []);
修改ui/scripts/resources-smoke.mjs+21 −8看文件
@@ -14,27 +14,33 @@ await page.route("**/api/environment/resources", async (route) => {
1414 if (body.allocation) allocation = body.allocation.automatic ? { automatic: true, memory_gib: 12, cpus: 5 } : body.allocation;
1515 return route.fulfill({ json: { ok: true } });
1616 }
17删除: return route.fulfill({ json: { ...allocation, ...(windowsRuntime ? { runtime: "hyperv", min_memory_gib: 4, min_cpus: 2 } : {}), running: false, recommended_memory_bytes: 12 * 2 ** 30, recommended_cpus: rejectSave ? 6 : 5, max_memory_gib: 12, max_cpus: 5 } });
17新增: return route.fulfill({ json: { ...allocation, ...(windowsRuntime ? { runtime: "hyperv", min_memory_gib: 4, min_cpus: 2 } : {}), running: false, recommended_memory_bytes: 12 * 2 ** 30, recommended_cpus: 5, max_memory_gib: 12, max_cpus: 5 } });
1818});
1919async function open() {
2020 await page.getByRole("button", { name: "设置", exact: true }).click();
2121 await page.getByRole("navigation", { name: "设置分组" }).getByRole("button", { name: "环境与恢复", exact: true }).click();
22删除: await page.getByLabel("自动分配资源上限").waitFor();
22新增: await page.getByLabel("内存上限(GiB)", { exact: true }).waitFor();
2323}
2424try {
2525 await open();
26删除: assert.equal(await page.getByLabel("自动分配资源上限").isChecked(), true);
27删除: await page.getByLabel("自动分配资源上限").uncheck();
26新增: assert.equal(await page.getByRole("button", { name: "保存资源配置", exact: true }).isDisabled(), true);
27新增: assert.equal(await page.getByRole("button", { name: "恢复默认", exact: true }).isDisabled(), true);
2828 if (windowsRuntime) {
2929 assert.equal(await page.getByLabel("内存上限(GiB)", { exact: true }).getAttribute("min"), "4");
3030 assert.equal(await page.getByLabel("CPU 逻辑核心数", { exact: true }).getAttribute("min"), "2");
3131 await page.getByLabel("内存上限(GiB)", { exact: true }).fill("3");
3232 await page.getByRole("button", { name: "保存资源配置", exact: true }).click();
3333 assert.equal(saves.length, 0);
34删除: await page.getByText(/内存与 CPU 用量来自 Windows 客机的系统观测/).waitFor();
34新增:
3535 }
3636 await page.getByLabel("内存上限(GiB)", { exact: true }).fill("4");
3737 await page.getByLabel("CPU 逻辑核心数", { exact: true }).fill("2");
38新增: assert.equal(await page.getByText("没有未保存的修改", { exact: true }).count(), 0);
39新增: await page.getByRole("button", { name: "返回工作台", exact: true }).click();
40新增: const discard = page.getByRole("dialog", { name: "放弃尚未保存的修改?", exact: true });
41新增: await discard.waitFor();
42新增: await discard.getByRole("button", { name: "取消", exact: true }).click();
43新增: assert.equal(await page.getByLabel("内存上限(GiB)", { exact: true }).inputValue(), "4");
3844 await page.screenshot({ path: "/tmp/cage-resource-settings.png", fullPage: true });
3945 await page.getByRole("button", { name: "保存资源配置", exact: true }).click();
4046 await page.getByText("已保存,下次启动环境时生效。", { exact: true }).waitFor();
@@ -52,15 +58,22 @@ try {
5258 await page.getByRole("button", { name: "保存资源配置", exact: true }).click();
5359 await page.getByRole("alert").filter({ hasText: "资源配置保存失败" }).waitFor();
5460 await page.waitForResponse(response => response.url().endsWith("/api/environment/resources") && response.request().method() === "GET" && response.ok());
55删除: await page.getByText("6 个逻辑核心", { exact: true }).waitFor();
61新增:
5662 assert.equal(await page.getByRole("alert").filter({ hasText: "资源配置保存失败" }).isVisible(), true);
5763 assert.equal(await page.getByLabel("内存上限(GiB)", { exact: true }).inputValue(), "6");
5864 rejectSave = false;
59删除: await page.getByLabel("自动分配资源上限").check();
65新增: await page.getByRole("button", { name: "恢复默认", exact: true }).click();
66新增: assert.equal(await page.getByLabel("内存上限(GiB)", { exact: true }).inputValue(), "12");
67新增: assert.equal(await page.getByLabel("CPU 逻辑核心数", { exact: true }).inputValue(), "5");
68新增: assert.equal(allocation.automatic, false, "reset stays a draft until saved");
6069 await page.getByRole("button", { name: "保存资源配置", exact: true }).click();
6170 await page.getByText("已保存,下次启动环境时生效。", { exact: true }).waitFor();
6271 assert.equal(allocation.automatic, true);
72新增: await page.reload();
73新增: await open();
74新增: assert.equal(await page.getByRole("button", { name: "恢复默认", exact: true }).isDisabled(), true);
75新增: assert.equal(await page.getByLabel("内存上限(GiB)", { exact: true }).inputValue(), "12");
6376 assert.equal(await page.getByRole("alert").filter({ hasText: "资源配置保存失败" }).count(), 0);
6477 assert.deepEqual(errors, []);
65删除: console.log("Resource settings: manual save, reload, bounds, failure retention, automatic mode passed.");
78新增: console.log("Resource settings: manual save, reload, bounds, failure retention, defaults, editing, reset and persistence passed.");
6679} finally { await browser.close(); }
修改ui/src/resources.jsx+48 −24看文件
@@ -3,8 +3,9 @@ import { api } from "./api";
33import { SafetyMessage } from "./safety-message";
44
55const gib = (bytes) => `${(bytes / 1073741824).toFixed(1)} GiB`;
6新增:const allocationFrom = (data) => ({ automatic: data.automatic, memory_gib: data.memory_gib, cpus: data.cpus });
67
7删除:export function ResourceSettings({ status, onConfirm }) {
8新增:export function ResourceSettings({ status, onConfirm, onDirtyChange }) {
89 const [data, setData] = useState(null);
910 const [error, setError] = useState("");
1011 const [readError, setReadError] = useState("");
@@ -12,7 +13,7 @@ export function ResourceSettings({ status, onConfirm }) {
1213 const [draft, setDraft] = useState(null);
1314 const [saved, setSaved] = useState(false);
1415 useEffect(() => {
15删除: if (data && data.runtime !== "container") setDraft((current) => current || { automatic: data.automatic, memory_gib: data.memory_gib, cpus: data.cpus });
16新增: if (data && data.runtime !== "container") setDraft((current) => current || allocationFrom(data));
1617 }, [data]);
1718 const save = async (event) => {
1819 event.preventDefault();
@@ -20,7 +21,9 @@ export function ResourceSettings({ status, onConfirm }) {
2021 setSaved(false);
2122 try {
2223 await api("/environment/resources", { allocation: draft });
23删除: setData(await api("/environment/resources"));
24新增: const next = await api("/environment/resources");
25新增: setData(next);
26新增: setDraft(allocationFrom(next));
2427 setSaved(true);
2528 setError("");
2629 } catch (e) { setError(e.message); }
@@ -43,7 +46,7 @@ export function ResourceSettings({ status, onConfirm }) {
4346 if (!(await onConfirm({
4447 title: "重启并应用已保存的资源配置?",
4548 body: "正在运行的命令会结束,浏览器和编辑器会重启。请先保存内容;项目文件和登录数据保留。手动暂停的网络仍保持暂停。",
46删除: confirm: "保存后重启",
49新增: confirm: "重启并应用",
4750 }))) return;
4851 setStarting(true);
4952 try { await api("/environment/resources", {}); setError(""); }
@@ -56,6 +59,21 @@ export function ResourceSettings({ status, onConfirm }) {
5659 const fresh = observation && Date.now() - Date.parse(observation.observed_at) < 10000;
5760 const resourceError = error || readError || data?.resource_error;
5861 const resourcesVerified = data?.resources_verified === true && !resourceError;
62新增: const busy = starting || status.job?.running;
63新增: const dirty = draft && data && (draft.automatic !== data.automatic || (!draft.automatic && (draft.memory_gib !== data.memory_gib || draft.cpus !== data.cpus)));
64新增: useEffect(() => {
65新增: onDirtyChange?.(Boolean(dirty));
66新增: return () => onDirtyChange?.(false);
67新增: }, [dirty, onDirtyChange]);
68新增: const edit = (key, value) => {
69新增: setDraft((current) => ({ ...current, automatic: false, [key]: value === "" ? "" : Number(value) }));
70新增: setSaved(false);
71新增: };
72新增: const reset = () => {
73新增: setDraft({ automatic: true, memory_gib: data.recommended_memory_bytes / 1073741824, cpus: data.recommended_cpus });
74新增: setSaved(false);
75新增: setError("");
76新增: };
5977 if (data?.runtime === "container") return <section className="environment-versions" aria-label="计算资源">
6078 <h4>服务器容器资源上限</h4>
6179 <p className="field-help">CPU、内存与进程数量由服务器上的容器资源组限制。</p>
@@ -66,23 +84,31 @@ export function ResourceSettings({ status, onConfirm }) {
6684 <p className="field-help">{data.running ? resourcesVerified ? "已从服务器核验容器所属资源组的实际限制。实时内存与 CPU 用量尚未提供。" : "无法确认运行中容器的实际资源限制,请查看下方错误或等待重新核验。" : "环境尚未运行,当前显示部署配置中的资源上限。"}</p>
6785 {resourceError && <p role="alert" className="error-message"><SafetyMessage message={resourceError} /></p>}
6886 </section>;
69删除: return <section className="environment-versions" aria-label="计算资源">
87新增: return <section className="environment-versions resource-settings" aria-label="计算资源">
7088 <h4>计算资源</h4>
71删除: <p className="field-help">{macOS ? "macOS 客机使用固定的启动内存容量,修改容量需要重启。CPU 按实际任务使用,核心数表示可同时使用的逻辑核心数。自动上限使用主机资源的一半,并受这台客机的最低配置约束。" : "内存随程序需求增长,持续空闲后逐步归还主机。默认上限为主机资源的一半;CPU 按实际任务使用,上限表示可同时使用的逻辑核心数。"}</p>
72删除: <div className="setting-summary-row"><span>自动内存上限</span><strong>{data ? gib(data.recommended_memory_bytes) : "正在读取…"}</strong></div>
73删除: <div className="setting-summary-row"><span>自动 CPU 上限</span><strong>{data ? `${data.recommended_cpus} 个逻辑核心` : "—"}</strong></div>
74删除: {draft && <form className="resource-allocation" onSubmit={save} onChange={() => setSaved(false)}>
75删除: <label className="check-line"><input type="checkbox" checked={draft.automatic} onChange={(e) => setDraft({ ...draft, automatic: e.target.checked })} />自动分配资源上限</label>
76删除: {!draft.automatic && <>
77删除: <label>内存上限(GiB)<input aria-label="内存上限(GiB)" type="number" min={data.min_memory_gib || 2} max={data.max_memory_gib} step="1" required value={draft.memory_gib} onChange={(e) => setDraft({ ...draft, memory_gib: e.target.value === "" ? "" : Number(e.target.value) })} /></label>
78删除: <label>CPU 逻辑核心数<input aria-label="CPU 逻辑核心数" type="number" min={data.min_cpus || 1} max={data.max_cpus} step="1" required value={draft.cpus} onChange={(e) => setDraft({ ...draft, cpus: e.target.value === "" ? "" : Number(e.target.value) })} /></label>
79删除: <p className="field-help">可设置 {data.min_memory_gib || 2}–{data.max_memory_gib} GiB 内存、{data.min_cpus || 1}–{data.max_cpus} 个逻辑核心。{macOS ? "保存后在下次启动时应用。" : "内存仍会在上限内按需分配和回收。"}</p>
80删除: </>}
81删除: <button type="submit" disabled={starting || status.job?.running}>保存资源配置</button>
82删除: {saved && <p role="status" className="field-help">已保存,{data.running ? "重启环境后生效。" : "下次启动环境时生效。"}</p>}
83删除: </form>}
84删除: {macOS && data.minimum_requirements?.source === "existing-configuration" && <p className="field-help">当前最低值沿用已有启动配置。尚未从原恢复镜像读回 Apple 的最低要求。</p>}
85删除: {data?.running && <>
89新增: <p className="field-help resource-intro">默认使用主机一半的资源,可在下方调整。{macOS ? "macOS 客机使用固定的启动内存容量。" : "内存按需使用,持续空闲后逐步归还主机。"}CPU 按实际任务使用。</p>
90新增: {draft ? <form className="resource-allocation" onSubmit={save}>
91新增: <fieldset disabled={busy} className="resource-fields">
92新增: <legend className="sr-only">资源配置</legend>
93新增: <label><span>内存{macOS ? "容量" : "上限"}</span>
94新增: <span className="resource-input"><input aria-label="内存上限(GiB)" aria-describedby="resource-memory-help" type="number" min={data.min_memory_gib || 2} max={data.max_memory_gib} step="1" required value={draft.memory_gib} onChange={(e) => edit("memory_gib", e.target.value)} /><span aria-hidden="true">GiB</span></span>
95新增: <small id="resource-memory-help">默认 {gib(data.recommended_memory_bytes)} · 可调 {data.min_memory_gib || 2}–{data.max_memory_gib} GiB</small>
96新增: </label>
97新增: <label><span>CPU 上限</span>
98新增: <span className="resource-input"><input aria-label="CPU 逻辑核心数" aria-describedby="resource-cpu-help" type="number" min={data.min_cpus || 1} max={data.max_cpus} step="1" required value={draft.cpus} onChange={(e) => edit("cpus", e.target.value)} /><span aria-hidden="true">逻辑核心</span></span>
99新增: <small id="resource-cpu-help">默认 {data.recommended_cpus} 个 · 可调 {data.min_cpus || 1}–{data.max_cpus} 个</small>
100新增: </label>
101新增: </fieldset>
102新增: <div className="resource-actions">
103新增: <span className="resource-mode">{draft.automatic ? "默认配置" : "自定义配置"}{dirty ? " · 未保存" : ""}</span>
104新增: <button className="text-button" type="button" disabled={busy || draft.automatic} onClick={reset}>恢复默认</button>
105新增: <button type="submit" disabled={busy || !dirty}>{starting ? "正在保存…" : "保存资源配置"}</button>
106新增: </div>
107新增: <p role={saved ? "status" : undefined} className="field-help resource-save-note">{saved ? "已保存," : "保存后,"}{data.running ? "重启环境后生效。" : "下次启动环境时生效。"}</p>
108新增: </form> : !resourceError && <p role="status" className="field-help">正在读取资源配置…</p>}
109新增: {macOS && data.minimum_requirements?.source === "existing-configuration" && <p className="field-help resource-minimum-note">当前最低值沿用已有启动配置。尚未从原恢复镜像读回 Apple 的最低要求。</p>}
110新增: {data?.running && <div className="resource-runtime">
111新增: <div className="resource-runtime-heading"><h5>当前运行</h5>{data.restart_required && <button className="text-button" disabled={busy} onClick={apply}>重启并应用已保存配置</button>}</div>
86112 <div className="setting-summary-row"><span>本次启动的内存上限</span><strong>{gib(data.configured_memory_bytes)}</strong></div>
87113 <div className="setting-summary-row"><span>本次启动的 CPU 上限</span><strong>{data.configured_cpus} 个逻辑核心</strong></div>
88114 <div className="setting-summary-row"><span>{macOS ? "环境内存用量(估算)" : "环境内存用量"}</span><strong>{fresh && guest ? gib(guest.total_bytes - guest.available_bytes) : "等待采样"}</strong></div>
@@ -90,10 +116,8 @@ export function ResourceSettings({ status, onConfirm }) {
90116 <div className="setting-summary-row"><span>CPU 使用率</span><strong>{fresh && Number.isFinite(observation.cpu_percent) ? `${observation.cpu_percent.toFixed(0)}% / ${observation.cpus} 个核心` : "等待采样"}</strong></div>
91117 {fresh && guest?.oom_kills > 0 && <p className="field-help" role="status">本次环境启动后,系统因内存不足终止过 {guest.oom_kills} 个进程。请降低重任务的并行数量,或使用内存更多的主机。</p>}
92118 {(observation?.pressure || observation?.host_pressure) && <p className="field-help" role="status">{macOS ? "客机内存压力升高,请减少并行任务,或保存工作后调整内存上限并重启。" : observation.host_pressure ? "主机内存紧张,暂缓扩大分配。" : "环境内存紧张,正在上限内增加可用内存。达到上限后请减少同时运行的任务。"}</p>}
93删除: {data.restart_required && <button disabled={starting || status.job?.running} onClick={apply}>重启并应用已保存配置</button>}
94删除: </>}
95删除: {!data?.running && data && <p className="field-help">下次启动环境时应用已保存的资源配置。</p>}
119新增: </div>}
96120 {(resourceError || observation?.error) && <p role="alert" className="error-message"><SafetyMessage message={resourceError || observation.error} /></p>}
97删除: <p className="field-help">{macOS ? "内存估算使用客机物理容量减去空闲与非活跃页,压缩页计入用量。CPU 来自连续两次 Mach 计数采样。当前缺少可核验的内存回收量,Cage 使用固定容量;OOM 终止计数尚未提供。主机系统监视器还会统计虚拟化开销。" : data?.runtime === "hyperv" ? "内存与 CPU 用量来自 Windows 客机的系统观测。Hyper-V 会在设置的内存上下限内分配和回收内存;主机系统监视器还会统计虚拟化开销。" : "内存用量不含可回收缓存;这些数值反映环境内部状态,主机系统监视器还会统计虚拟化开销。短时故障导致内部断网后,会自动重新检查,通过后恢复;手动暂停需手动恢复。"}</p>
121新增: {data?.running && <details className="resource-observation-note"><summary>资源统计说明</summary><p className="field-help">{macOS ? "内存估算使用客机物理容量减去空闲与非活跃页,压缩页计入用量。CPU 来自连续两次 Mach 计数采样。OOM 终止计数尚未提供。主机系统监视器还会统计虚拟化开销。" : data.runtime === "hyperv" ? "内存与 CPU 用量来自 Windows 客机的系统观测。Hyper-V 会在设置的内存上下限内分配和回收内存;主机系统监视器还会统计虚拟化开销。" : "内存用量不含可回收缓存;这些数值反映环境内部状态,主机系统监视器还会统计虚拟化开销。"}</p></details>}
98122 </section>;
99123}
修改ui/src/settings.jsx+4 −3看文件
@@ -59,6 +59,7 @@ export function SettingsPanel({
5959 const [localKeyboard, setLocalKeyboard] = useState(() => clientKeyboard(current.keyboard));
6060 const [accountDirty, setAccountDirty] = useState(false);
6161 const [proxyDirty, setProxyDirty] = useState(false);
62新增: const [resourceDirty, setResourceDirty] = useState(false);
6263 const [draft, setDraft] = useState({ ...current }),
6364 [section, setSection] = useState(initialSection),
6465 [probe, setProbe] = useState(null),
@@ -106,7 +107,7 @@ export function SettingsPanel({
106107 return;
107108 }
108109 if (
109删除: (!changed && !accountDirty && !proxyDirty) ||
110新增: (!changed && !accountDirty && !proxyDirty && !resourceDirty) ||
110111 (await onConfirm({
111112 title: "放弃尚未保存的修改?",
112113 body: "当前环境不会改变。关闭后会丢弃这次表单修改。",
@@ -599,7 +600,7 @@ export function SettingsPanel({
599600 切换项目只改变新终端和文件编辑器的起始位置;已有终端、网页和登录态会保留。
600601 </p>
601602 <EnvironmentVersions status={status} onConfirm={onConfirm} />
602删除: <ResourceSettings status={status} onConfirm={onConfirm} />
603新增: <ResourceSettings status={status} onConfirm={onConfirm} onDirtyChange={setResourceDirty} />
603604 <DiagnosticSettings />
604605 {status.can_restore && (
605606 <button
@@ -653,7 +654,7 @@ export function SettingsPanel({
653654 </div>
654655 )}
655656 </div>
656删除: {(!["appearance", "browser", "account", "claude-accounts", "vault", "mobile", "archived-sessions"].includes(section) || changed) && (
657新增: {(!["appearance", "browser", "account", "claude-accounts", "vault", "mobile", "archived-sessions", "project"].includes(section) || changed) && (
657658 <footer className="settings-footer">
658659 {" "}
659660 <>
修改ui/src/style.css+27 −2看文件
@@ -546,8 +546,33 @@ button.large {
546546.browser-upload-body label { display: flex; flex-direction: column; gap: 8px; }
547547.browser-upload-body input, .browser-upload-body progress { width: 100%; }
548548.environment-versions { margin-top: 28px; }
549删除:.resource-allocation { margin: 24px 0; }
550删除:.resource-allocation > [role="status"] { margin: 12px 0 0; }
549新增:.resource-settings .resource-intro { margin: 0 0 20px; }
550新增:.resource-allocation { margin: 0; }
551新增:.resource-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border: 0; padding: 0; margin: 0; min-width: 0; }
552新增:.resource-fields legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
553新增:.settings-content .resource-fields label { margin: 0 !important; gap: 8px; min-width: 0; }
554新增:.resource-fields small { color: var(--muted); font-size: 0.8571rem; font-weight: 400; line-height: 1.6; }
555新增:.resource-input { position: relative; display: flex; align-items: center; }
556新增:.settings-content .resource-input input { padding-right: 86px; font-variant-numeric: tabular-nums; font-size: 1.1429rem; height: 44px; }
557新增:.resource-input > span { position: absolute; right: 30px; color: var(--muted); font-size: 0.8571rem; pointer-events: none; }
558新增:.resource-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; }
559新增:.resource-mode { margin-right: auto; color: var(--muted); font-size: 0.8571rem; }
560新增:.resource-actions .text-button { margin: 0; }
561新增:.resource-actions button[type="submit"] { background: var(--button); color: var(--button-ink); border-color: var(--button); }
562新增:.resource-settings .resource-save-note { margin: 10px 0 0; }
563新增:.resource-settings .resource-minimum-note { margin: 10px 0 0; }
564新增:.resource-runtime { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
565新增:.resource-runtime-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
566新增:.resource-runtime-heading h5 { font-size: 0.9286rem; font-weight: 550; margin: 0; }
567新增:.resource-runtime .setting-summary-row { margin: 0; padding: 10px 0; font-size: 0.9286rem; }
568新增:.resource-runtime .field-help { margin: 12px 0 0; }
569新增:.resource-observation-note { margin-top: 14px; color: var(--muted); font-size: 0.8571rem; }
570新增:.resource-observation-note summary { cursor: pointer; width: fit-content; }
571新增:.resource-observation-note .field-help { margin: 10px 0 0; }
572新增:@media (max-width: 600px) {
573新增: .resource-fields { grid-template-columns: 1fr; gap: 16px; }
574新增: .resource-mode { flex-basis: 100%; }
575新增:}
551576.environment-versions .setting-summary-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
552577.environment-versions .setting-summary-row strong { margin: 0; }
553578.environment-tool-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 12px 0; }