You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(sharing): carry a shared agent's mascot and services to the teammate's invite list - #49194
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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).servicesis a list of at most 8 ids.agentCardon each/v1/shares/mineentry, passed through from the owner's hello.avatarUrlon/mineentries is removed. No cloud ever sent it, and no desktop reads it once the stacked desktop change lands.maxAgentCardIdLength(32) andmaxAgentCardServices(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/mineunchanged. A missing card isundefined. An over-long id, a non-listservicesand too many services each drop only the card, and the hello or list still parses.tsc --noEmitpass.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
avatarUrlis safe: no cloud writes it. Back out with a plain revert.