MCPcopy Create free account
hub / github.com/codeaashu/claude-code / findRawIndex

Function findRawIndex

src/screens/REPL.tsx:3751–3754  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

3749 // Not memoized — hook stores caps via ref, reads latest closure at dispatch.
3750 // 24-char prefix: deriveUUID preserves first 24, renderable uuid prefix-matches raw source.
3751 const findRawIndex = (uuid: string) => {
3752 const prefix = uuid.slice(0, 24);
3753 return messages.findIndex(m => m.uuid.slice(0, 24) === prefix);
3754 };
3755 const messageActionCaps: MessageActionCaps = {
3756 copy: text =>
3757 // setClipboard RETURNS OSC 52 — caller must stdout.write (tmux side-effects load-buffer, but that's tmux-only).

Callers 1

REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected