Skip to content

isPinned

function isPinned(messages, index): boolean;

Defined in: src/conversation-manager/pin-message.ts:13

Check if a message is pinned, including tool-pair partner protection. Returns true if the message at index is pinned, or if it is the adjacent tool-pair partner (toolUse/toolResult) of a pinned message, matched by toolUseId.

ParameterTypeDescription
messagesMessage[]The full messages array.
indexnumberThe index to check.

boolean

true if the message or its tool-pair partner is pinned.