feat: add cross-context messaging resolver

Co-authored-by: Thinh Dinh <tobalsan@users.noreply.github.com>
This commit is contained in:
Peter SteinbergerandThinh Dinh committed 2026-01-17 03:17:13 +00:00
1 parent 1481a3d90f
commit 46015a3dd8
23 files changed
+859 -60

No files matched your search

+6 -3
View File
@@ -32,7 +32,7 @@ export function buildThreadingToolContext(params: {
: provider === "imessage" && sessionCtx.ChatType === "direct"
? (sessionCtx.From ?? sessionCtx.To)
: sessionCtx.To;
return (
const context =
dock.threading.buildToolContext({
cfg: config,
accountId: sessionCtx.AccountId,
@@ -44,8 +44,11 @@ export function buildThreadingToolContext(params: {
MessageThreadId: sessionCtx.MessageThreadId,
},
hasRepliedRef,
}) ?? {}
);
}) ?? {};
return {
...context,
currentChannelProvider: provider,
};
}
export const isBunFetchSocketError = (message?: string) =>