Skip to content

feat(desktop): context overview navigation + status bar metrics (#3895)#3922

Merged
esengine merged 1 commit into
main-v2from
land/3895-context-overview-metrics
Jun 11, 2026
Merged

feat(desktop): context overview navigation + status bar metrics (#3895)#3922
esengine merged 1 commit into
main-v2from
land/3895-context-overview-metrics

Conversation

@esengine

Copy link
Copy Markdown
Owner

Re-lands #3895 by @SivanCola on top of current main-v2 (the branch conflicted with today's merges of #3916/#3917/#3919/#3360). Squashed from the original three commits; author credit preserved.

Review notes from the original PR:

  • Go telemetry plumbing is clean and tested — TotalTokens flows tab snapshot → ContextUsageForTab/ContextPanel, with the new test pinning that the panel breakdown uses last-usage while the total comes from telemetry.
  • usageTotalTokens fallback math (prompt-or-cache-sum + completion) is sensible for providers that omit totalTokens.
  • Status bar regrouping with cache-rate coloring (good ≥80 / notice ≥50 / critical <50) fits the cache-first positioning; jobs chip hiding at zero is a deliberate behavior change.
  • The request-id bridge from overview rows into scoped workspace views dismisses cleanly on user interaction.

Conflict resolution: single hunk in App.tsx — kept #3360's runningRef alongside the new rightDockDetailActive expression (the contextDetailActive state it replaced is removed by this PR).

Verified locally: desktop Go tests pass except two pre-existing env-dependent failures that also fail on pristine main-v2 (TestAddSkillPathRestoresConventionRootWithoutCustomPath reads the real user config — same isolation family as the earlier AppData lesson — and the known TempDir unlink flake); all touched frontend files parse clean.

Closes #3895

Regroup the bottom status bar into model/cache/token/context/account
clusters with shared tooltips, cache-rate coloring, and compaction
warning states. Refresh the context overview cards, route dependency
and session-change rows to scoped workspace views, and carry session
total-token accounting through tab telemetry into the UI.
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 03:24
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 11, 2026
@esengine esengine merged commit 9cc1d58 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the land/3895-context-overview-metrics branch June 11, 2026 03:28
SivanCola added a commit to CVEngineer66/DeepSeek-Reasonix that referenced this pull request Jun 11, 2026
…engine#3922)

Regroup the bottom status bar into model/cache/token/context/account
clusters with shared tooltips, cache-rate coloring, and compaction
warning states. Refresh the context overview cards, route dependency
and session-change rows to scoped workspace views, and carry session
total-token accounting through tab telemetry into the UI.

Co-authored-by: Sivan <liuxw96@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants