let addSession: typeofimport("./bash-process-registry.js").addSession;
let getFinishedSession: typeofimport("./bash-process-registry.js").getFinishedSession;
let getSession: typeofimport("./bash-process-registry.js").getSession;
let resetProcessRegistryForTests: typeofimport("./bash-process-registry.js").resetProcessRegistryForTests;
let createProcessSessionFixture: typeofimport("./bash-process-registry.test-helpers.js").createProcessSessionFixture;
let createProcessTool: typeofimport("./bash-tools.process.js").createProcessTool;
it("falls back to process-tree kill when supervisor record is missing", async () => {
supervisorMock.getRecord.mockReturnValue(undefined);
addSession(createBackgroundSession("sess-fallback", 4242)); const processTool = createProcessTool();
it("fails remove when no supervisor record and no pid is available", async () => {
supervisorMock.getRecord.mockReturnValue(undefined);
addSession(createBackgroundSession("sess-no-pid")); const processTool = createProcessTool();
expect(killProcessTreeMock).not.toHaveBeenCalled();
expect(getSession("sess-no-pid")).toBeDefined();
expect(result.details).toMatchObject({ status: "failed" });
expect(result.content[0]).toMatchObject({
type: "text",
text: "Unable to remove session sess-no-pid: no active supervisor run or process id.",
});
});
});
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet am 2026-05-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.