mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
fix(test): keep CLI hook context out of history assertion (#129768)
This commit is contained in:
@@ -745,7 +745,9 @@ describeLive("gateway live (cli backend)", () => {
|
||||
sessionId?: string;
|
||||
}>("chat.history", { sessionKey });
|
||||
const cliSessionId = resolveImportedClaudeCliSessionId(nativeHistory.messages ?? []);
|
||||
expect(JSON.stringify(nativeHistory.messages ?? [])).toContain(memoryToken);
|
||||
// Hook-only runtime context belongs to the provider session, not the operator-visible
|
||||
// transcript. The resumed reply below proves that the live provider retained it.
|
||||
expect(JSON.stringify(nativeHistory.messages ?? [])).not.toContain(memoryToken);
|
||||
expect(cliSessionId).toBeTruthy();
|
||||
const continuitySessionId = nativeHistory.sessionId;
|
||||
expect(continuitySessionId).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user