The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(bot-mode): New Bot on another machine can start fresh instead of forcing a clone of its default
teknium11350427ffd48
diff --git a/apps/desktop/src/plugins/hermes-bots/create-agent-lazy-profile.test.tsx b/apps/desktop/src/plugins/hermes-bots/create-agent-lazy-profile.test.tsxindex 613f1a369fb..a59f3864d68 100644--- a/apps/desktop/src/plugins/hermes-bots/create-agent-lazy-profile.test.tsx+++ b/apps/desktop/src/plugins/hermes-bots/create-agent-lazy-profile.test.tsx@@ -233,6 +233,41 @@ describe('materializing the draft profile', () => {)})+ it('lets a remote-target Bot start fresh instead of forcing a clone of the target default', async () => {+ mocks.connections.mockResolvedValue([+ { id: 'local', label: 'This Mac' },+ { id: 'studio', label: 'Studio' }+ ])++ await renderDialog(true)++ await screen.findByText('Create on')+ fireEvent.click(controlUnder('Create on'))+ fireEvent.click(await screen.findByRole('option', { name: 'Studio' }))++ // The picker stays live for a remote target and offers only what exists+ // on THAT machine: fresh, or its own default — never a local roster name.+ const cloneFrom = controlUnder('Clone from profile (on Studio)')++ expect(cloneFrom.getAttribute('data-disabled')).toBeNull()+ fireEvent.click(cloneFrom)+ expect(screen.getAllByRole('option').map(option => option.textContent)).toEqual([+ 'Fresh profile (bundled skills)',+ 'default'+ ])+ fireEvent.click(screen.getByRole('option', { name: /Fresh profile/ }))++ fireEvent.click(screen.getByRole('button', { name: 'Create Bot' }))++ await waitFor(() =>+ expect(mocks.requestProfile).toHaveBeenCalledWith(+ expect.objectContaining({ connectionId: 'studio' }),+ 'profiles.create',+ expect.objectContaining({ clone_from: null, name: 'inbox-triage' })+ )+ )+ })+it('creates it on the first MCP setup click, then adds the server to it', async () => {// Older builds keep the staged MCP tab, which is where the setup button// lives. There is no "save the agent first" gate: the button is live.diff --git a/apps/desktop/src/plugins/hermes-bots/create-dialog.tsx b/apps/desktop/src/plugins/hermes-bots/create-dialog.tsxindex ea70859f4d8..9694aae40d8 100644--- a/apps/desktop/src/plugins/hermes-bots/create-dialog.tsx+++ b/apps/desktop/src/plugins/hermes-bots/create-dialog.tsx@@ -740,20 +740,22 @@ export function CreateAgentDialog({ open, onClose, roster }: CreateAgentDialogPr{labeled(remoteTarget ? `Clone from profile (on ${targetLabel})` : 'Clone from profile',<Select- disabled={remoteTarget}onValueChange={value => {setCloneFrom(value)setCaps(null)setCapsFailed(false)}}- value={remoteTarget ? 'default' : cloneFrom}+ value={remoteTarget && cloneFrom !== '__none__' ? 'default' : cloneFrom}><SelectTrigger className="h-8 rounded-md"><SelectValue /></SelectTrigger><SelectContent><SelectItem value="__none__">Fresh profile (bundled skills)</SelectItem>- {roster.map(b => (+ {/* The roster lists THIS window's profiles; the only clone+ source guaranteed to exist on another machine is its+ own default, so a remote target offers that or fresh. */}+ {(remoteTarget ? [{ name: 'default' }] : roster).map(b => (<SelectItem key={b.name} value={b.name}>{b.name}</SelectItem>diff --git a/website/docs/user-guide/bot-mode.md b/website/docs/user-guide/bot-mode.mdindex ebe846c21b8..1aa5db88761 100644--- a/website/docs/user-guide/bot-mode.md+++ b/website/docs/user-guide/bot-mode.md@@ -58,7 +58,7 @@ An **Advanced** disclosure opens the full capabilities surface:### Choosing which machine it lives on ("Create on")-With more than one connection registered in [Settings → Connections](./multi-connection-desktop.md), the New Agent dialog grows a **Create on** picker. Pick a device and the profile is created on **that** machine's backend — your window never switches gateways. The new Bot then appears in the roster as a Connections Bot (with an `@name-device` handle when the name exists on several machines), and chatting with it routes to its own machine.+With more than one connection registered in [Settings → Connections](./multi-connection-desktop.md), the New Agent dialog grows a **Create on** picker. Pick a device and the profile is created on **that** machine's backend — your window never switches gateways. The new Bot then appears in the roster as a Connections Bot (with an `@name-device` handle when the name exists on several machines), and chatting with it routes to its own machine. **Clone from profile** then offers what exists on the target machine — its own `default`, or **Fresh profile** — rather than this window's roster; you never have to switch gateways to create a fresh Bot elsewhere.With a single connection (the common case) the picker is hidden and the Bot is created on the machine you're connected to — exactly the old behavior.