feat(webui): Wave 6A — usage badge and failover timeline - #17
Merged
Conversation
Make ranked free failover legible on every turn: capture a success-inclusive RouteTrace across tier skips and proxy endpoint hops, request stream usage when the proxy supports it, and measure client TTFT/total. Expand the routing chip into a keyboard-accessible disclosure with hop outcomes, skip reasons, and a free vs openrouter/free note. Add a session totals row that aggregates tokens (when exposed) and wall time. Playwright failover-timeline.spec.ts covers multi-hop expand + latency-only degrade. Wave 5 stays blocked on 6A per refreshed requirements. webui npm test: 91 passing. Playwright failover-timeline green.
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.
Summary
RouteTrace, SSEusagecapture viastream_options.include_usage, and client-measured TTFT/total. No new proxy logging backend.Origin:
docs/brainstorms/2026-07-25-chat-ui-wave6-transparency-discovery-requirements.md(6A slice, R58–R64 + R88). Plan:docs/plans/2026-07-25-004-feat-chat-ui-wave6a-transparency-plan.md. Wave 5 remains blocked on this per the refreshed requirements.Test plan
cd webui && npm test(91 passing)cd webui && npm run buildnpx playwright test tests/e2e/failover-timeline.spec.tsfailover-timeline.spec.ts