Skip to content

Commit 1a66a5e

Browse files
committed
cleanup
1 parent 0f53637 commit 1a66a5e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The notes/ directory is in the root of this project and is gitignored. It is intended for users to store their personal notes, ideas, or any other information they wish to keep private and not include in version control. You can create and manage your notes in this directory without worrying about them being tracked by Git.
2+
There is an opencode reference use repo cloned locally at /home/dan/.config/opencode/opencode/ , use it if you need to find any code information about opencode.

lib/state/tool-cache.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ const MAX_TOOL_CACHE_SIZE = 500
99
* Sync tool parameters from OpenCode's session.messages() API.
1010
* This is the single source of truth for tool parameters, replacing
1111
* format-specific parsing from LLM API requests.
12-
*
13-
* Also tracks new tool results for nudge injection, consolidating
14-
* what was previously done via format-specific trackNewToolResults().
1512
*/
1613
export async function syncToolParametersFromOpenCode(
1714
client: any,
@@ -42,7 +39,7 @@ export async function syncToolParametersFromOpenCode(
4239

4340
const id = part.callID.toLowerCase()
4441

45-
// Track tool results for nudge injection (replaces format-specific trackNewToolResults)
42+
// Track tool results for nudge injection
4643
if (tracker && !tracker.seenToolResultIds.has(id)) {
4744
tracker.seenToolResultIds.add(id)
4845
// Only count non-protected tools toward nudge threshold
@@ -51,10 +48,7 @@ export async function syncToolParametersFromOpenCode(
5148
}
5249
}
5350

54-
// Skip if already cached (optimization for parameter caching only)
5551
if (state.toolParameters.has(id)) continue
56-
57-
// Skip protected tools - they shouldn't be in the cache at all
5852
if (part.tool && protectedTools?.has(part.tool)) continue
5953

6054
const status = part.state?.status as ToolStatus | undefined

0 commit comments

Comments
 (0)