fmt(js): npm run fix on merge (#98265)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-08-30 01:45:35 +00:00
committed by GitHub
parent c0875ba503
commit 60a4442826
2 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,14 @@
import { describe, expect, it } from 'vitest'
import { latestSessionTodos, mergeTodoItems, nextTodosFromToolEvent, parseTodoPatch, parseTodoRevision, parseTodos, todoTree } from './todos'
import {
latestSessionTodos,
mergeTodoItems,
nextTodosFromToolEvent,
parseTodoPatch,
parseTodoRevision,
parseTodos,
todoTree
} from './todos'
describe('todoTree', () => {
it('orders parents before children with depths', () => {

View File

@@ -166,6 +166,7 @@ export function mergeTodoItems(current: readonly TodoItem[], patch: readonly Tod
if (index === undefined) {
next.push({ content: item.content?.trim() || '(no description)', id: item.id, status: item.status })
indexById.set(item.id, next.length - 1)
continue
}