Repository navigation
Web UI: API-key prompt on 401, visible chat errors, phone layout, labels - #16
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
What
Deep-eval pass (Oct 2026) on the built-in web UI (
opendrop/ui/web.py), following the security hardening in #15.OPENDROP_API_KEY, but the UI only read a key fromlocalStoragethat the user had to set by hand in devtools. A 401 on/v1/modelsrendered an empty list (or "Cannot reach OpenDrop server"). NewapiFetch()wrapper: on 401 it asks for the key once, stores it, and retries; a rejected key is cleared./v1/modelsnon-2xx now shows "API key required" / "Server error N"./v1/chat/completionserrors (e.g. no model loaded, 401, 502) were read as an SSE stream and produced an empty reply. Non-2xx now showsError: HTTP <code>: <body>in the reply bubble.bodyis a fixed-height row flex with a 280px sidebar; under 700px the sidebar now stacks above the chat (max 45vh, scrollable).aria-labelon the pull input,<label for>on the temperature / max-tokens sliders,role="log" aria-live="polite"on the message list.No backend changes. CHANGELOG
[Unreleased]updated.Testing
node --checkon the extracted UI script: OK; module parses; all added lines are within the 100-char ruff limit.tests/test_server.py::mount_web_ui) is the gate.Not done (owner decision)
publish.ymlfires on tags and publishes to PyPI asopendrop, a name already owned by another project. Alsopyproject/__init__say0.1.0b1while CHANGELOG already has a[0.1.0b2] - 2026-05-14section.