Skip to content

Commit

Permalink
WIP: zooming in on the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Jan 17, 2025
1 parent c55dfcc commit 24b1a03
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion openhands/agenthub/codeact_agent/function_calling.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def response_to_actions(response: ModelResponse, state: State) -> list[Action]:
)
elif tool_call.function.name == 'submit-hypothesis':
action = ReplayPhaseUpdateAction(
new_phase=ReplayDebuggingPhase.Edit
new_phase=ReplayDebuggingPhase.Edit, info=json.dumps(arguments)
)
else:
raise ValueError(
Expand Down
3 changes: 2 additions & 1 deletion openhands/events/action/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ReplayPhaseUpdateAction(Action):
new_phase: ReplayDebuggingPhase

thought: str = ''
info: str = ''

action: str = ActionType.REPLAY_UPDATE_PHASE
runnable: ClassVar[bool] = True
Expand All @@ -77,5 +78,5 @@ def message(self) -> str:
return f'{self.__class__.__name__}: {self.new_phase}'

def __str__(self) -> str:
ret = f'{self.message}'
ret = f'[{self.message}] {self.info}'
return ret
4 changes: 2 additions & 2 deletions openhands/runtime/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def setup_initial_env(self) -> None:
self.add_env_vars(
{
'REPLAY_API_KEY': self.config.replay.api_key,
'REPLAY_DEV_MODE': os.environ['REPLAY_DEV_MODE'],
'REPLAY_ENABLE_TOOL_CACHE': os.environ['REPLAY_DEV_MODE'],
'REPLAY_DEV_MODE': os.environ.get('REPLAY_DEV_MODE', ''),
'REPLAY_ENABLE_TOOL_CACHE': os.environ.get('REPLAY_DEV_MODE', ''),
}
)
if self.config.replay.dir:
Expand Down
4 changes: 2 additions & 2 deletions replay_benchmarks/bolt/951/prompt.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
The `MapView` component's error handler causes an exception, which causes a blank screen.
The React app renders a blank screen.

Bug recording: https://app.replay.io/recording/replay-of-localhost8040--43a890bc-6f37-47e0-ba47-4d04827e4e44?commentId=&focusWindow=eyJiZWdpbiI6eyJwb2ludCI6IjAiLCJ0aW1lIjowfSwiZW5kIjp7InBvaW50IjoiNjE5ODMwNDM3NDkwODI1ODkxNjE3NDAyODEyNjQ5OTYzNTIiLCJ0aW1lIjozNTI1M319&point=59386895319809400363658457403890363&primaryPanel=debugger&secondaryPanel=console&time=30306&viewMode=dev
Bug recording: https://app.replay.io/recording/replay-of-localhost8040--43a890bc-6f37-47e0-ba47-4d04827e4e44

0 comments on commit 24b1a03

Please sign in to comment.