Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(assistant-ui): handle missing image source gracefully

Steven Enamakel25d25daea2f8
diff --git a/app/src/components/assistant-ui/elements/image.tsx b/app/src/components/assistant-ui/elements/image.tsx
index a4f90c7457..3aeb1010ad 100644
--- a/app/src/components/assistant-ui/elements/image.tsx
+++ b/app/src/components/assistant-ui/elements/image.tsx
@@ -255,7 +255,7 @@ function ImageZoom({ src, alt = 'Image preview', children }: ImageZoomProps) {
className="aui-image-zoom-overlay fade-in animate-in fixed inset-0 z-50 flex items-center justify-center bg-black/80 duration-200"
onClick={handleClose}
onKeyDown={e => e.key === 'Enter' && handleClose()}
- aria-label="Close zoomed image">
+ aria-label={t('elements.image.closeZoomAria', 'Close zoomed image')}>
<img
data-slot="image-zoom-content"
src={src}
diff --git a/app/src/components/settings/panels/FeedbackPanel.test.tsx b/app/src/components/settings/panels/FeedbackPanel.test.tsx
index 5d3788d90d..bf1b96c11e 100644
--- a/app/src/components/settings/panels/FeedbackPanel.test.tsx
+++ b/app/src/components/settings/panels/FeedbackPanel.test.tsx
@@ -127,6 +127,7 @@ describe('<Feedback /> keeps the board in sync after local mutations', () => {
userRole.current = 'user';
});
+ /** The status filter is still a Radix `Select`; its items carry role="option". */
async function openFilter(
user: ReturnType<typeof userEvent.setup>,
triggerLabel: string,
@@ -134,14 +135,20 @@ describe('<Feedback /> keeps the board in sync after local mutations', () => {
) {
await user.click(screen.getByLabelText(triggerLabel));
const listbox = await screen.findByRole('listbox');
- // FeedbackFilterSelect now renders Radix `Select`, whose items carry
- // role="option" (not "button" — that was the hand-rolled listbox this
- // component used before adopting the shared primitive).
await user.click(within(listbox).getByRole('option', { name: optionName }));
}
+ /** The type filter is a `ToggleGroup` radiogroup — click the option directly,
+ * no dropdown to open. */
+ async function clickTypeFilter(user: ReturnType<typeof userEvent.setup>, optionName: string) {
+ const group = screen.getByRole('radiogroup', { name: 'All types' });
+ await user.click(within(group).getByRole('radio', { name: optionName }));
+ }
+
async function submitFeature(user: ReturnType<typeof userEvent.setup>, title: string) {
- await user.type(screen.getByPlaceholderText('Title'), title);
+ // The submit form now lives in a dialog behind the header's compose button.
+ await user.click(screen.getByTestId('feedback-compose'));
+ await user.type(await screen.findByPlaceholderText('Title'), title);
await user.type(
screen.getByPlaceholderText('Describe your idea or the problem you hit'),
'Some supporting detail'