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:
Gustavo Garcia
2026-04-11 10:08:45 +02:00
committed by GitHub
parent 2681bbd9e7
commit bb543f71d9
5 changed files with 12 additions and 7 deletions

View File

@@ -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", () => {

View File

@@ -23,6 +23,8 @@ vi.mock("../../channels/plugins/index.js", () => ({
}));
vi.mock("../../plugins/runtime.js", () => ({
getActivePluginChannelRegistry: () => null,
getActivePluginRegistry: () => null,
getActivePluginChannelRegistryVersion: () => mocks.getActivePluginChannelRegistryVersion(),
}));