Skip to content

Commit

Permalink
Adding back the reset of the repository before we send the response back
Browse files Browse the repository at this point in the history
* This was causing bugs on the front end, where the files being read from
  disk, were not the reset versions, and therefore the patches were
failing.

* The internals of the reset, should still allow for multiple calls,
  this should not hurt anything and we still get the benifit of
resetting on exception.

Signed-off-by: Shawn Hurley <shawn@hurley.page>
  • Loading branch information
shawn-hurley committed Feb 19, 2025
1 parent 47ee50b commit 94cd96c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kai/rpc_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ def get_codeplan_agent_solution(
overall_result.diff = diff[1] + diff[2]

chatter.get().chat_simple("Finished!")
app.rcm.reset(agent_solution_snapshot)

server.send_response(
id=id,
Expand Down

0 comments on commit 94cd96c

Please sign in to comment.