fix(messages): restore explicit responsePrefix default

This commit is contained in:
Peter Steinberger
2026-01-09 19:18:30 +00:00
parent 237480ed9b
commit 72b0777341
7 changed files with 14 additions and 15 deletions

View File

@@ -2022,7 +2022,7 @@ describe("web auto-reply", () => {
resetLoadConfigMock();
});
it("uses identity.name for responsePrefix when set", async () => {
it("does not derive responsePrefix from identity.name when unset", async () => {
setLoadConfigMock(() => ({
agents: {
list: [
@@ -2076,8 +2076,8 @@ describe("web auto-reply", () => {
sendMedia: vi.fn(),
});
// Reply should have identity-based responsePrefix prepended
expect(reply).toHaveBeenCalledWith("[Richbot] hello there");
// No implicit responsePrefix.
expect(reply).toHaveBeenCalledWith("hello there");
resetLoadConfigMock();
});
});