Skip to content

fix: pin sessions dropped into Pinned#107854

Merged
steipete merged 3 commits into
mainfrom
codex/pin-session-on-drop
Jul 15, 2026
Merged

fix: pin sessions dropped into Pinned#107854
steipete merged 3 commits into
mainfrom
codex/pin-session-on-drop

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where dragging an unpinned session onto the Pinned sidebar group did nothing, leaving the session in its previous section.

Why This Change Was Made

The Pinned section now accepts session drops and applies the same persistent pin mutation used by the row action. The session's custom-group category is preserved, so unpinning can return it to that group; existing custom-group and Chats drop behavior stays unchanged.

User Impact

Users can drag a session directly into Pinned and see it move there immediately.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 15, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e895f367b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +2554 to +2555
isPinned ||
(this.sessionsGrouping === "category" && (section.id === "ungrouped" || Boolean(group)));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Render a Pinned drop target for first-time pins

This only makes an already-rendered Pinned section accept drops, but groupSidebarSessionRows() still emits the pinned section only when pinned.length > 0 (ui/src/lib/sessions/grouping.ts:190). In the common case where an agent has no pinned sessions yet, there is no [data-session-section="pinned"] in the sidebar, so users cannot perform the newly documented drag-to-pin action for the first pinned session; the new E2E covers only the case with an existing pinned row.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 8677273 into main Jul 15, 2026
81 checks passed
@steipete
steipete deleted the codex/pin-session-on-drop branch July 15, 2026 00:14
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 15, 2026
* fix(ui): pin sessions dropped into pinned group

* test(ui): capture pinned session drop proof

* chore: keep release note in PR metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant