Skip to content

Commit bb5b6f3

Browse files
committed
test: harden release CI ordering
1 parent a3fa5b6 commit bb5b6f3

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/agents/subagent-spawn.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ describe("spawnSubagentDirect seam flow", () => {
7373
resolveSubagentSpawnModelSelection: () => "openai/gpt-5.4",
7474
resolveSandboxRuntimeStatus: () => ({ sandboxed: false }),
7575
sessionStorePath: "/tmp/subagent-spawn-session-store.json",
76-
resetModules: false,
7776
}));
7877
});
7978

‎src/gateway/server-runtime-services.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ describe("server-runtime-services", () => {
106106
});
107107

108108
expect(hoisted.startChannelHealthMonitor).toHaveBeenCalledTimes(1);
109-
await vi.dynamicImportSettled();
110109
expect(hoisted.loadModelPricingCacheModule).not.toHaveBeenCalled();
111110
expect(hoisted.startGatewayModelPricingRefresh).not.toHaveBeenCalled();
112111
expect(hoisted.startHeartbeatRunner).not.toHaveBeenCalled();

‎src/infra/outbound/channel-selection.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function resolveAvailableKnownChannel(params: {
6767
: undefined;
6868
}
6969

70-
function isConfiguredChannel(cfg: OpenClawConfig, channelId: string): boolean {
70+
export function isConfiguredChannel(cfg: OpenClawConfig, channelId: string): boolean {
7171
const channels = cfg.channels;
7272
if (!channels || typeof channels !== "object" || Array.isArray(channels)) {
7373
return false;

‎src/infra/outbound/message-action-runner.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import { formatErrorMessage } from "../errors.js";
5050
import { throwIfAborted } from "./abort.js";
5151
import { resolveOutboundChannelPlugin } from "./channel-resolution.js";
5252
import {
53+
isConfiguredChannel,
5354
listConfiguredMessageChannels,
5455
resolveMessageChannelSelection,
5556
} from "./channel-selection.js";
@@ -638,6 +639,9 @@ async function hasConfiguredCurrentSourceChannel(input: RunMessageActionParams):
638639
if (!provider || provider === INTERNAL_MESSAGE_CHANNEL) {
639640
return false;
640641
}
642+
if (!isConfiguredChannel(input.cfg, provider)) {
643+
return false;
644+
}
641645
if (!resolveOutboundChannelPlugin({ channel: provider, cfg: input.cfg, allowBootstrap: true })) {
642646
return false;
643647
}

0 commit comments

Comments
 (0)