feat: add reply tags and replyToMode
This commit is contained in:
@@ -1417,7 +1417,7 @@ describe("web auto-reply", () => {
|
||||
expect(callArg.ReplyToId).toBe("q1");
|
||||
expect(callArg.ReplyToBody).toBe("original");
|
||||
expect(callArg.ReplyToSender).toBe("+1999");
|
||||
expect(callArg.Body).toContain("[Replying to +1999]");
|
||||
expect(callArg.Body).toContain("[Replying to +1999 id:q1]");
|
||||
expect(callArg.Body).toContain("original");
|
||||
});
|
||||
|
||||
|
||||
@@ -921,7 +921,8 @@ export async function monitorWebProvider(
|
||||
const formatReplyContext = (msg: WebInboundMsg) => {
|
||||
if (!msg.replyToBody) return null;
|
||||
const sender = msg.replyToSender ?? "unknown sender";
|
||||
return `[Replying to ${sender}]\n${msg.replyToBody}\n[/Replying]`;
|
||||
const idPart = msg.replyToId ? ` id:${msg.replyToId}` : "";
|
||||
return `[Replying to ${sender}${idPart}]\n${msg.replyToBody}\n[/Replying]`;
|
||||
};
|
||||
|
||||
const buildLine = (msg: WebInboundMsg) => {
|
||||
|
||||
Reference in New Issue
Block a user