Skip to content

Commit

Permalink
Fix issue #4842: [Bug]: Suggestions set into the chat input at /app c…
Browse files Browse the repository at this point in the history
…ontain quotations
  • Loading branch information
openhands-agent committed Nov 12, 2024
1 parent 488a320 commit 6ec4f5d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions frontend/src/utils/suggestions/repo-suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions openhands/agenthub/codeact_agent/codeact_agent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
import os
from collections import deque
from itertools import islice

from litellm import ModelResponse

Expand Down Expand Up @@ -110,7 +109,9 @@ def __init__(
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,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" 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.
</IMPORTANT>

2 changes: 1 addition & 1 deletion openhands/runtime/impl/eventstream/eventstream_runtime.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion openhands/runtime/impl/runloop/runloop_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _create_new_devbox(self) -> DevboxView:
prebuilt='openhands',
launch_parameters=LaunchParameters(
available_ports=[self._sandbox_port],
resource_size_request="LARGE",
resource_size_request='LARGE',
),
metadata={'container-name': self.container_name},
)
Expand Down

0 comments on commit 6ec4f5d

Please sign in to comment.