MCPcopy Create free account
hub / github.com/anthropics/claude-code / keepBaseline

Function keepBaseline

mods/diff/hooks/register.ts:300–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 }
299
300 function keepBaseline() {
301 const pinned = backend
302
303 if (!pinned || polled.headKey !== '') {
304 return
305 }
306
307 void pinned
308 .headKeyOf()
309 .catch(() => '')
310 .then(key => {
311 const isFirst = backend === pinned && polled.headKey === ''
312
313 if (isFirst) {
314 polled.headKey = key
315 }
316 })
317 }
318
319 function startPoll(engine: Host, pinned: Backend.Backend) {
320 const readHeadKey = () => pinned.headKeyOf().catch(() => '')

Callers 2

showKeptFunction · 0.85
openPaneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected