Skip to content

Add attributes inspector and explicit dispatch support#144

Merged
bcherry merged 25 commits intomainfrom
bcherry/attributes
May 29, 2025
Merged

Add attributes inspector and explicit dispatch support#144
bcherry merged 25 commits intomainfrom
bcherry/attributes

Conversation

@bcherry
Copy link
Copy Markdown
Contributor

@bcherry bcherry commented May 28, 2025

This builds on #142 and adds:

  • Agent live attribute and metadata inspector
  • Agent name support for explicit dispatch
  • Edit user attributes after connection
  • UX and style updates throughout (this new stuff is mostly collapsed by default to avoid a huge sidebar that obscures camera and mic. i collapsed rpc into a new section as well)
image

@bcherry bcherry requested review from longcw, lukasIO and mattherzog May 28, 2025 19:17
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agent-app-95ln ❌ Failed (Inspect) May 29, 2025 10:23pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
agent-playground-kitt ⬜️ Ignored (Inspect) Visit Preview May 29, 2025 10:23pm

@MahmoudHemaid
Copy link
Copy Markdown
Contributor

MahmoudHemaid commented May 28, 2025

Hello @bcherry, I've created a PR to support editing participant attributes and metadata before connecting, could you take a look on it?

@bcherry
Copy link
Copy Markdown
Contributor Author

bcherry commented May 29, 2025

@MahmoudHemaid thanks for the PR - I've merged it to main and then made some improvements in here. great work this is now very nice!

Comment thread pnpm-lock.yaml Outdated
const { localParticipant } = useLocalParticipant();

// Update local attributes when props change
useEffect(() => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the purpose of running this effect ?

Copy link
Copy Markdown
Contributor Author

@bcherry bcherry May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a one-way sync from the parent, since the local one can have unsaved changes so doesn't directly bind to the parent attributes. not sure if its the best way, and also i don't currently have the parent actually observing attributes live either (for user, where they're editable)

Comment thread src/components/config/AttributesInspector.tsx
Comment thread src/components/config/AttributesInspector.tsx
Comment thread src/components/playground/Playground.tsx Outdated
Comment thread src/components/config/AttributesInspector.tsx Outdated
@bcherry bcherry merged commit 0218a5a into main May 29, 2025
5 of 6 checks passed
@bcherry bcherry deleted the bcherry/attributes branch May 29, 2025 22:26
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.

3 participants