Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/fetch-wrapper/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FetchHandlerContext, FetchHandlerResult, FormatDescriptor, PrunedI
import { type PluginState, ensureSessionRestored } from "../state"
import type { Logger } from "../logger"
import { buildPrunableToolsList, buildEndInjection } from "./prunable-list"
import { syncToolParametersFromOpenCode } from "../state/tool-cache"
import { syncToolCache } from "../state/tool-cache"

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

Expand Down Expand Up @@ -71,7 +71,7 @@ export async function handleFormat(
const sessionId = ctx.state.lastSeenSessionId
const protectedSet = new Set(ctx.config.protectedTools)
if (sessionId) {
await syncToolParametersFromOpenCode(ctx.client, sessionId, ctx.state, ctx.toolTracker, protectedSet, ctx.logger)
await syncToolCache(ctx.client, sessionId, ctx.state, ctx.toolTracker, protectedSet, ctx.logger)
}

if (ctx.config.strategies.onTool.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion lib/state/tool-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const MAX_TOOL_CACHE_SIZE = 500
* This is the single source of truth for tool parameters, replacing
* format-specific parsing from LLM API requests.
*/
export async function syncToolParametersFromOpenCode(
export async function syncToolCache(
client: any,
sessionId: string,
state: PluginState,
Expand Down