We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aebb9db commit 7875950Copy full SHA for 7875950
openhands-sdk/openhands/sdk/context/prompts/prompt.py
@@ -21,7 +21,9 @@ def _get_env(prompt_dir: str) -> Environment:
21
if not prompt_dir:
22
raise ValueError("prompt_dir is required")
23
# BytecodeCache avoids reparsing templates across processes
24
- cache_folder = os.path.join(prompt_dir, ".jinja_cache")
+ # Use user-specific cache directory to avoid permission issues
25
+ # in multi-user environments
26
+ cache_folder = os.path.join(os.path.expanduser("~"), ".openhands", "cache", "jinja")
27
os.makedirs(cache_folder, exist_ok=True)
28
bcc = FileSystemBytecodeCache(directory=cache_folder)
29
env = Environment(
0 commit comments