mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-31 11:51:22 +00:00
fix: mid-turn 429 rate limit silent no-reply and context engine registration failure (#50930)
Merged via squash.
Prepared head SHA: eea7800df3
Co-authored-by: infichen <13826604+infichen@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
This commit is contained in:
@@ -202,6 +202,8 @@ describe("registerPreActionHooks", () => {
|
||||
}
|
||||
|
||||
it("handles debug mode and plugin-required command preaction", async () => {
|
||||
const processTitleSetSpy = vi.spyOn(process, "title", "set");
|
||||
|
||||
await runPreAction({
|
||||
parseArgv: ["status"],
|
||||
processArgv: ["node", "openclaw", "status", "--debug"],
|
||||
@@ -214,7 +216,7 @@ describe("registerPreActionHooks", () => {
|
||||
commandPath: ["status"],
|
||||
});
|
||||
expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledWith({ scope: "channels" });
|
||||
expect(process.title).toBe("openclaw-status");
|
||||
expect(processTitleSetSpy).toHaveBeenCalledWith("openclaw-status");
|
||||
|
||||
vi.clearAllMocks();
|
||||
await runPreAction({
|
||||
@@ -229,6 +231,7 @@ describe("registerPreActionHooks", () => {
|
||||
commandPath: ["message", "send"],
|
||||
});
|
||||
expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledWith({ scope: "all" });
|
||||
processTitleSetSpy.mockRestore();
|
||||
});
|
||||
|
||||
it("keeps setup alias and channels add manifest-first", async () => {
|
||||
|
||||
Reference in New Issue
Block a user