Restore interactive server terminal drawer
This commit is contained in:
@@ -771,6 +771,13 @@ describe("PlatformApiClient AI providers", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("builds encoded server log event stream URLs for the terminal drawer", () => {
|
||||
const client = new PlatformApiClient("/api/v1");
|
||||
|
||||
expect(client.serverLogEventsUrl("server/scum 1", { historyLimit: 500 })).toBe("/api/v1/server-instances/server%2Fscum%201/logs/events?historyLimit=500");
|
||||
expect(client.serverLogEventsUrl("server-1")).toBe("/api/v1/server-instances/server-1/logs/events");
|
||||
});
|
||||
|
||||
it("surfaces password confirmation denials without exposing generic forbidden text", async () => {
|
||||
vi.stubGlobal("fetch", vi.fn(async () => new Response(JSON.stringify({
|
||||
code: "forbidden",
|
||||
|
||||
Reference in New Issue
Block a user