Skip to content

fix(ui): close session sort menu on second click#102448

Merged
steipete merged 2 commits into
mainfrom
codex/dismiss-sessions-view-menu
Jul 9, 2026
Merged

fix(ui): close session sort menu on second click#102448
steipete merged 2 commits into
mainfrom
codex/dismiss-sessions-view-menu

Conversation

@steipete

@steipete steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users clicking the sidebar session Group by / Sort by trigger a second time would see the menu remain open.

Why This Change Was Made

The trigger now owns explicit toggle behavior while the document pointer handler treats that active trigger as part of the menu interaction. Option selection, Escape, and outside-click dismissal keep their existing behavior.

User Impact

Users can click the session filter button once to show the menu and again to dismiss it.

AI-assisted implementation; reviewed and understood by the maintainer.

Evidence

  • Before fix: the focused browser regression failed because aria-expanded remained true after the second trigger click.
  • After fix: corepack pnpm test:ui:e2e -- ui/src/e2e/session-management.e2e.test.ts — 4/4 passed on Blacksmith Testbox tbx_01kx2q4mrw00wpnyy40cmy9ccb after the final rebase.
  • Visual browser proof captured and inspected both states: first click showed the menu; second click restored the sidebar with the menu gone.
  • corepack pnpm check:changed — passed on the same Testbox.
  • corepack pnpm build — passed on the same Testbox.
  • .agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output — clean; no accepted/actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 9, 2026
@steipete steipete self-assigned this Jul 9, 2026
@clawsweeper

clawsweeper Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head f609a4d78d3ae1400397fade8bbf57fb812ffee8, but the PR head is now 2221f3780d04cf757ea2e102948d8ce555f0679c. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

@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: f609a4d78d

ℹ️ 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 thread CHANGELOG.md Outdated

### Fixes

- **Control UI session sorting:** close the sidebar Group by / Sort by menu when its trigger is clicked again.

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 Remove the manual changelog entry

For this normal UI fix, root AGENTS.md's Docs / Changelog policy says CHANGELOG.md is release-only and release generation derives entries from merged PRs/direct commits. Keeping this manual Unreleased row makes the generated release notes liable to duplicate or drift from canonical commit/PR metadata; move the release-note context to the PR/squash message instead.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 6620aba into main Jul 9, 2026
74 checks passed
@steipete
steipete deleted the codex/dismiss-sessions-view-menu branch July 9, 2026 06:23
@steipete

steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 9, 2026
* fix(ui): toggle session sort menu

* chore: defer session menu release note
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 maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant