Repository navigation
fix(sidebar): preserve the list view when opening a session from search - #5258
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 42f3d3a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
5 of 6 tasks
Merged
7723qqq
pushed a commit
to 7723qqq/kimi-code
that referenced
this pull request
Nov 24, 2026
Record MoonshotAI#5247 ported and MoonshotAI#5258, MoonshotAI#5259 and MoonshotAI#5266 equivalent to the fork's own sidebar, composer and tool-duration implementations, each with an executable probe.
7723qqq
pushed a commit
to 7723qqq/kimi-code
that referenced
this pull request
Nov 26, 2026
Port upstream 972e750 (MoonshotAI#5258): locateSession keeps the flat or grouped view instead of replacing it, scrolls to the rendered row, and flashes it. The upstream regression test covers flat, grouped, off-page and pinned cases. The ledger row was marked equivalent with a probe aimed at the desktop Sidebar; the shared app-components component was still at the pre-image. Replace the probe with se-locate-flash in SessionListPanel.vue and mark the row ported. Verified: app-components sessionListPanelRerender 20 pass (4 new cases); check:no-comments clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirement or Bug
Opening an unpinned session from search in the web or desktop sidebar changed Flat list to Group by project. The change was saved, so refreshing the page did not restore the user's choice.
Bug Reproduction Steps
Root Cause
After opening the session, the sidebar tried to reveal its row by calling the same setter used for an explicit view change. That setter switched the layout and saved it. The flat rows also lacked the session ID used by the row locator.
Code Changes
SessionListPanelnow looks for the row in the selected layout rather than changing the layout to find it. Flat rows use the existing scroll and highlight behavior. When the result is outside the rendered page, the session still opens, but the sidebar does not load intervening pages. Selecting a project search result still uses the separate project locator.Screenshots / Recordings
No browser capture. The component regression tests check the saved preference, which row scrolls and highlights, and whether another page was requested.
Behavior Changes and Affected Users
Verification
sessionListPanelRerender.test.tsandsearchSessionsDialogCaps.test.ts: 23 tests passed. Both new flat-list cases failed before the fix because the saved mode becamegrouped.patheandyamldependencies outside the changed files. Full lint and browser E2E were not run locally.Checklist
kimi-code-apppatch changeset.