The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): Screen pane tooltips via <Tip>, not native title=
teknium1ef80569540c9
diff --git a/apps/desktop/src/plugins/hermes-bots/screen-pane-lifecycle.test.tsx b/apps/desktop/src/plugins/hermes-bots/screen-pane-lifecycle.test.tsxindex b6a58345eeb..fc71f21f25f 100644--- a/apps/desktop/src/plugins/hermes-bots/screen-pane-lifecycle.test.tsx+++ b/apps/desktop/src/plugins/hermes-bots/screen-pane-lifecycle.test.tsx@@ -1,4 +1,5 @@import { act, fireEvent, render, waitFor } from '@testing-library/react'+import type { ReactNode } from 'react'import { afterEach, beforeEach, expect, it, vi } from 'vitest'import type { DisplayStatus } from './screen-connection'@@ -22,6 +23,7 @@ vi.mock('@hermes/plugin-sdk', async () => {),Codicon: () => null,GlyphSpinner: () => null,+ Tip: ({ children }: { children: ReactNode }) => <>{children}</>,EmptyState: () => null,useValue: useStore,host: {@@ -170,7 +172,7 @@ it('pins the bot socket for the attach lifetime and lets go on unmount', async (await waitFor(() => expect(sockets).toHaveLength(1))await act(async () => {})expect(retention.held).toBe(1)- fireEvent.click(view.getByTitle('Reconnect'))+ fireEvent.click(view.getByLabelText('Reconnect'))await waitFor(() => expect(sockets).toHaveLength(2))expect(retention.held).toBe(1)view.unmount()@@ -194,7 +196,7 @@ it('does not hand back while replacing a stream to reconnect the same viewer', aconst view = render(<BotScreenPane bot={bot} />)await waitFor(() => expect(sockets).toHaveLength(1))await act(async () => {})- fireEvent.click(view.getByTitle('Reconnect'))+ fireEvent.click(view.getByLabelText('Reconnect'))await waitFor(() => expect(sockets).toHaveLength(2))expect(sockets[0].closeCodes).toEqual([1005])expect(sockets[1].closed).toBe(false)@@ -241,6 +243,6 @@ it('re-attaches in watch mode after the bridge evicts us with 4000, with a boundawait act(async () => new Promise(resolve => setTimeout(resolve, 20)))expect(observes()).toBe(4)expect(sockets.at(-1)?.closed).toBe(true)- expect(view.getByTitle('Reconnect').closest('button')?.disabled).toBe(false)+ expect(view.getByLabelText('Reconnect').closest('button')?.disabled).toBe(false)view.unmount()})diff --git a/apps/desktop/src/plugins/hermes-bots/screen-pane-status-events.test.tsx b/apps/desktop/src/plugins/hermes-bots/screen-pane-status-events.test.tsxindex 98bea525ca0..cefacbf7848 100644--- a/apps/desktop/src/plugins/hermes-bots/screen-pane-status-events.test.tsx+++ b/apps/desktop/src/plugins/hermes-bots/screen-pane-status-events.test.tsx@@ -6,6 +6,7 @@*/import { act, render, waitFor } from '@testing-library/react'+import type { ReactNode } from 'react'import { afterEach, beforeEach, expect, it, vi } from 'vitest'import type { DisplayStatus } from './screen-connection'@@ -20,6 +21,7 @@ vi.mock('@hermes/plugin-sdk', async () => {Button: ({ children, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>) => <button {...props}>{children}</button>,Codicon: () => null,GlyphSpinner: () => null,+ Tip: ({ children }: { children: ReactNode }) => <>{children}</>,EmptyState: () => null,useValue: useStore,host: { onEvent: onGatewayEvent }diff --git a/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx b/apps/desktop/src/plugins/hermes-bots/screen-pane.tsxindex 689f7da04ea..af0e4714976 100644--- a/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx+++ b/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx@@ -12,7 +12,7 @@* attaches is bounded to a few rapid retries before the error state.*/-import { Button, Codicon, EmptyState, GlyphSpinner, host, useValue } from '@hermes/plugin-sdk'+import { Button, Codicon, EmptyState, GlyphSpinner, host, Tip, useValue } from '@hermes/plugin-sdk'import type { RpcEvent } from '@hermes/plugin-sdk'import { useCallback, useEffect, useRef, useState } from 'react'@@ -384,9 +384,11 @@ export function BotScreenPane({ bot }: { bot: RosterRow }) {) : (<>{humanOther ? (- <Button disabled={busy} onClick={() => void handBack(true)} size="sm" title={t.screen.handBackForceHint} variant="secondary">- <Codicon name="debug-continue" /> {t.screen.handBackForce}- </Button>+ <Tip label={t.screen.handBackForceHint}>+ <Button disabled={busy} onClick={() => void handBack(true)} size="sm" variant="secondary">+ <Codicon name="debug-continue" /> {t.screen.handBackForce}+ </Button>+ </Tip>) : null}{/* The lease is granted to a server-minted viewer id; until `display.observe` hasminted one for this attach a Take over could only send an empty id and dead-end@@ -396,9 +398,11 @@ export function BotScreenPane({ bot }: { bot: RosterRow }) {</Button></>)}- <Button disabled={conn === 'attaching'} onClick={() => void attach()} size="sm" title={t.screen.reconnect} variant="ghost">- <Codicon name="refresh" />- </Button>+ <Tip label={t.screen.reconnect}>+ <Button aria-label={t.screen.reconnect} disabled={conn === 'attaching'} onClick={() => void attach()} size="sm" variant="ghost">+ <Codicon name="refresh" />+ </Button>+ </Tip></div><div className={iHold ? 'relative min-h-0 grow bg-black ring-2 ring-inset ring-red-500/70' : 'relative min-h-0 grow bg-black'}>{/* data-terminal: the same keyboard-ownership marker the terminal pane uses, so the app'sdiff --git a/apps/desktop/src/plugins/hermes-bots/screen-viewer-identity.test.tsx b/apps/desktop/src/plugins/hermes-bots/screen-viewer-identity.test.tsxindex cf132dbb4e8..788a591fc81 100644--- a/apps/desktop/src/plugins/hermes-bots/screen-viewer-identity.test.tsx+++ b/apps/desktop/src/plugins/hermes-bots/screen-viewer-identity.test.tsx@@ -7,6 +7,7 @@*/import { act, render, waitFor } from '@testing-library/react'+import type { ReactNode } from 'react'import { afterEach, beforeEach, expect, it, vi } from 'vitest'import type { DisplayStatus } from './screen-connection'@@ -21,6 +22,7 @@ vi.mock('@hermes/plugin-sdk', async () => {Button: ({ children, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>) => <button {...props}>{children}</button>,Codicon: () => null,GlyphSpinner: () => null,+ Tip: ({ children }: { children: ReactNode }) => <>{children}</>,EmptyState: () => null,useValue: useStore,host: { onEvent: onGatewayEvent }@@ -166,7 +168,7 @@ it('does not offer Take over while no server-minted viewer id exists, even oncemethod === 'display.observe' ? { ...status, ticket: 'test-ticket', viewer_id: MINTED } : status)await act(async () => {- view.getByTitle('Reconnect').click()+ view.getByLabelText('Reconnect').click()})await waitFor(() => expect(view.getByText('Take over').closest('button')?.disabled).toBe(false))view.unmount()