You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cache): implement prompt prefix cache stabilization from upstream PR anomalyco#14743
- Add OPENCODE_EXPERIMENTAL_CACHE_STABILIZATION and OPENCODE_EXPERIMENTAL_CACHE_1H_TTL flags
- Split system prompt into 2 blocks (stable/dynamic) for better cache reuse
- Freeze date and instructions behind OPENCODE_EXPERIMENTAL_CACHE_STABILIZATION flag
- Remove Instance.directory from bash tool schema for cross-repo cache hits
- Sort skill tools alphabetically for deterministic ordering
- Add extended TTL support for first system cache marker
- Add cache audit display in TUI sidebar behind OPENCODE_CACHE_AUDIT env var
- Fix llama-server compatibility: join system blocks for non-Anthropic providers
- Update tests for all changed functionality
Co-authored-by: chand1012 <3521582+chand1012@users.noreply.github.com>
Copy file name to clipboardExpand all lines: packages/opencode/src/tool/bash.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Executes a given bash command in a persistent shell session with optional timeout, ensuring proper handling and security measures.
2
2
3
-
All commands run in ${directory} by default. Use the `workdir` parameter if you need to run a command in a different directory. AVOID using `cd <directory> && <command>` patterns - use `workdir` instead.
3
+
All commands run in the current working directory by default. Use the `workdir` parameter if you need to run a command in a different directory. AVOID using `cd <directory> && <command>` patterns - use `workdir` instead.
4
4
5
5
IMPORTANT: This tool is for terminal operations like git, npm, docker, etc. DO NOT use it for file operations (reading, writing, editing, searching, finding files) - use the specialized tools for this instead.
0 commit comments