Skip to content

feat(conversation): tag the lines a phone relay said on its own - #497

Open
yuyixg wants to merge 1 commit into
SciSharp:mainfrom
yuyixg:fix/conversation-relay-line-labels
Open

yuyixg wants to merge 1 commit into
SciSharp:mainfrom
yuyixg:fix/conversation-relay-line-labels

Conversation

@yuyixg

@yuyixg yuyixg commented Nov 13, 2026

Copy link
Copy Markdown

Problem

With SciSharp/BotSharp#1491, a Twilio ConversationRelay call keeps the lines the relay says on its own in the conversation history, so the history shows what the caller heard. These lines are fillers, idle prompts, the goodbye before an idle hang-up, the apology for a failed turn, and a line said again after a cut-in. Each is labeled in message_label, for example twilio_relay_idle_prompt.

On the conversation page they appear under the agent's name like any other reply. A line said again looks like a duplicate reply, and an idle prompt such as "Are you still there?" looks like something the agent decided to say.

Change

conv-dialogs.svelte shows a small tag after the time on these lines: Filler, Idle prompt, Idle goodbye, Apology or Said again. A tooltip explains that the relay said the line on its own and it is kept as a record of what the caller heard.

  • Only the five relay labels get a tag; any other message_label is ignored.
  • The tag uses the same info badge style already on the page and has a text label, so it doesn't rely on color.
  • The new strings are in both en.json and zh.json.

Testing

Checked locally with vite dev, signed in as an admin user, against a onebrain backend running BotSharp#1491 and simulated relay calls. On the conversation page:

  • a line said after a cut-in shows Said again;
  • a call where the caller stayed silent shows Idle prompt twice, then Idle goodbye;
  • the agent's normal replies show no tag.

svelte-check and a production build were not run.

🤖 Generated with Claude Code

A Twilio ConversationRelay call now keeps the lines the relay says by itself (fillers, idle prompts, the idle goodbye,
the apology of a failed turn, a line said again after a cut-in) in the history, labeled in message_label. They show
under the agent's name, so a line said again looked like a duplicate reply and an idle prompt like the agent's own.
The conversation page now tags each with what it was (Filler, Idle prompt, Idle goodbye, Apology, Said again), with a
tooltip saying it was said by the relay and kept as a record of what the caller heard. Other labels are left alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants