mirror of
https://github.com/block/buzz.git
synced 2026-11-05 08:51:10 +00:00
Require real task thread roots
This commit is contained in:
@@ -3,9 +3,11 @@ import test from "node:test";
|
||||
|
||||
import {
|
||||
buildAgentConversation,
|
||||
buildAgentConversationMentionPubkeys,
|
||||
buildAgentConversationRecap,
|
||||
buildAgentConversationMarkers,
|
||||
deriveAgentConversationTitle,
|
||||
getAutoRoutedAgentConversationPubkeys,
|
||||
getHiddenAgentConversationMessageIds,
|
||||
parseAgentConversationMarker,
|
||||
readPersistedAgentConversations,
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
KIND_AGENT_CONVERSATION,
|
||||
KIND_AGENT_CONVERSATION_COMPAT,
|
||||
} from "@/shared/constants/kinds";
|
||||
import { normalizePubkey } from "@/shared/lib/pubkey";
|
||||
import { parseAgentConversationLink } from "./agentConversationLink";
|
||||
import {
|
||||
collectConversationContextMessages,
|
||||
@@ -81,6 +82,11 @@ export type AgentConversationRecapInput = {
|
||||
messages: readonly TimelineMessage[];
|
||||
};
|
||||
|
||||
export type AgentConversationRouteableParticipant = {
|
||||
canMessage: boolean;
|
||||
pubkey: string;
|
||||
};
|
||||
|
||||
function normalizeAgentConversationStorageScope(
|
||||
workspaceScope: string | null | undefined,
|
||||
): string {
|
||||
|
||||
@@ -215,7 +215,6 @@ export function ChannelTasksView({
|
||||
const resolvedThreadMessage =
|
||||
messageById.get(marker.threadRootMessageId ?? "") ??
|
||||
messageById.get(marker.threadRootId) ??
|
||||
messageById.get(marker.parentMessageId ?? "") ??
|
||||
null;
|
||||
const isBroadcastTaskSource = message
|
||||
? isBroadcastReply(message.tags ?? [])
|
||||
|
||||
Reference in New Issue
Block a user