Skip to content

fix(desktop): refresh agent directory after channel invite - #6422

Draft
ScaleLeanChris wants to merge 1 commit into
block:mainfrom
ScaleLeanChris:codex/fix-6380-agent-invite-refresh
Draft

fix(desktop): refresh agent directory after channel invite#6422
ScaleLeanChris wants to merge 1 commit into
block:mainfrom
ScaleLeanChris:codex/fix-6380-agent-invite-refresh

Conversation

@ScaleLeanChris

Copy link
Copy Markdown

Summary

  • refresh the authoritative relay-agent directory after a successful bot channel addition
  • leave human and failed invitation behavior unchanged
  • extend the existing members-sidebar regression through invite to immediate @mention

Why

Desktop refreshed channel membership after an invite, but it left the cached relay-agent directory stale. Mention eligibility reads that directory, so a newly invited remote agent stayed unavailable until a later poll.

Security and compatibility

This does not optimistically authorize the agent. The composer admits it only after the relay-directory refetch confirms the new channel membership. Existing human invites and failed bot invites do not trigger the extra refresh.

Related work

Addresses the Desktop portion of #6380.

Controlling work order: BAC-110

Testing

  • focused Playwright regression: pnpm --dir desktop exec playwright test --project=smoke tests/e2e/channels.spec.ts --grep 'members sidebar can invite relay-authorized agents' (1 passed)
  • full repository gate: just ci (passed)
  • no visual UI change, so no screenshot is needed

After relay acceptance, the picker is right here, right now instead of waiting for the next poll.

Signed-off-by: ScaleLeanChris <chris@scalelean.com>
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.

1 participant