Skip to content

Commit 6bcf0c7

Browse files
committed
fix
1 parent 53190b6 commit 6bcf0c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/state/tool-cache.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export async function syncToolCache(
1717
logger.info("Syncing tool parameters from OpenCode messages")
1818

1919
state.nudgeCounter = 0
20+
state.toolParameters.clear()
2021

2122
for (const msg of messages) {
2223
for (const part of msg.parts) {
@@ -47,9 +48,6 @@ export async function syncToolCache(
4748
)
4849
}
4950
}
50-
51-
// logger.info(`nudgeCounter=${state.nudgeCounter}, lastToolPrune=${state.lastToolPrune}`)
52-
5351
trimToolParametersCache(state)
5452
} catch (error) {
5553
logger.warn("Failed to sync tool parameters from OpenCode", {

0 commit comments

Comments
 (0)