Skip to content

Commit e76442e

Browse files
authored
fix CI only bug for CI reflection (microsoft#199)
1 parent b8e30ad commit e76442e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

taskweaver/session/session.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,17 @@ def _send_message(recipient: str, post: Post) -> Post:
157157
send_from="Planner",
158158
send_to="CodeInterpreter",
159159
)
160-
post = _send_message("CodeInterpreter", post)
160+
while True:
161+
if post.send_to == "Planner":
162+
reply_post = Post.create(
163+
message=post.message,
164+
send_from="CodeInterpreter",
165+
send_to="User",
166+
)
167+
chat_round.add_post(reply_post)
168+
break
169+
else:
170+
post = _send_message("CodeInterpreter", post)
161171

162172
self.round_index += 1
163173
chat_round.change_round_state("finished")

0 commit comments

Comments
 (0)