mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 20:21:23 +00:00
feat: add group activation command
This commit is contained in:
@@ -53,6 +53,22 @@ describe("buildStatusMessage", () => {
|
||||
expect(text).toContain("Web: not linked");
|
||||
});
|
||||
|
||||
it("includes group activation for group sessions", () => {
|
||||
const text = buildStatusMessage({
|
||||
agent: {},
|
||||
sessionEntry: {
|
||||
sessionId: "g1",
|
||||
updatedAt: 0,
|
||||
groupActivation: "always",
|
||||
},
|
||||
sessionKey: "group:123@g.us",
|
||||
sessionScope: "per-sender",
|
||||
webLinked: true,
|
||||
});
|
||||
|
||||
expect(text).toContain("Group activation: always");
|
||||
});
|
||||
|
||||
it("prefers cached prompt tokens from the session log", async () => {
|
||||
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "clawdis-status-"));
|
||||
const previousHome = process.env.HOME;
|
||||
|
||||
Reference in New Issue
Block a user