calm-artist-7206
09/06/2025, 4:55 PMnutritious-balloon-65098
09/06/2025, 4:56 PMnutritious-balloon-65098
09/06/2025, 5:02 PM_start_agent_loop()
◦ Line 763
◦ Calls private method from StandaloneConversationManager
2. LegacyConversationManager → _get_runtime()
◦ Line 289
◦ Calls private method from conversation manager
3. SaasNestedConversationManager → _notify_on_llm_retry()
◦ Line 722
◦ Accesses private method from session object
4. SaaSGitHubService → _make_request() (2 instances)
◦ Line 89 & Line 119
◦ Calls private method from GitHubService base
5. SaaSGitLabService → _make_request() (6+ instances)
◦ Multiple lines: 94, 217, 292, etc.
◦ Calls private method from GitLabService base
Architecture Context
The enterprise code extends OpenHands through inheritance, where enterprise classes override and extend OSS functionality. These private method calls represent tight coupling between enterprise and core OpenHands implementations, particularly in conversation management and Git service integrations.
No code changes were made - this was purely an analysis task to identify existing private method usage patterns in the enterprise codebase.
<sub>View full conversation</sub>calm-artist-7206
09/06/2025, 5:07 PMnutritious-balloon-65098
09/06/2025, 5:08 PMnutritious-balloon-65098
09/06/2025, 5:10 PMsuper()._start_agent_loop()
2. LegacyConversationManager (1 call):
◦ Line 289: self.conversation_manager._get_runtime()
3. SaasNestedConversationManager (1 call):
◦ Line 722: session._notify_on_llm_retry
4. SaaSGitHubService (2 calls):
◦ Line 89: self._make_request()
◦ Line 119: self._make_request()
5. SaaSGitLabService (10 calls):
◦ Line 94: self._make_request()
◦ Line 217: self._make_request()
◦ Line 292: self._make_request()
◦ Line 326: self._make_request()
◦ Line 363: self._make_request()
◦ Line 386: self._make_request()
◦ Line 460: self._make_request()
◦ Line 479: self._make_request()
◦ Line 513: self._make_request()
◦ Line 527: self._make_request()
Key Insight
You're absolutely correct - this represents a fundamental architectural violation where enterprise code directly accesses OpenHands' internal implementation details that were never intended as public API. This creates significant maintenance burden and architectural fragility.
No code changes were made - this was purely an analysis task to identify and document all private method usage patterns in the enterprise codebase.
<sub>View full conversation</sub>calm-artist-7206
09/06/2025, 6:32 PMnutritious-balloon-65098
09/06/2025, 6:33 PMnutritious-balloon-65098
09/06/2025, 6:35 PMself.conversation_manager._get_runtime() - Calls private method on SaasNestedConversationManager instance
2. SaasNestedConversationManager (1 call):
◦ Line 722: session._notify_on_llm_retry - Calls private method on OpenHands Session object
3. SaaSGitHubService (2 calls):
◦ Line 89: self._make_request()
◦ Line 119: self._make_request()
4. SaaSGitLabService (10 calls):
◦ Line 94: self._make_request()
◦ Line 217: self._make_request()
◦ Line 292: self._make_request()
◦ Line 326: self._make_request()
◦ Line 363: self._make_request()
◦ Line 386: self._make_request()
◦ Line 460: self._make_request()
◦ Line 479: self._make_request()
◦ Line 513: self._make_request()
◦ Line 527: self._make_request()
Excluded (Legitimate Pattern):
• ClusteredConversationManager Line 763: super()._start_agent_loop() - This is a legitimate call to parent's private method implementation where the subclass overrides the method.
Key Architectural Concern
These 14 instances represent direct access to OpenHands' internal implementation details that were never intended as public API, creating significant architectural fragility and maintenance burden between the enterprise and core OpenHands codebases.
No code changes were made - this was purely an analysis task to identify and document all private method usage patterns with proper MRO consideration.
<sub>View full conversation</sub>nutritious-balloon-65098
09/06/2025, 9:27 PMnutritious-balloon-65098
09/06/2025, 9:38 PMnutritious-balloon-65098
09/06/2025, 9:46 PMcalm-artist-7206
09/06/2025, 10:18 PMnutritious-balloon-65098
09/06/2025, 10:18 PMnutritious-balloon-65098
09/06/2025, 10:26 PMcalm-artist-7206
09/06/2025, 10:48 PMnutritious-balloon-65098
09/06/2025, 10:48 PMnutritious-balloon-65098
09/06/2025, 10:50 PMcalm-artist-7206
09/06/2025, 11:02 PM>> 5) Direct HTTP helpers on provider services• Pattern: enterprise services sometimes reach
_make_request on provider classes.
• Problem: private transport leakage; bypasses validation/interceptors.
• Public replacement:
◦ Public GitService methods cover supported actions; extension points via request middlewares or on_before_request/after_response hooks.
Explain this: bypasses validators/interceptors? Give me links to what you mean. And verify implementation in enterprise, does it actually use such in the execution flow?
2. You said:
>> Replacement: Enterprise overrides selected OH implementations via dynamic imports (e.g., conversation manager, stores, auth).“e.g.” is not good enough. Find them all, list them, link the initial point where it loads each. 3. You said:
>> Enterprise composes:◦ Patches MCP routes. Link to the source. What do you mean by patches routes? 4. You said enterprise adds routes for:
>> event webhooks, debuggingRead each route and tell me in a couple sentences what its execution flow does. Note: all links must be links on github. @nutritious-balloon-65098
nutritious-balloon-65098
09/06/2025, 11:03 PMnutritious-balloon-65098
09/06/2025, 11:12 PMnutritious-balloon-65098
09/07/2025, 5:26 AMnutritious-balloon-65098
09/07/2025, 5:33 AMnutritious-balloon-65098
09/07/2025, 5:48 AMcalm-artist-7206
09/07/2025, 7:09 AMnutritious-balloon-65098
09/07/2025, 7:09 AMcalm-artist-7206
09/07/2025, 7:14 AMnutritious-balloon-65098
09/07/2025, 7:14 AMnutritious-balloon-65098
09/07/2025, 7:16 AM