Lint fixes

This commit is contained in:
Tim O'Farrell 2025-12-12 11:02:36 -07:00
parent 3498d31215
commit 73c6216f55
2 changed files with 5 additions and 3 deletions

View File

@ -230,7 +230,7 @@ class LiveStatusAppConversationService(AppConversationServiceBase):
# Setup working dir based on grouping
working_dir = sandbox_spec.working_dir
if self.sandbox_grouping_strategy != SandboxGroupingStrategy.NO_GROUPING:
working_dir = f"{working_dir}/{conversation_id.hex}"
working_dir = f'{working_dir}/{conversation_id.hex}'
# Run setup scripts
remote_workspace = AsyncRemoteWorkspace(

View File

@ -569,7 +569,9 @@ async def _finalize_delete_and_close_connections(
httpx_client: httpx.AsyncClient,
):
try:
num_conversations_in_sandbox = await _get_num_conversations_in_sandbox(sandbox_service, sandbox_id, httpx_client)
num_conversations_in_sandbox = await _get_num_conversations_in_sandbox(
sandbox_service, sandbox_id, httpx_client
)
if num_conversations_in_sandbox == 0:
await sandbox_service.delete_sandbox(sandbox_id)
await db_session.commit()
@ -595,7 +597,7 @@ async def _get_num_conversations_in_sandbox(
u for u in sandbox.exposed_urls if u.name == AGENT_SERVER
)
response = await httpx_client.get(
f"{agent_server_url.url}/api/conversations/count",
f'{agent_server_url.url}/api/conversations/count',
headers={'X-Session-API-Key': sandbox.session_api_key},
)
result = int(response.content)