Require real task thread roots

This commit is contained in:
klopez4212
2026-06-29 20:17:31 +01:00
parent 07b8f35de4
commit 0558c0991d
3 changed files with 8 additions and 1 deletions

View File

@@ -3,9 +3,11 @@ import test from "node:test";
import {
buildAgentConversation,
buildAgentConversationMentionPubkeys,
buildAgentConversationRecap,
buildAgentConversationMarkers,
deriveAgentConversationTitle,
getAutoRoutedAgentConversationPubkeys,
getHiddenAgentConversationMessageIds,
parseAgentConversationMarker,
readPersistedAgentConversations,

View File

@@ -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 {

View File

@@ -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 ?? [])