add local.sh Windows compatability

This commit is contained in:
Arnav Naval
2026-04-20 01:14:39 -05:00
parent 8d19cd64cf
commit 58c241442b
18 changed files with 214 additions and 98 deletions
@@ -55,7 +55,7 @@ def resolve_context_paths(context_paths: List[ContextPath]) -> str:
continue
if cp_type == "file" and os.path.isfile(path):
try:
with open(path, "r", errors="replace") as f:
with open(path, "r", encoding="utf-8", errors="replace") as f:
content: str = f.read(MAX_FILE_READ_BYTES)
sections.append(
f'<context_file path="{path}">\n{content}\n</context_file>'