Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/lib/agent/onboard.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

import fs from "node:fs";
import path from "node:path";

import { describe, it, expect, beforeEach, afterEach, afterAll, vi } from "vitest";
// Import from compiled dist/ so coverage is attributed correctly.
import {
Expand Down Expand Up @@ -129,6 +132,15 @@ describe("printDashboardUi — regression for #2078 (port 8642 is not a chat UI)
});
});

describe("agent setup session boundaries", () => {
it("does not write onboard session state directly", () => {
const source = fs.readFileSync(path.join(__dirname, "onboard.ts"), "utf8");

expect(source).not.toContain("../state/onboard-session");
expect(source).not.toMatch(/onboardSession\.markStep/);
});
});

describe("handleAgentSetup guards", () => {
it("accepts an executable configured binary path when PATH lookup is empty", () => {
let script = "";
Expand Down
Loading