mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
feat: 类型修复
This commit is contained in:
@@ -1058,6 +1058,7 @@ class Project {
|
||||
entrypoint: getEntrypoint(),
|
||||
cwd: getCwd(),
|
||||
sessionId,
|
||||
timestamp: new Date().toISOString(),
|
||||
version: VERSION,
|
||||
gitBranch,
|
||||
slug,
|
||||
@@ -2225,7 +2226,7 @@ export function checkResumeConsistency(chain: Message[]): void {
|
||||
for (let i = chain.length - 1; i >= 0; i--) {
|
||||
const m = chain[i]!
|
||||
if (m.type !== 'system' || m.subtype !== 'turn_duration') continue
|
||||
const expected = m.messageCount
|
||||
const expected = m.messageCount as number | undefined
|
||||
if (expected === undefined) return
|
||||
// `i` is the 0-based index of the checkpoint in the reconstructed chain.
|
||||
// The checkpoint was appended AFTER messageCount messages, so its own
|
||||
|
||||
Reference in New Issue
Block a user