Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submitting space in human mode crashes container #748

Closed
klieret opened this issue Aug 29, 2024 · 0 comments · Fixed by #749
Closed

Submitting space in human mode crashes container #748

klieret opened this issue Aug 29, 2024 · 0 comments · Fixed by #749
Labels
🐛 bug Something isn't working

Comments

@klieret
Copy link
Member

klieret commented Aug 29, 2024

Reproduce

python run.py --model_name human --data_path /swe-agent-test-repo/problem_statements/1.md --repo_path swe-agent-test-repo --noprint_config --noskip_existing

then enter a blank space as command.

Result:

Traceback (most recent call last):
  File "/Users/fuchur/Documents/24/git_sync/SWE-agent/run.py", line 381, in main
    self.run(index)
  File "/Users/fuchur/Documents/24/git_sync/SWE-agent/run.py", line 365, in run
    info, trajectory = self.agent.run(
  File "/Users/fuchur/Documents/24/git_sync/SWE-agent/sweagent/agent/agents.py", line 811, in run
    thought, action, output = self.forward(observation, env.get_available_actions(), state)
  File "/Users/fuchur/Documents/24/git_sync/SWE-agent/sweagent/agent/agents.py", line 487, in forward
    thought, action, output = self.forward_with_error_check(observation, state)
  File "/Users/fuchur/Documents/24/git_sync/SWE-agent/sweagent/agent/agents.py", line 645, in forward_with_error_check
    return self.check_format_and_requery(self.forward_model(observation, state))
  File "/Users/fuchur/Documents/24/git_sync/SWE-agent/sweagent/agent/agents.py", line 547, in forward_model
    return self.model.query(self.local_history)
  File "/Users/fuchur/Documents/24/git_sync/SWE-agent/sweagent/agent/models.py", line 853, in query
    command_name = action.split()[0] if action else ""
IndexError: list index out of range
@klieret klieret added the 🐛 bug Something isn't working label Aug 29, 2024
@klieret klieret changed the title Submitting as command crashes container Submitting space in human mode crashes container Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant