Skip to content

Polish agent sharing and snapshots#1852

Open
klopez4212 wants to merge 23 commits into
mainfrom
kennylopez-agent-menu-share-export
Open

Polish agent sharing and snapshots#1852
klopez4212 wants to merge 23 commits into
mainfrom
kennylopez-agent-menu-share-export

Conversation

@klopez4212

@klopez4212 klopez4212 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace catalog and snapshot menu actions with a focused Share flow for people, links, memory scope, and export
  • simplify PNG-first export controls and animate memory-warning layout changes
  • render shared agents as native attachments with clear names, attribution, download, and Add agent actions

Verification

  • pnpm check
  • pnpm test (2,828 passed)
  • desktop Tauri tests (1,427 passed)
  • pnpm run build
  • focused Playwright coverage for sharing, export, copied-link cards, and recipient attachments (4 passed)

Screenshots

Share agent

Invite people, choose the agent and memory scope, or copy a workspace link.

Share agent

Export agent

Choose memory scope and PNG or JSON before exporting.

Export agent

Shared agent attachment

Received agents use the native attachment treatment with Download and Add agent actions.

Shared agent attachment

klopez4212 added a commit that referenced this pull request Jul 14, 2026
@klopez4212 klopez4212 requested a review from wpfleger96 July 14, 2026 14:12
@klopez4212 klopez4212 marked this pull request as ready for review July 14, 2026 14:12
@klopez4212 klopez4212 requested a review from a team as a code owner July 14, 2026 14:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f40799ea6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/PersonaShareDialog.tsx Outdated
Comment thread desktop/src/features/agents/ui/usePersonaActions.ts Outdated

@wpfleger96 wpfleger96 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Kenny — the visual direction here is genuinely good. The share dialog, the people picker, and the native attachment card for recipients are all a clear step up, and I'd like to keep the design as-is. But a set of safety behaviors the old send flow deliberately enforced got dropped on the way to the new UI, and a couple of capabilities lost parity, so I'm requesting changes before this lands.

To set scope: renames and reorganizations are all fine — folding Export snapshot into Share, the menu restructure, etc. The asks below are about capability and safety parity, not naming.

Blocking (details inline):

  1. Memory-bearing shares upload plaintext agent memory with no confirmation step, and the link footer makes an access claim the relay doesn't actually enforce.
  2. handleSend() bypasses the guarded send pipeline entirely (timeout, moderation-DM fail-closed, destination eligibility, double-send guard).
  3. The recipient card now renders sender-controlled text as the agent's identity before any verification, plus a spoofable "Shared by" attribution.
  4. ~1,800 lines of the old send stack are left in-tree unreachable, while the 17 E2E tests that pinned the old safety contract were deleted.
  5. Catalog visibility becomes unmanageable zombie state (writer deleted, reader kept).

One capability question, non-blocking if intentional: channel sharing is gone (people→DM only now) — flagged inline.

One scope note for reviewers: this PR doesn't touch team sharing/export at all — team-managed personas gain the new Share item, but it shares a single agent snapshot.

Comment thread desktop/src/features/agents/ui/PersonaShareDialog.tsx Outdated
Comment thread desktop/src/features/agents/ui/PersonaShareDialog.tsx Outdated
Comment thread desktop/src/shared/ui/markdownFileCard.ts
Comment thread desktop/src/features/messages/ui/MessageRow.tsx Outdated
Comment thread desktop/src/features/agents/ui/AgentSnapshotSendDialog.tsx Outdated
Comment thread desktop/src/features/agents/ui/usePersonaActions.ts Outdated
Comment thread desktop/src/features/agents/ui/PersonaShareDialog.tsx Outdated
@klopez4212 klopez4212 requested a review from wpfleger96 July 14, 2026 16:00

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0be6850eae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/PersonaShareDialog.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 86df762b01

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/messages/lib/imetaMediaMarkdown.ts
@klopez4212 klopez4212 force-pushed the kennylopez-agent-menu-share-export branch from 86df762 to 89460a4 Compare July 14, 2026 16:58

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a56bc114d5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/PersonaShareDialog.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b013c095c2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/messages/lib/agentSnapshotClipboard.ts

@wesbillman wesbillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Code pass is clean at ed82a137e: the latest hardening addresses the prior send-concurrency, live destination eligibility, attribution, stale-DM, edit-label, pending-close, memory-confirmation, and clipboard-validation findings. CI is green.

I am withholding approval because the head no longer contains current main and GitHub now reports the PR as conflicting. The overlap includes agent snapshot/message rendering paths changed by #1846. Please rebase/merge current main, resolve the conflicts, and rerun CI; then this is ready for a final approval gate.

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