mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 19:28:28 +00:00
fix(tui): strip inbound metadata blocks from user messages (clean rewrite) (#22345)
* fix(tui): strip inbound metadata blocks from user text * chore: clean up metadata-strip format and changelog credit * chore: format tui metadata-strip tests * test: align metadata-strip regression expectations * refactor: reuse canonical inbound metadata stripper * test: allow tmp media fixture paths in media-understanding tests * refactor: reuse canonical inbound metadata stripper * format: fix changelog blank line after headings * test: fix unrelated check typing regressions * test: align memory async mock embedding signatures * test: avoid tsgo mock typing pitfall * test: restore async search mock typings in merge tree * test: trigger ci rerun without behavior change * chore: dedupe todays changelog entries * fix: dedupe sqlite mock keys in qmd manager test * Update qmd-manager.test.ts * test: align chat metadata sanitization expectation
This commit is contained in:
@@ -25,7 +25,7 @@ describe("sendDiscordComponentMessage", () => {
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
it("registers component entries for DM channel targets", async () => {
|
||||
it("keeps direct-channel DM session keys on component entries", async () => {
|
||||
const { rest, postMock, getMock } = makeDiscordRest();
|
||||
getMock.mockResolvedValueOnce({
|
||||
type: ChannelType.DM,
|
||||
@@ -48,6 +48,6 @@ describe("sendDiscordComponentMessage", () => {
|
||||
|
||||
expect(registerMock).toHaveBeenCalledTimes(1);
|
||||
const args = registerMock.mock.calls[0]?.[0];
|
||||
expect(args?.entries[0]).toBeDefined();
|
||||
expect(args?.entries[0]?.sessionKey).toBe("agent:main:discord:channel:dm-1");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user