Skip to content

[ZEPPELIN-6782] Let users retry failed Assistant images - #5623

Open
miinhho wants to merge 1 commit into
apache:masterfrom
miinhho:ZEPPELIN-6782-assistant-image-retry
Open

miinhho wants to merge 1 commit into
apache:masterfrom
miinhho:ZEPPELIN-6782-assistant-image-retry

Conversation

@miinhho

@miinhho miinhho commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What is this PR for?

When an approved image fails to load, the AI Assistant now shows an error and a keyboard-accessible Retry image button while keeping the image description visible. Retry attempts to load the same URL using normal browser caching. If it succeeds, the image is displayed. If it fails again, the error and Retry button remain available.

Streaming updates do not automatically retry failed images. Approval applies to one image occurrence and its URL: another image with the same URL still needs approval, and a changed URL requires fresh approval. Unsupported URLs remain non-loadable.

What type of PR is it?

Improvement

Todos

  • Add browser coverage for repeated failure, successful retry, keyboard focus, and consent during streaming.

What is the Jira issue?

How should this be tested?

From zeppelin-web-angular/projects/zeppelin-react, run:

  npm test -- MarkdownAnswer.spec.tsx
  npm run build:storybook
  npm run test:storybook -- markdown-answer-images.spec.mjs --workers=1

The retry fixture fails the first approved load and the first retry, then serves a valid image. Verify that no image request is sent before approval or between attempts, that the description stays visible on failure, and that retrying by keyboard requests the same URL.

The streaming fixture checks that Retry keeps focus when the same image is remounted and that retrying it does not load another image with the same URL.

Screenshots (if appropriate)

Screenshot 2026-11-26 090026

Questions:

  • Does the license files need to update? No.
  • Is there breaking changes for older versions? No.
  • Does this needs documentation? The React README documents the Retry image action.

Keep the image description visible and offer a keyboard-accessible retry after a load failure.
Retry only the approved image occurrence and URL, without retrying on streaming updates.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant