Skip to content

Commit fba25a5

Browse files
authored
Update agent.py
1 parent ba7e4ea commit fba25a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python_agent_harness/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def compact(self) -> bool:
267267
)
268268
system = read_prompt_file("compact.md")
269269
resp, _ = self.session.client.chat_sync(
270-
[Message(role="user", content=conversation)], system=system
270+
[Message(role="user", content=conversation)], system=system,
271+
cancel_check=self._is_cancelled,
271272
)
272273
summary = resp.text()
273274
if not summary:

0 commit comments

Comments
 (0)