Skip to content

Commit

Permalink
Debugging falsy replay_enhance_prompt_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Dec 8, 2024
1 parent 2f470e5 commit 5b718e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openhands/events/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def handle_replay_enhance_observation(
) -> bool:
enhance_action_id = state.extra_data.get('replay_enhance_prompt_id')
if enhance_action_id is not None:
assert enhance_action_id
assert enhance_action_id, f'handle_replay_enhance_observation with replay_enhance_prompt_id={enhance_action_id}'
user_message: MessageAction | None = next(
(
m
Expand Down
4 changes: 2 additions & 2 deletions openhands/resolver/resolve_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ async def complete_runtime(
# for repo_url in repo_urls:
# repo_name = repo_url.split('/')[-1]
# repo_path = replay_dir / repo_name
# logger.info(f'[Replay] Preparing {repo_name} in {repo_path}')
# logger.info(f'[REPLAY] Preparing {repo_name} in {repo_path}')
# if not repo_path.exists():
# logger.info(
# f'[Replay] Repository {repo_name} not found in {replay_dir}, cloning...'
# f'[REPLAY] Repository {repo_name} not found in {replay_dir}, cloning...'
# )
# Repo.clone_from(repo_url, str(repo_path))

Expand Down
2 changes: 1 addition & 1 deletion openhands/runtime/builder/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def build(
rev_parse_cmd = ['git', 'ls-remote', repo_url, 'main']
replayapi_sha = subprocess.check_output(rev_parse_cmd).decode().split()[0]

logger.info('[Replay] REPLAYAPI_SHA=' + replayapi_sha)
logger.info('[REPLAY] REPLAYAPI_SHA=' + replayapi_sha)

buildx_cmd = [
'docker',
Expand Down

0 comments on commit 5b718e0

Please sign in to comment.