Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/lib/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7823,7 +7823,7 @@ async function setupMessagingChannels(
output.write(` [${i + 1}] ${marker} ${ch.name} — ${ch.description}${status}\n`);
});
output.write("\n");
output.write(` Press 1-${availableChannels.length} to toggle, Enter when done: `);
output.write(` Press 1-${availableChannels.length} to toggle, Enter when done (none selected skips): `);
};

showList();
Expand Down
12 changes: 12 additions & 0 deletions test/onboard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,18 @@ const { setupInference } = require(${onboardPath});
);
});

it("tells users that selecting no messaging channels skips the step", () => {
const source = fs.readFileSync(
path.join(import.meta.dirname, "..", "src", "lib", "onboard.ts"),
"utf-8",
);

assert.match(
source,
/Press 1-\$\{availableChannels\.length\} to toggle, Enter when done \(none selected skips\):/,
);
});

it("migrates a legacy credentials.json into env so setupInference can register the provider", () => {
const repoRoot = path.join(import.meta.dirname, "..");
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-onboard-resume-cred-"));
Expand Down
Loading