Skip to content

fix(spec-6-1): wire Runs-tab ctx% (v0.10.1 patch) - #16

Merged
rz1989s merged 1 commit into
mainfrom
fix/runs-tab-ctx-percent
Jul 28, 2026
Merged

rz1989s merged 1 commit into
mainfrom
fix/runs-tab-ctx-percent

Conversation

@rz1989s

@rz1989s rz1989s commented Jul 28, 2026

Copy link
Copy Markdown
Member

fix(spec-6-1): wire Runs-tab ctx% (v0.10.1 patch)

The Runs tab ctx% column (Surface C, Q8) never rendered end-to-end in v0.10.0. runsRow(r, getModelContextWindow?) accepts the resolver (Task 7) but fleet-panel.ts called runsRow(r) without it, so maxContext was always undefined → the ctx% segment was hidden. The $ column was unaffected (reads costTotal directly off RunMeta).

Fix

Thread the shared getModelContextWindow fn (already wired into the FleetWidgetController in Task 11) through FleetPanelDeps + SubagentToolDeps, pass it at the Runs-tab render call site (runsRow(r, this.deps.getModelContextWindow)).

Caught by

The v0.10.0 term smoke — the Runs row showed 27K tok but no ctx%, while pi's own status bar showed 1.9%/976k (proving the modelRegistry.contextWindow=976000 flows). Unit tests (runs-rows.test.mts) cover the pure fn but not the panel wiring, which is why the gap slipped through Task 11 review.

Tests

365/365 pass, typecheck clean. v0.10.0 → v0.10.1.

…nelDeps)

The Runs tab ctx% column (Surface C, Q8) never rendered end-to-end —
runsRow(r, getModelContextWindow?) accepts the resolver (Task 7) but
fleet-panel.ts called runsRow(r) without it, so maxContext was always
undefined → ctx% segment hidden. Threading the shared getModelContextWindow
fn (already wired into the FleetWidgetController in Task 11) through
FleetPanelDeps so the Runs tab picks it up. Bumps 0.10.0 → 0.10.1.

Found in the v0.10.0 term smoke (Runs row showed '27K tok' but no ctx%).
@rz1989s
rz1989s merged commit a2ce136 into main Jul 28, 2026
1 check passed
@rz1989s
rz1989s deleted the fix/runs-tab-ctx-percent branch July 28, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant