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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
messages | Message[] | The full messages array. |
index | number | The index to check. |
Returns
Section titled “Returns”boolean
true if the message or its tool-pair partner is pinned.