Skip to content

Commit b1958e8

Browse files
committed
fix: remove misleading bookkeeping references from log messages
- Update log messages to reflect that we're no longer doing bookkeeping - Rename variable from currentAfterBookkeeping to currentAfterCheck - Make the code accurately describe what it's doing (race condition checks)
1 parent b357f4c commit b1958e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,17 +2593,17 @@ export class ClineProvider
25932593
const current = this.getCurrentTask()
25942594
if (current && current.instanceId !== originalInstanceId) {
25952595
this.log(
2596-
`[cancelTask] Skipping cancel bookkeeping and rehydrate: current instance ${current.instanceId} != original ${originalInstanceId}`,
2596+
`[cancelTask] Skipping rehydrate: current instance ${current.instanceId} != original ${originalInstanceId}`,
25972597
)
25982598
return
25992599
}
26002600

26012601
// Final race check before rehydrate to avoid duplicate rehydration
26022602
{
2603-
const currentAfterBookkeeping = this.getCurrentTask()
2604-
if (currentAfterBookkeeping && currentAfterBookkeeping.instanceId !== originalInstanceId) {
2603+
const currentAfterCheck = this.getCurrentTask()
2604+
if (currentAfterCheck && currentAfterCheck.instanceId !== originalInstanceId) {
26052605
this.log(
2606-
`[cancelTask] Skipping rehydrate after bookkeeping: current instance ${currentAfterBookkeeping.instanceId} != original ${originalInstanceId}`,
2606+
`[cancelTask] Skipping rehydrate after final check: current instance ${currentAfterCheck.instanceId} != original ${originalInstanceId}`,
26072607
)
26082608
return
26092609
}

0 commit comments

Comments
 (0)