Skip to content

Commit b4beae7

Browse files
committed
refactor: rename syncToolParametersFromOpenCode to syncToolCache
1 parent 7603d49 commit b4beae7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/fetch-wrapper/handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { FetchHandlerContext, FetchHandlerResult, FormatDescriptor, PrunedI
22
import { type PluginState, ensureSessionRestored } from "../state"
33
import type { Logger } from "../logger"
44
import { buildPrunableToolsList, buildEndInjection } from "./prunable-list"
5-
import { syncToolParametersFromOpenCode } from "../state/tool-cache"
5+
import { syncToolCache } from "../state/tool-cache"
66

77
const PRUNED_CONTENT_MESSAGE = '[Output removed to save context - information superseded or no longer needed]'
88

@@ -71,7 +71,7 @@ export async function handleFormat(
7171
const sessionId = ctx.state.lastSeenSessionId
7272
const protectedSet = new Set(ctx.config.protectedTools)
7373
if (sessionId) {
74-
await syncToolParametersFromOpenCode(ctx.client, sessionId, ctx.state, ctx.toolTracker, protectedSet, ctx.logger)
74+
await syncToolCache(ctx.client, sessionId, ctx.state, ctx.toolTracker, protectedSet, ctx.logger)
7575
}
7676

7777
if (ctx.config.strategies.onTool.length > 0) {

lib/state/tool-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const MAX_TOOL_CACHE_SIZE = 500
1010
* This is the single source of truth for tool parameters, replacing
1111
* format-specific parsing from LLM API requests.
1212
*/
13-
export async function syncToolParametersFromOpenCode(
13+
export async function syncToolCache(
1414
client: any,
1515
sessionId: string,
1616
state: PluginState,

0 commit comments

Comments
 (0)