Skip to content

Commit

Permalink
fix bug of missing post (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilinHe authored May 14, 2024
2 parents 0abfd23 + 0217aa6 commit 3f61635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions taskweaver/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def _send_message(recipient: str, post: Post) -> Post:
)
while True:
if post.send_to == "Planner":
# add the original message to the chat round
chat_round.add_post(post)
# create a reply post
reply_post = Post.create(
message=post.message,
send_from="Planner",
Expand Down

0 comments on commit 3f61635

Please sign in to comment.