Lock, not pin: the flag that keeps the model from rewriting a node

The badge reads LOCKED, the status line and messages say lock and unlock, p's
help says what it is and that it is not P, and the cascade says a locked node
was flagged, not rewritten. Pin now means only a pane's pin. The stored flag
and the op API keep the old name, pinned, so a live library keeps its locks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-16 02:03:28 -05:00
1 parent edc31aac9a
commit abf79c14cc
8 files changed
+21 -18

No files matched your search

+2 -2
View File
@@ -168,7 +168,7 @@ export function NoteView({ v, inNote }: { v: VNote; inNote: boolean }) {
const meta = (lens || stale || (v.id && snap.nodes[v.id].pinned)) && (
<span class="meta">
{lens}
{v.id && snap.nodes[v.id].pinned ? " · pinned" : ""}
{v.id && snap.nodes[v.id].pinned ? " · locked" : ""}
{stale ? " · stale" : ""}
</span>
);
@@ -354,7 +354,7 @@ export function Flags({ id }: { id: NodeId }) {
conflict && "conflict",
st.up && "sections changed",
st.down && "parent changed",
n.pinned && n.parent && "pinned",
n.pinned && n.parent && "locked",
].filter(Boolean) as string[];
if (!flags.length) return null;
return <span class={`flags${st.up || st.down || conflict ? " attn" : ""}`}>{flags.join(" · ")}</span>;