Persist fit panel inputs per tab #461
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 317 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #461"
general
weight: 0.35
Harshil-1603
Summary
Remember FitPanel inputs independently for each chart or dataset tab. Restore custom sources, fit category and model, parameter text, confidence options, point count, and range settings when returning to a tab. Clear cached context when its tab or project closes.
Floating-window activation now publishes the same tab context as docked-tab selection, including when returning to the previously active pane. Restore duplicate-source series by object identity before falling back to dataset/column identity, and preserve an explicitly empty selection. Ignore late fit results after changing tabs or selecting a different duplicate series.
Includes the current main branch and preserves its pending-edit close guards and fit-category controls.
Refs #456. This covers the fit panel only (the issue's "fit panel first"); statistics, transform, signal, preprocessing and chart-analysis panels remain open and should be tracked in follow-ups. The per-tab state lives in
FitPanelitself rather than a shared per-tab store, so the next panel will need either its own copy or an extracted shared mechanism.Behavior change:
FitPanel._on_chart_updatednow ignores chart updates while no chart is loaded (for example on a dataset tab), instead of loading the updated chart into the panel.Known gap: a fit whose tab is left before it finishes is discarded, and it should be applied if the user returns to that tab before it completes. A suggested change for this is in the review.
Validation
git diff --check, and dependency audit: passed.Prepared and tested with Codex assistance.