Skip to content

Show inline image thumbnails in LLM log detail view#34

Merged
amoghbanta merged 1 commit intomainfrom
feat/29-llm-log-images
Feb 13, 2026
Merged

Show inline image thumbnails in LLM log detail view#34
amoghbanta merged 1 commit intomainfrom
feat/29-llm-log-images

Conversation

@amoghbanta
Copy link
Collaborator

Summary

  • Add GET /books/:label/debug/llm-image/:hash endpoint that resolves LLM log image hashes (sha256(base64).slice(0,16)) back to original image files from the book's images table
  • Replace text placeholders ([Image: 800x600, 45KB]) in the LLM log detail view with actual inline image thumbnails
  • Thread label prop through HistoryLogRowLogDetail so the frontend can construct the image URL

Closes #29

Test plan

  • pnpm typecheck passes
  • pnpm test passes (330 tests)
  • Open a book processed through the pipeline
  • Go to Debug → LLM Logs, expand a log entry for text-classification or image-classification
  • Confirm images render as thumbnails with dimensions below
  • Confirm text messages still render as before

Add GET /books/:label/debug/llm-image/:hash endpoint that resolves
LLM log image hashes (sha256 of base64) back to the original image
files, and replace the text placeholders in the frontend with actual
inline thumbnails.
@amoghbanta amoghbanta merged commit f69ef79 into main Feb 13, 2026
1 check passed
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.

Show images in HTTP Log

1 participant