feat: add cross-context messaging resolver

Co-authored-by: Thinh Dinh <tobalsan@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-01-17 03:17:08 +00:00
parent 1481a3d90f
commit 46015a3dd8
23 changed files with 859 additions and 60 deletions

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) =>