easy-coding-harness 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import os
4
4
  from pathlib import Path
5
5
  import sys
6
6
 
7
- from easy_coding_state import snapshot_state
7
+ from easy_coding_state import load_session, snapshot_state
8
8
 
9
9
 
10
10
  def configure_stdio() -> None:
@@ -54,7 +54,11 @@ def main() -> int:
54
54
  if root is None:
55
55
  return 0
56
56
 
57
- state = snapshot_state(root)
57
+ session = load_session(root)
58
+ if session and session.get("harness_disabled") is True:
59
+ return 0
60
+
61
+ state = snapshot_state(root, session=session)
58
62
  task_id = state.get("current_task")
59
63
  context = [
60
64
  "[easy-coding:subagent-guard]",