Skip to content

fix(desktop): reuse team agent identities - #7469

Open
dpwai-admins wants to merge 1 commit into
block:mainfrom
dpwai-admins:fix/team-deploy-reuse-agent-identity
Open

fix(desktop): reuse team agent identities#7469
dpwai-admins wants to merge 1 commit into
block:mainfrom
dpwai-admins:fix/team-deploy-reuse-agent-identity

Conversation

@dpwai-admins

@dpwai-admins dpwai-admins commented Sep 8, 2026

Copy link
Copy Markdown

Summary

  • Reuse a persona-backed managed agent when it is already attached to the target channel.
  • Refresh the batch reuse context after every successful attach so repeated personas cannot mint twice in one deployment.
  • Keep explicit forceNewInstance requests working.
  • Remove the unconditional fresh-instance flag from Deploy team to channel.

Closes #3639.

This is a focused replacement for the desktop portion of stale/conflicting #3646. It also preserves the current access-policy reconciliation when an existing agent is reused.

Validation

  • 44 focused agent reuse/team deployment tests passed.
  • TypeScript typecheck passed.
  • Desktop lint and static checks passed.
  • Full Desktop suite on commit 28e74bb: 6,454/6,455 passed.
  • The sole failing useKnownAgentPubkeys timing assertion also fails unchanged when run alone on clean main at 3c7f288 (same expected/actual ordering), so it is pre-existing and outside this patch.

Make team deployment idempotent for persona-backed agents already attached to a channel and refresh batch reuse context after every successful attach.

Co-authored-by: João Vitor Balzer <joaobalzer@gmail.com>
Signed-off-by: João Vitor Balzer <joaobalzer@gmail.com>
@dpwai-admins
dpwai-admins requested a review from a team as a code owner September 8, 2026 00:29
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 3c7f288c60d67df78577b237e27c3dfc8831aaa1...28e74bbf3a24ba9e58b3662a8f4793f6f362e3b0.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 28e74bbf3a24ba9e58b3662a8f4793f6f362e3b0 to authorize a new review.
Any previous review applies only to its recorded range.

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.

[Bug] Deploy team to channel force-mints new agent keypair per persona (bypasses reuse)

2 participants