mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 00:00:21 +00:00
fix(talk): fix ensure permissions on first execution of Talk Mode in MacOS (#62459)
* fix(talk): fix ensure permissions on first execution of Talk Mode in MacOS * macos: fix talk mode formatting * test: fix CI shard regressions * docs: add talk mode changelog --------- Co-authored-by: ImLukeF <92253590+ImLukeF@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { applyConfigDefaults as applyAnthropicConfigDefaults } from "../../extensions/anthropic/provider-policy-api.js";
|
||||
import type { OpenClawConfig } from "./config.js";
|
||||
import { applyProviderConfigDefaultsForConfig } from "./provider-policy.js";
|
||||
|
||||
function expectAnthropicPruningDefaults(cfg: OpenClawConfig, heartbeatEvery = "30m") {
|
||||
expect(cfg.agents?.defaults?.contextPruning?.mode).toBe("cache-ttl");
|
||||
@@ -8,10 +8,8 @@ function expectAnthropicPruningDefaults(cfg: OpenClawConfig, heartbeatEvery = "3
|
||||
expect(cfg.agents?.defaults?.heartbeat?.every).toBe(heartbeatEvery);
|
||||
}
|
||||
|
||||
function applyAnthropicDefaultsForTest(
|
||||
config: Parameters<typeof applyAnthropicConfigDefaults>[0]["config"],
|
||||
) {
|
||||
return applyAnthropicConfigDefaults({ config, env: {} });
|
||||
function applyAnthropicDefaultsForTest(config: OpenClawConfig) {
|
||||
return applyProviderConfigDefaultsForConfig({ provider: "anthropic", config, env: {} });
|
||||
}
|
||||
|
||||
describe("config pruning defaults", () => {
|
||||
|
||||
@@ -23,6 +23,8 @@ vi.mock("../../channels/plugins/index.js", () => ({
|
||||
}));
|
||||
|
||||
vi.mock("../../plugins/runtime.js", () => ({
|
||||
getActivePluginChannelRegistry: () => null,
|
||||
getActivePluginRegistry: () => null,
|
||||
getActivePluginChannelRegistryVersion: () => mocks.getActivePluginChannelRegistryVersion(),
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user