MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / close

Method close

server/services/spec_chat_session.py:60–69  ·  view source on GitHub ↗

Clean up resources and close the Claude client.

(self)

Source from the content-addressed store, hash-verified

58 self._client_entered: bool = False # Track if context manager is active
59
60 async def close(self) -> None:
61 """Clean up resources and close the Claude client."""
62 if self.client and self._client_entered:
63 try:
64 await self.client.__aexit__(None, None, None)
65 except Exception as e:
66 logger.warning(f"Error closing Claude client: {e}")
67 finally:
68 self._client_entered = False
69 self.client = None
70
71 async def start(self) -> AsyncGenerator[dict, None]:
72 """

Callers 15

_get_test_batchMethod · 0.45
get_ready_featuresMethod · 0.45
get_all_completeMethod · 0.45
get_passing_countMethod · 0.45
start_featureMethod · 0.45
start_feature_batchMethod · 0.45
_spawn_coding_agentMethod · 0.45
_on_agent_completeMethod · 0.45
run_loopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected