Update environment.py
Browse files241 unmodified lines24224324424524624724824924524624724824925025125225225325425523 unmodified lines279280281282282283284285241 unmodified lines
# =================================================================== def _get_observation(self) -> EnhancedObservation: """Return COMPLETE Markov state.""" # Compute author response: only after comment/question/fix does the author actually speak if self._last_action_type in ("write_comment", "ask_question", "propose_fix"): author_response = self._test_results or "" else: """Return COMPLETE Markov state.""" # Compute author response: only after comment/question/fix does the author actually speak if self._last_action_type in ("write_comment", "ask_question", "propose_fix"): author_response = self._test_results or "" else: author_response = ""
return EnhancedObservation( return EnhancedObservation( code_snippet=self._current_code, last_tool_output=self._test_results or "", author_response=author_response, # ← fixed23 unmodified lines
bug_description=self._bug_description, comments_count=len(self._comments), ) ) # =================================================================== def _compute_dense_reward( self, environment.py+7-7