Run model/profile, context-usage and goal display refreshes independently
of snapshot rendering so chat switches do not wait for their API calls.
Guard refreshes and save completions by request sequence and selected chat.
Pending saves still finish for their original chat, while late responses
cannot replace the current selector state or finish a newer loading cycle.
Add deterministic pending-request and save-race regressions and update
the owning plugin contracts.
Validation: 94 focused tests passed for the loading change, followed by
47 focused tests after the model/profile race fixes. Live checks at
localhost:32081 covered delayed API responses, rapid chat switching,
late profile/preset/clear saves, and desktop/mobile behavior.
Add plugin settings to toggle the full context breakdown and each provider
usage row. Match price typography to the cache and token summary rows.
Keep USD amounts unchanged without exchange-rate requests. Convert non-USD
prices using validated Frankfurter rates cached for 24 hours, with dated
tooltips and an explicit USD fallback when a rate is unavailable. Preserve
stored provider usage and back off failed lookups for five minutes.
Validation: 20 context-window plugin tests pass. Verified settings persistence,
EUR price rendering, USD fallback, and exchange-rate lookup against the live
Docker runtime at localhost:32081.
Keep composer selectors on one row with x-overflow and open their existing
menus from the overflow list. Preserve plugin controls, live avatars and
percentage rings, Alpine state, and mouse, touch, and keyboard interaction.
Fit submenus within the available space and tolerate fractional-pixel
rounding at browser zoom levels. Add DOM and native Chromium zoom
regressions and document the shared directive's contracts.
Validation: 57 focused WebUI checks and 10 context-window checks passed.
Verified the live UI at 100%, 110%, 150%, and 175% browser zoom. Two existing
startup favicon assertions remain unrelated failures.
Refresh the context indicator after four distinct root-agent tool calls when no generation trigger intervenes. Preserve the existing generation, completion, model, and chat-reset refresh paths while deduplicating streamed log updates.
Add a focused JavaScript-backed regression for the fallback cadence and document the trigger contract.
Inject stream_options.include_usage for every streaming chat request in the transport, retry once without it when a provider rejects the option, and remember the rejection per model configuration until process restart. Remove the OpenRouter-only injection from the context window drain extension and document the shared contract.
Refetch context usage when the active chat log GUID changes so Clear Chat immediately shows the reset window. Extend the plugin contract check and documentation for the reset-triggered refresh.
Reserve enough selector-strip width for the context window popover so short model and profile labels cannot pull it behind the sidebar or past the viewport. Preserve the mobile offset and lock both footprints in the plugin contract test.
Update the context-window indicator when each new Agent 0 generation starts while deduplicating streamed updates. Keep the completion refresh for final provider usage and cover the event-driven behavior in the plugin contract and regression test.
Show provider-reported price, cache hit, and input/output tokens in the context window popover while omitting unavailable price and cache rows.
Drain OpenRouter terminal usage through plugin extensions without changing Responses behavior, and keep prompt-bucket reconciliation accurate.
Add a bundled context-window plugin with a composer usage ring, responsive breakdown popover, token counts, percentages, and free-space reporting.
Keep accounting plugin-owned, reuse existing history token counts, cache bounded prompt fragments by content, and expose independent mobile and desktop visibility controls.