fix(p1-07): dual-mode lazy import at the new runtime_objects failure site (#30, follows #168)

This commit is contained in:
Nick committed 2026-09-05 23:50:29 +01:00
1 parent dc99f1fac3
commit a3ae72d353
1 file changed
+8 -2
+8 -2
View File
@@ -1411,7 +1411,10 @@ I have tools to read, write, edit, search, lint, test, format, and commit code.
runtime_objects.append(outcome.to_dict())
response.runtime_objects = runtime_objects
except Exception as exc:
from .subsystem_health import record_failure
try:
from .subsystem_health import record_failure
except ImportError: # TUI-context top-level deploy (#168)
from rune.subsystem_health import record_failure
record_failure("runtime_objects", exc, tier=2)
@@ -1457,7 +1460,10 @@ I have tools to read, write, edit, search, lint, test, format, and commit code.
)
record_trace(trace_record)
except Exception as exc:
from .subsystem_health import record_failure
try:
from .subsystem_health import record_failure
except ImportError: # TUI top-level deploy (#168)
from rune.subsystem_health import record_failure
record_failure("inference_trace", exc, tier=2)