Skip to content

feat(sharing): carry a shared agent's mascot and services to the teammate's invite list - #49194

Merged
Jinwoo-H merged 1 commit into
mainfrom
share-invite-look-contract
Nov 25, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
share-invite-look-contract

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When someone shares an agent with a teammate, the teammate's invite shows a plain letter instead of the agent's mascot, because the mascot never leaves the owner's computer. This adds the mascot, and the services the agent works in, to what Orca Cloud passes along.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​26 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​23

What Changed

The connector contract only:

  • agentCard (optional) on an agent entry in the owner's hello: { mascot?, color?, outfit?, services? }. Each value is a short id (at most 32 characters). services is a list of at most 8 ids.
  • The same agentCard on each /v1/shares/mine entry, passed through from the owner's hello.
  • The unused avatarUrl on /mine entries is removed. No cloud ever sent it, and no desktop reads it once the stacked desktop change lands.
  • New limits: maxAgentCardIdLength (32) and maxAgentCardServices (8).

A card that doesn't parse becomes undefined (.catch(undefined)). It never rejects the hello or the list it rides on, so a newer desktop's values can't break an older cloud's hello, and a newer cloud's values can't break an older desktop's list.

Why

The cloud pins the contract from a public orca commit on main, so the contract has to land on main before the cloud can store and return the card. This follows #48737 (purpose and decline). The desktop half is stacked on the sharing branch, and the cloud half pins this PR's merge commit.

Ids rather than a picture URL, because the mascots ship with the app: a teammate's Orca draws the same mascot, color and outfit locally. An uploaded picture stays on the owner's computer.

Linked Issue

Design item 484 (shared agents).

Visual Proof

N/A: contract only. The row and dialog screenshots are on the stacked desktop PR.

Testing

  • share-messages.test.ts: a card passes through the hello and /mine unchanged. A missing card is undefined. An over-long id, a non-list services and too many services each drop only the card, and the hello or list still parses.
  • Ran in the cloud's assembled workspace (pinned to this commit): the connector-contract suite (59 tests) and tsc --noEmit pass.

Performance

None, because this only adds an optional object of a few short ids per shared agent to the hello and the share list (under 400 bytes at the caps), parsed where those messages are already parsed.

Risk

Level: Low. Every field is optional, and a bad card is dropped rather than failing its message. Removing avatarUrl is safe: no cloud writes it. Back out with a plain revert.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The connector contracts add a bounded AgentCardSchema. ConnectorBotSchema now requires an agent card. The /mine share entry replaces avatarUrl with agent-card data. Parsing tests cover valid, absent, and invalid optional cards.

Merge Risk: Minimal · up to edcf2

This change adds an optional agent card to the connector hello and share listings, and invalid cards are dropped without rejecting the containing message. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the feature: a shared agent's mascot and services now reach the teammate's invite list. The changeset adds an optional agentCard (mascot, color, outfit, services) to the owner's hello …
Description check Passed The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk. It explains the agentCard shape, the limits, the .catch(undefined) behav…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the feature: a shared agent's mascot and services now reach the teammate's invite list. The changeset adds an optional agentCard (mascot, color, outfit, services) to the owner's hello and to /v1/shares/mine entries, and it removes the unused avatarUrl field. The title covers the main change, though it does not mention the contract-only scope or the avatarUrl removal, which is acceptable.

Full details: Description check

Explanation

The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk. It explains the agentCard shape, the limits, the .catch(undefined) behavior, the avatarUrl removal, and the testing done. Gaps: the Linked Issue section cites 'Design item 484' rather than a GitHub issue reference with 'Fixes #'; the Testing checklist items for manual testing and the anti-pattern check are unticked or unaddressed; the Risk level is stated but the AI Disclosure and Review sections are empty; the Agent skill upstream boundary checkbox is not ticked. The core content is complete, so the check passes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2516b61f-9904-4066-b529-b5dbc8e04572
Commits

Reviewing files that changed from the base of the PR and between ebd7a8b and edcf274.

Files selected for processing: 4

  • cloud/packages/connector-contract/src/connector-limits.ts
  • cloud/packages/connector-contract/src/hello-messages.ts
  • cloud/packages/connector-contract/src/share-messages.test.ts
  • cloud/packages/connector-contract/src/share-messages.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@Jinwoo-H
Jinwoo-H merged commit 80c1a54 into main Nov 25, 2026
29 checks passed
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