diff --git a/frontend/src/utils/suggestions/repo-suggestions.ts b/frontend/src/utils/suggestions/repo-suggestions.ts index ce1680ffcb..156931948d 100644 --- a/frontend/src/utils/suggestions/repo-suggestions.ts +++ b/frontend/src/utils/suggestions/repo-suggestions.ts @@ -13,14 +13,14 @@ const KEY_2 = "Auto-merge Dependabot PRs"; const VALUE_2 = `Please add a GitHub action to this repository which automatically merges pull requests from Dependabot so long as the tests are passing.`; const KEY_3 = "Fix up my README"; -const VALUE_3 = `"Please look at the README and make the following improvements, if they make sense: +const VALUE_3 = `Please look at the README and make the following improvements, if they make sense: * correct any typos that you find * add missing language annotations on codeblocks * if there are references to other files or other sections of the README, turn them into links * make sure the readme has an h1 title towards the top * make sure any existing sections in the readme are appropriately separated with headings -If there are no obvious ways to improve the README, make at least one small change to make the wording clearer or friendlier"`; +If there are no obvious ways to improve the README, make at least one small change to make the wording clearer or friendlier`; const KEY_4 = "Clean up my dependencies"; const VALUE_4 = `Examine the dependencies of the current codebase. Make sure you can run the code and any tests. diff --git a/openhands/agenthub/codeact_agent/codeact_agent.py b/openhands/agenthub/codeact_agent/codeact_agent.py index c0761c8f6a..fdc1d0414e 100644 --- a/openhands/agenthub/codeact_agent/codeact_agent.py +++ b/openhands/agenthub/codeact_agent/codeact_agent.py @@ -1,7 +1,6 @@ import json import os from collections import deque -from itertools import islice from litellm import ModelResponse @@ -110,7 +109,9 @@ class CodeActAgent(Agent): self.action_parser = CodeActResponseParser() self.prompt_manager = PromptManager( microagent_dir=os.path.join(os.path.dirname(__file__), 'micro'), - prompt_dir=os.path.join(os.path.dirname(__file__), 'prompts', 'default'), + prompt_dir=os.path.join( + os.path.dirname(__file__), 'prompts', 'default' + ), agent_skills_docs=AgentSkillsRequirement.documentation, ) diff --git a/openhands/agenthub/codeact_agent/prompts/tools/system_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/tools/system_prompt.j2 index 0d101b7c15..325392f2e6 100644 --- a/openhands/agenthub/codeact_agent/prompts/tools/system_prompt.j2 +++ b/openhands/agenthub/codeact_agent/prompts/tools/system_prompt.j2 @@ -4,4 +4,3 @@ You are OpenHands agent, a helpful AI assistant that can interact with a compute * When configuring git credentials, use "openhands" as the user.name and "openhands@all-hands.dev" as the user.email by default, unless explicitly instructed otherwise. * The assistant MUST NOT include comments in the code unless they are necessary to describe non-obvious behavior. - diff --git a/openhands/runtime/impl/eventstream/eventstream_runtime.py b/openhands/runtime/impl/eventstream/eventstream_runtime.py index be05c767f5..9f91d8e40e 100644 --- a/openhands/runtime/impl/eventstream/eventstream_runtime.py +++ b/openhands/runtime/impl/eventstream/eventstream_runtime.py @@ -1,8 +1,8 @@ import os -from pathlib import Path import tempfile import threading from functools import lru_cache +from pathlib import Path from typing import Callable from zipfile import ZipFile diff --git a/openhands/runtime/impl/runloop/runloop_runtime.py b/openhands/runtime/impl/runloop/runloop_runtime.py index ac5e0b098d..cc17106391 100644 --- a/openhands/runtime/impl/runloop/runloop_runtime.py +++ b/openhands/runtime/impl/runloop/runloop_runtime.py @@ -190,7 +190,7 @@ class RunloopRuntime(EventStreamRuntime): prebuilt='openhands', launch_parameters=LaunchParameters( available_ports=[self._sandbox_port], - resource_size_request="LARGE", + resource_size_request='LARGE', ), metadata={'container-name': self.container_name}, )