Skip to content

feat(vscode): persist model selector expand/collapse state - #11824

Merged
johnnyeric merged 3 commits into
mainfrom
johnnyeric/persist-model-picker-stat
Jun 30, 2026
Merged

feat(vscode): persist model selector expand/collapse state#11824
johnnyeric merged 3 commits into
mainfrom
johnnyeric/persist-model-picker-stat

Conversation

@johnnyeric

@johnnyeric johnnyeric commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Context

The model picker preview panel expand/collapse state reset when the VS Code webview reloaded, hid/shown, or restarted. Persisting this preference keeps the picker in the user's chosen layout.

Implementation

Save the preview-panel expand/collapse preference through the VS Code webview state API and restore it when the model picker initializes.

Screenshots / Video

N/A. Behavior-only persistence change; no visual layout change.

How to Test

Manual/local verification

  • Agent ran bun turbo typecheck via the pre-push hook.

Reviewer test steps

  1. Open the VS Code extension model picker.
  2. Expand or collapse the preview panel.
  3. Hide/show the webview, reload the extension host, or restart VS Code.
  4. Reopen the model picker and confirm the preview panel keeps the prior state.

Checklist

  • Issue linked above, or exception explained
  • Tests/verification described
  • Screenshots/video included for visual changes, or marked N/A
  • Changeset considered for user-facing changes
  • I personally reviewed the diff and can explain the changes, including any AI-assisted work.

Save the model picker's preview-panel expand/collapse preference via the
VS Code webview state API so it survives reload, hide/show, and restart.
@johnnyeric
johnnyeric marked this pull request as ready for review June 30, 2026 09:15
@johnnyeric
johnnyeric marked this pull request as draft June 30, 2026 09:16
@johnnyeric
johnnyeric marked this pull request as ready for review June 30, 2026 09:16
@kilo-code-bot

kilo-code-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • packages/kilo-vscode/webview-ui/src/components/shared/ModelSelector.tsx
  • packages/kilo-vscode/webview-ui/src/context/vscode.tsx
Previous Review Summary (commit c5aec20)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit c5aec20)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • .changeset/persist-model-picker-state.md
  • packages/kilo-vscode/webview-ui/src/components/shared/ModelSelector.tsx

Reviewed by gpt-5.4-20260305 · Input: 47.1K · Output: 6.4K · Cached: 232.2K

Review guidance: REVIEW.md from base branch main

Comment thread packages/kilo-vscode/webview-ui/src/components/shared/ModelSelector.tsx Outdated
Comment thread packages/kilo-vscode/webview-ui/src/components/shared/ModelSelector.tsx Outdated
@johnnyeric
johnnyeric merged commit 78cdc9c into main Jun 30, 2026
21 checks passed
@johnnyeric
johnnyeric deleted the johnnyeric/persist-model-picker-stat branch June 30, 2026 19:36
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…11824)

* feat(vscode): persist model selector expand/collapse state

Save the model picker's preview-panel expand/collapse preference via the
VS Code webview state API so it survives reload, hide/show, and restart.

* chore(vscode): add model picker changeset

* fix(vscode): address model selector review feedback
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.

2 participants