From f0517a3a1fa0fffcae1a05ca089bec8e7b1f6f41 Mon Sep 17 00:00:00 2001 From: Acbox Date: Tue, 3 Mar 2026 20:38:36 +0800 Subject: [PATCH] fix: inbox indirectly push notidy item into context --- internal/channel/inbound/channel.go | 3 --- packages/agent/src/prompts/system.ts | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/channel/inbound/channel.go b/internal/channel/inbound/channel.go index 436be583..b5afec46 100644 --- a/internal/channel/inbound/channel.go +++ b/internal/channel/inbound/channel.go @@ -234,9 +234,6 @@ func (p *ChannelInboundProcessor) HandleInbound(ctx context.Context, cfg channel slog.Int("attachments", len(attachments)), ) } - if !strings.EqualFold(identity.BotType, "personal") { - p.persistInboundUser(ctx, resolved.RouteID, identity, msg, text, attachments, "passive_sync") - } return nil } diff --git a/packages/agent/src/prompts/system.ts b/packages/agent/src/prompts/system.ts index 700c6429..6d86a61c 100644 --- a/packages/agent/src/prompts/system.ts +++ b/packages/agent/src/prompts/system.ts @@ -80,6 +80,8 @@ export const system = ({ 'time-now': date.toISOString(), } + console.log('inbox', inbox) + return ` --- ${stringify(staticHeaders)}