Skip to content

The agent that grows with you

fix(environments): restore Protocol/IO/re imports lost in upstream merge

ethernet68ff0d036157
diff --git a/tools/environments/base.py b/tools/environments/base.py
index bee8567926d..fe55f263a8c 100644
--- a/tools/environments/base.py
+++ b/tools/environments/base.py
@@ -10,13 +10,14 @@ or a temp file (local). Cohesive pieces live in sibling modules (``base_output``
import json
import logging
import os
+import re
import shlex
import threading
import time
import uuid
from abc import ABC, abstractmethod
from pathlib import Path
-from typing import Callable, Iterable
+from typing import Callable, IO, Iterable, Protocol
from hermes_constants import get_hermes_home
from tools.interrupt import is_interrupted, is_thread_interrupted