MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isUndoContextEntry

Function isUndoContextEntry

apps/kimi-code/src/tui/commands/undo.ts:414–430  ·  view source on GitHub ↗
(entry: TranscriptEntry)

Source from the content-addressed store, hash-verified

412}
413
414function isUndoContextEntry(entry: TranscriptEntry): boolean {
415 switch (entry.kind) {
416 case 'user':
417 case 'assistant':
418 case 'tool_call':
419 case 'thinking':
420 case 'skill_activation':
421 case 'plugin_command':
422 case 'cron':
423 return true;
424 case 'status':
425 case 'goal':
426 return entry.turnId !== undefined;
427 case 'welcome':
428 return false;
429 }
430}
431
432function findUndoAnchorComponentIndex(
433 children: readonly Component[],

Callers 2

undoByCountFunction · 0.85
isUndoContextComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected