From db88b6c97c7000c6bf4a320bfc676dda09eba3eb Mon Sep 17 00:00:00 2001 From: joaomarcos Date: Mon, 31 Aug 2026 13:25:30 -0300 Subject: [PATCH] refactor(state): drop unused is_explicit_fork_child wrapper teknium flagged it as scope creep on PR #98691 review: no callers in the diff. _is_explicit_fork_child_row (the row-based helper actually used) is unchanged. --- hermes_state.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hermes_state.py b/hermes_state.py index b4c4d5dd6d..db21849740 100644 --- a/hermes_state.py +++ b/hermes_state.py @@ -13955,10 +13955,6 @@ class SessionDB(SessionSearchMixin, SessionSchemaMixin, SessionPortabilityMixin) # Export and cleanup # ========================================================================= - def is_explicit_fork_child(self, session_id: str) -> bool: - session = self.get_session(session_id) - return bool(session and self._is_explicit_fork_child_row(session)) - def _is_explicit_fork_child_row(self, session: Dict[str, Any]) -> bool: """True when ``session`` is a branch, delegate, or tool child of its parent.