Configure embedding servers and add a Transcript Agent (#561)

* feat: configure embedding servers and transcript agents

* fix(agents): guide Transcript Agent setup

* fix(agents): require a configured embedding server URL

* docs: consolidate embedding and transcript changelog entry

* fix(webui): stabilize transcript menu interactions

* test(e2e): verify transcript scroll interruption by position

* test(webui): check transcript following without frame timing races
This commit is contained in:
Yiling-J
2026-12-05 10:17:36 +08:00
committed by GitHub
parent 72a7f68c92
commit 6c74413375
66 changed files with 2021 additions and 325 deletions
@@ -84,6 +84,20 @@ describe('FileBrowserContextMenu', () => {
expect(open).toHaveBeenCalledWith(url, '_blank', 'noopener,noreferrer')
})
it('keeps the menu open when the right button is released over Move to', () => {
const onMoveTo = vi.fn()
renderWithMenu(fileItem, { onMoveTo })
fireEvent.contextMenu(screen.getByTestId('context-trigger'))
const moveTo = screen.getByRole('menuitem', { name: 'Move to' })
fireEvent.pointerUp(moveTo, { button: 2, pointerType: 'mouse' })
expect(onMoveTo).not.toHaveBeenCalled()
expect(screen.getByRole('menu')).toBeTruthy()
fireEvent.click(moveTo)
expect(onMoveTo).toHaveBeenCalledWith([fileItem])
})
it('omits the new-tab action for a multi-item selection', () => {
renderWithMenu(fileItem, {
files: [fileItem, stackItem],
@@ -346,10 +346,6 @@ export function FileBrowserContextMenu({
>
{openInNewTabHref && (
<ContextMenuItem
onPointerUp={(event) => {
// Radix can synthesize a click as the right button that opened the menu is released.
if (event.button !== 0) event.preventDefault()
}}
onSelect={() => window.open(openInNewTabHref, '_blank', 'noopener,noreferrer')}
>
<ExternalLink className="mr-2 h-4 w-4" />
@@ -96,6 +96,17 @@ export function GenerateTranscriptsDialog({
<Combobox
items={choices}
onOpenChange={(isOpen, details) => {
const activeElement = dialogRef.current?.ownerDocument.activeElement
// WebKit can report focus-out after focus has already returned to the input.
if (
!isOpen &&
details.reason === 'focus-out' &&
activeElement === details.event.target
) {
details.cancel()
}
}}
value={choices.find((choice) => choice.code === language)}
onValueChange={(choice) => setLanguage(choice?.code ?? '')}
itemToStringLabel={(choice) => choice.name}