fix: default local onboarding tools profile to coding

This commit is contained in:
Peter Steinberger
2026-03-07 16:40:51 +00:00
parent f03f305ade
commit 1dd4f92ea2
9 changed files with 12 additions and 7 deletions

View File

@@ -7,6 +7,10 @@ import {
} from "./onboard-config.js";
describe("applyOnboardingLocalWorkspaceConfig", () => {
it("defaults local onboarding tool profile to coding", () => {
expect(ONBOARDING_DEFAULT_TOOLS_PROFILE).toBe("coding");
});
it("sets secure dmScope default when unset", () => {
const baseConfig: OpenClawConfig = {};
const result = applyOnboardingLocalWorkspaceConfig(baseConfig, "/tmp/workspace");

View File

@@ -3,7 +3,7 @@ import type { DmScope } from "../config/types.base.js";
import type { ToolProfileId } from "../config/types.tools.js";
export const ONBOARDING_DEFAULT_DM_SCOPE: DmScope = "per-channel-peer";
export const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "messaging";
export const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "coding";
export function applyOnboardingLocalWorkspaceConfig(
baseConfig: OpenClawConfig,

View File

@@ -145,7 +145,7 @@ describe("onboard (non-interactive): gateway and remote auth", () => {
}>(configPath);
expect(cfg?.agents?.defaults?.workspace).toBe(workspace);
expect(cfg?.tools?.profile).toBe("messaging");
expect(cfg?.tools?.profile).toBe("coding");
expect(cfg?.gateway?.auth?.mode).toBe("token");
expect(cfg?.gateway?.auth?.token).toBe(token);
});