Add debug log panel to experiment pages#8
Open
bclinkinbeard wants to merge 4 commits intomainfrom
Open
Conversation
Adds a shared debug textarea that displays timestamped messages for model loading, progress, file selection, and inference results. Helps diagnose runtime behavior directly in the browser without dev tools. https://claude.ai/code/session_018KRgyq2q4viPQU8HjtSJFo
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Debug textarea now has aria-label for WCAG compliance - On page load, logs navigation type (navigate/reload/back_forward) - Saves debug log to sessionStorage before unload; if the page reloads, the previous session's log is restored so you can see what happened right before the reload https://claude.ai/code/session_018KRgyq2q4viPQU8HjtSJFo
Tests the exact scenario that crashes on production: run inference, then select-all + delete the input text. Monitors for page crashes, navigations, and JS errors. Passes with mocked models, confirming the crash originates in the WASM/ONNX runtime, not application code. https://claude.ai/code/session_018KRgyq2q4viPQU8HjtSJFo
Tests inference + text deletion with the actual @huggingface/transformers pipeline and WASM/ONNX runtime (no mocks). Skipped in CI since it requires network access to download the model. Run locally with: npx playwright test -g "real model" --project='desktop-chrome' https://claude.ai/code/session_018KRgyq2q4viPQU8HjtSJFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a shared debug textarea that displays timestamped messages for
model loading, progress, file selection, and inference results. Helps
diagnose runtime behavior directly in the browser without dev tools.
https://claude.ai/code/session_018KRgyq2q4viPQU8HjtSJFo