PAIR-code / PAIR-code/deliberate-lab

Adjust system messages to better record 'left the chat' information

Open
#867 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

runtime:agents stale
Dominant language
TypeScript
Stars
96
Forks
40
Avg merge
2d 11h
Merged PRs (30d)
20

Description

In #866, we added a conditional to make sure agent participants don't respond to UserType.SYSTEM messages where the sender ID matches because right now, those messages are always "[Participant A] left the chat."

However, this may not always be the case. We should instead capture "this is a 'left the chat' message" in the system message.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the conditional introduced in PR #866 and trace where UserType.SYSTEM messages are created and consumed. Confirm how the message type distinguishes a participant leaving the chat, then verify that agent participants no longer rely on matching sender IDs and that other system messages retain their intended behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.