mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 06:23:32 +00:00
fix(mac): adopt canonical session key and add reset triggers (#10898)
Add shared native chat handling for /new, /reset, and /clear. This also aligns main session key handling in the shared chat UI and includes follow-up test and CI fixes needed to keep the branch mergeable. Co-authored-by: Nachx639 <71144023+Nachx639@users.noreply.github.com> Co-authored-by: Luke <92253590+ImLukeF@users.noreply.github.com>
This commit is contained in:
@@ -236,8 +236,8 @@ export function detectCommandObfuscation(command: string): ObfuscationDetection
|
||||
continue;
|
||||
}
|
||||
|
||||
const suppressed =
|
||||
pattern.id === "curl-pipe-shell" && urlCount <= 1 && shouldSuppressCurlPipeShell(command);
|
||||
const suppressed =
|
||||
pattern.id === "curl-pipe-shell" && urlCount <= 1 && shouldSuppressCurlPipeShell(command);
|
||||
|
||||
if (suppressed) {
|
||||
continue;
|
||||
|
||||
@@ -17,10 +17,14 @@ vi.mock("./message.js", () => ({
|
||||
sendPoll: mocks.sendPoll,
|
||||
}));
|
||||
|
||||
vi.mock("../../media/local-roots.js", () => ({
|
||||
getDefaultMediaLocalRoots: mocks.getDefaultMediaLocalRoots,
|
||||
getAgentScopedMediaLocalRoots: mocks.getAgentScopedMediaLocalRoots,
|
||||
}));
|
||||
vi.mock("../../media/local-roots.js", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("../../media/local-roots.js")>();
|
||||
return {
|
||||
...actual,
|
||||
getDefaultMediaLocalRoots: mocks.getDefaultMediaLocalRoots,
|
||||
getAgentScopedMediaLocalRoots: mocks.getAgentScopedMediaLocalRoots,
|
||||
};
|
||||
});
|
||||
|
||||
import { executePollAction, executeSendAction } from "./outbound-send-service.js";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user