The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: pin Browser tile keep-alive through the mirror; document Hide for Terminal
teknium126a7a95ceb35
diff --git a/apps/desktop/src/app/chat/preview-tile.test.ts b/apps/desktop/src/app/chat/preview-tile.test.tsindex d5cea44709f..9d7409ddbc7 100644--- a/apps/desktop/src/app/chat/preview-tile.test.ts+++ b/apps/desktop/src/app/chat/preview-tile.test.ts@@ -79,15 +79,34 @@ describe('browserTabExternalUrl', () => {})})-type DockData = { dock?: { pane?: string; pos?: string } } | undefined+type DockData = { dock?: { pane?: string; pos?: string }; lifecycleKeepAlive?: boolean } | undefined++function paneDataOf(paneId: string) {+ return registry.getArea('panes').find(entry => entry.id === paneId)?.data as DockData+}function dockOf(paneId: string) {- return (registry.getArea('panes').find(entry => entry.id === paneId)?.data as DockData)?.dock+ return paneDataOf(paneId)?.dock}const fileTarget = (path: string) =>({ kind: 'file', label: path.split('/').at(-1) ?? path, path, source: path, url: path }) as const+// The zone reads this flag off the registered pane to offer Hide (kept-mounted,+// inert body) instead of Minimize — so it has to come through the mirror, not+// just be declared on the tile.+describe('preview tiles keep a live page alive across Hide', () => {+ it('registers a Browser tab with lifecycleKeepAlive while a text peek stays evictable', () => {+ openPreview({ kind: 'url', label: 'Browser', source: 'https://example.com', url: 'https://example.com' }, 'explicit-link')+ openPreview(fileTarget('/tmp/a.ts'), 'file-browser')++ const browserId = $previewTabs.get().find(tab => tab.target.kind === 'url')!.id++ expect(paneDataOf(`preview-tile:${browserId}`)?.lifecycleKeepAlive).toBe(true)+ expect(paneDataOf('preview-tile:file:/tmp/a.ts')?.lifecycleKeepAlive).toBeFalsy()+ })+})+describe('preview tiles stack, not split (#93610)', () => {it('docks the first preview right and stacks the second as a center tab in the same zone', () => {openPreview(fileTarget('/tmp/a.ts'), 'file-browser')diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.mdindex a4aaf34ff50..7d68072c48d 100644--- a/website/docs/user-guide/desktop.md+++ b/website/docs/user-guide/desktop.md@@ -49,7 +49,7 @@ The center of the app. You get:- **Independent background drafts** — hidden chat tabs can update their drafts without moving the caret or selection in the visible composer.- **Directive chip actions** — hover an actionable reference (such as a URL) to reveal its action pill. A short grace period lets you move from the chip to the pill before it dismisses. The pill stays available while you move within it; after leaving, unrelated pointer movement does not delay dismissal. Clicking its action preserves the draft selection.- **A right-hand preview rail** — render web pages, files, and tool outputs side by side while you keep chatting.-- **Hide vs. Close for the in-app browser** — a zone holding a Browser (or HTML preview) offers **Hide** instead of Minimize. Hiding collapses the zone to its restore rail but keeps the live page mounted: unsaved form input, timers, scroll position, and the agent's `drive_preview` automation target all survive, and **Restore** shows the same document without a reload. The hidden page is inert — it never takes keyboard shortcuts or steals composer focus. **Close** (the tab's ×) is what actually releases the page.+- **Hide vs. Close for stateful panes** — a zone holding a Browser (or HTML preview) or the Terminal pane offers **Hide** instead of Minimize. Hiding collapses the zone to its restore rail but keeps the pane's body mounted: a live page keeps its unsaved form input, timers, scroll position, and the agent's `drive_preview` automation target; a terminal keeps its running shell and scrollback; and **Restore** shows the same content without a reload. The hidden body is inert — it never takes keyboard shortcuts or steals composer focus. **Close** (the tab's ×) is what actually releases the page or shell.- **Comment mode in the in-app browser** — click **Annotate** in the preview browser bar, then click any element (or drag a box) on the live page and type a note; each saved comment stays as a numbered pin on the page. Saving a pin never sends a turn — when you're done, **Add N comments** attaches a cropped screenshot per pin and a short prompt naming each comment to the composer, and you still hit send yourself. Each element comment carries its CSS selector, its markup, and the computed styles that matter for layout, so the agent can find the element in your source instead of guessing from the picture. Password and hidden field values, and any attribute that looks like a key or token, are redacted on the page before the markup leaves it. Larger batches arrive grouped by which part of the page each comment sits in, so twenty-odd comments become a handful of pieces of work rather than one task each — and because the groups are separate DOM subtrees they usually touch separate files, which is what makes handing them to parallel workers safe. Pin numbers hold steady if you delete one, and switching chats clears the stack.- **Composer history and queue editing** — press the up/down arrow keys in an empty composer to recall and reuse previous prompts, and edit messages you've queued up before they're sent. Pressing Stop (or Esc) while turns are queued pauses the queue and expands it above the composer; resume it from there, or send, edit, and delete individual entries.- **Task progress above the composer** — expand the Tasks header to inspect each phase. Long lists stay bounded above the input; scroll inside the expanded list to reach the final tasks without moving the conversation.