Restore safe server terminal entry

This commit is contained in:
npc0-hue
2026-08-10 21:35:02 +08:00
parent b8b52885c5
commit 1207ba6c5b
4 changed files with 88 additions and 4 deletions
+4 -1
View File
@@ -213,7 +213,7 @@ describe("first-party console pages", () => {
}
});
it("removes raw log and management terminal entry points from server pages", () => {
it("removes raw log and command panels while preserving the safe terminal entry", () => {
expect(serversPageSource).not.toContain("ServerLiveLogDrawer");
expect(serversPageSource).not.toContain("ServerManagementTerminalDrawer");
expect(serversPageSource).not.toContain("live-logs");
@@ -228,6 +228,8 @@ describe("first-party console pages", () => {
expect(serverDetailPageSource).not.toContain("previewServerConfigDiff");
expect(serverDetailPageSource).not.toContain("approveServerConfigWrite");
expect(serverDetailPageSource).not.toContain("操作历史");
expect(serverDetailPageSource).toContain("<span>打开终端</span>");
expect(serverDetailPageSource).toContain("RemoteTerminalEntryDialog");
expect(serverDetailPageSource).toContain("runtimeObservationFreshness");
expect(serverDetailPageSource).toContain("Run 未验证");
expect(serverDetailPageSource).toContain("PluginPageSection");
@@ -332,6 +334,7 @@ describe("first-party console pages", () => {
expect(serverDetailPageSource).toContain("PluginPageHostPage");
expect(serverDetailPageSource).toContain("plugin:${page.key}");
expect(serverDetailPageSource).toContain("section === \"llm\"");
expect(serverDetailPageSource).toContain("打开终端");
expect(serverDetailPageSource).not.toContain("terminalQuickCommandCatalog");
expect(serverDetailPageSource).not.toContain("scumManagementRCONCommandRequest");
expect(serverDetailPageSource).not.toContain("queueGameClientBridgeCommand");