Skip to content

fix(test): follow sidebar header drag ordering - #180108

Closed
steipete wants to merge 1 commit into
mainfrom
fix/sidebar-plugin-order-drag
Closed

steipete wants to merge 1 commit into
mainfrom
fix/sidebar-plugin-order-drag

Conversation

@steipete

Copy link
Copy Markdown
Contributor
Family Files Production LOC 1 handlers 2 lifecycle 3 reads C/E/U/N 4 commands C/E/U/N 5 lazy 6 collections 7 JSX 8 context 9 Reveal 10 owner APIs
Agents editor / non-memory 24 5,643 0 0 7C/0E/0U/5N 6C/0E/0U/1N 0 0 0 0 0 0
Agents memory 12 2,844 0 0 0C/0E/0U/5N 1C/1E/0U/1N 0 0 0 0 0 0
Config Appearance / shared 14 4,116 0 0 2C/1E/0U/5N 2C/1E/0U/1N 0 0 0 0 0 0
Config other 34 5,602 0 0 2C/0E/0U/2N 2C/1E/0U/2N 0 0 0 0 0 0
Config health 3 1,352 0 0 1C/0E/0U/0N 1C/0E/0U/0N 0 0 0 0 0 0
Config memory 5 1,319 0 0 0C/1E/0U/1N 2C/0E/0U/0N 0 0 0 0 0 0
Config Talk 4 1,471 0 0 1C/0E/0U/2N 2C/0E/0U/0N 0 0 0 0 0 0
Sessions 22 4,021 0 0 1C/0E/0U/3N 8C/0E/0U/0N 0 0 0 0 0 0
Total 118 26,368 0 0 14C/2E/0U/23N 24C/3E/0U/5N 0 0 0 0 0 0

Pinned origin/main 4597d4b0e9465e42f150633625c73a5ab466c259. Full scope diff from previously qualified 2b18fc8eb8705b67ec0037290002be25ac72ee3d is empty. Counts and named exceptions remain unchanged; no pending branch credit.

C = eligible candidate; E = named allowed exception; U = unresolved classification; N = native/complete. Items1,2,5–10 count eligible survivors, not raw API use.

38 candidates across eight families; zero unassigned.

The census above is identical before and after this test-only repair. Production scope is unchanged; this follow-up changes one E2E file outside those runtime families.

Related: #180046

What Problem This Solves

The plugin-sidebar ordering E2E test still looked for the removed “Reorder Beta” menu after #180046 moved group reordering to header dragging, causing a 30-second timeout.

User Impact

No user-visible behavior changes. This repairs the browser proof for the current group-drag interaction.

Why This Change Was Made

Drag Beta's header label before Alpha, matching the existing group-management E2E gesture. Keep the plugin rail's keyboard reorder and focus assertions, the exact group-order write, the no-session-patch assertion, and both plugin/group ordering checks after reload. Remove only the focus assertion for the deleted group-menu control.

Evidence

Proof Result
Original case on qualified base 6b16cf629434102f12f821346e3e4e8da88655ce Reproduced the exact failure at line 74: Reorder Beta focus timed out after 30 seconds; 1/1 failed, 40.50 s invocation
Corrected case from e2fc944179fdcc050e9f464a91ea0fffced6b10b on the same sealed UI publication 1/1 passed; 18.456 s test, 46.98 s invocation
pnpm tsgo:ui Passed
Targeted lint, formatting, and git diff --check Passed
Independent review Scoped clean; no actionable findings

The browser runs used CI=true and the canonical Node/Playwright E2E configuration, with the qualified prebuilt UI supplied directly to canonical bundled setup. Relevant header, drag, group-order and settings owners are unchanged between the publication base and this PR's 4597d4b0e9465e42f150633625c73a5ab466c259 base. The corrected test body was unchanged for replay; three relative imports were resolved to the canonical execution checkout. One initial launcher stalled in the SSD rename() path before test setup; both caches were disabled for the single actual base replay and single corrected replay.

Production LOC is unchanged; test LOC is 110 → 110 (+5/−5 changed lines). Startup, route, locale, CSS and dependency inputs are unchanged, so this test-only repair needs no build or additional screenshots.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T01:15:41.212966Z e2fc944 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The PR replaces the removed sidebar group reorder menu gesture with header dragging in the existing browser test.

Example: Reorder the Beta session group before Alpha.

  • Before: The test waits for the removed Reorder Beta button and times out.
  • After: The test drags Beta's header before Alpha and verifies the order survives reload.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct test repair supported by reported browser-harness results; the downloaded media does not exercise this scenario.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes no production behavior; its body reports a failing original browser case and passing corrected case against the same qualified UI publication.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The sidebar browser test times out on a removed control, preventing it from checking ordering and persistence.
Reason: The maintainer-authored repair restores meaningful existing coverage and follows the already accepted sidebar interaction.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, correct repair for a stale browser test still present on current main; no actionable findings remain.

Priority: P3
Reviewed head: e2fc944179fdcc050e9f464a91ea0fffced6b10b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI browser suite supplies synthetic Gateway responses, drives sidebar interactions through Playwright, and checks rendered ordering, outgoing requests, and reload persistence.

flowchart LR
  A[Synthetic Gateway fixtures] --> B[Control UI sidebar]
  C[Playwright header drag] --> B
  B --> D[Session organizer]
  D --> E[Group order request]
  B --> F[Ordering and reload assertions]
Loading

Technical review

Best possible solution:

Use the existing header drag interaction while preserving the test's independent ordering and persistence checks.

Do we have a high-confidence way to reproduce the issue?

Current main selects a control intentionally removed by the merged header-drag change, and the PR reports the corresponding browser timeout; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is the smallest complete repair: replace the obsolete gesture with the established drag gesture and remove only the deleted control's focus check.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a928225b43b1.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Precisely scoped test repair: The introduced diff changes only the obsolete group-menu interaction and its focus assertion; plugin keyboard focus, group ordering, the write payload, absence of session patches, and reload assertions remain. (ui/src/e2e/sidebar-plugin-order.e2e.test.ts:73, e2fc944179fd)
  • Current main retains the stale selector: Fetched main still looks for Reorder Beta, whereas the production header now permits dragging from its label and toggle. (ui/src/e2e/sidebar-plugin-order.e2e.test.ts:73, a928225b43b1)
  • Existing gesture and intentional product change: The gesture matches the existing session-management browser case. The merged change at improve(ui): reorder sidebar groups by dragging their header #180046 explicitly removed the group menu and accepted removal of keyboard-only group reordering; this PR follows that decision rather than restoring the retired control. (ui/src/e2e/session-management.groups.e2e.test.ts:825, bc9b82033dd8)
  • Reported browser validation: The full PR body records the original selector timeout and a passing corrected case using canonical Node/Playwright configuration against the same qualified UI publication, plus passing targeted static checks. Inspected downloaded screenshots depict unrelated Activity and Meetings pages and add no coverage for this repair. (e2fc944179fd)
  • History and review policy: Root and UI policies, test-audit, and pr-simplify steps 1–3 were applied; no maintainer-notes directory exists. File history identifies prior sidebar contributors. Some historical blobs are unavailable locally, so introduction claims beyond verified history were avoided. The checkout remains clean. (AGENTS.md:1, e2fc944179fd)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 5 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 5 5 0

Labels

Label changes:

  • add P3: This repairs browser validation without changing production behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This repairs browser validation without changing production behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 9:24 PM ET / October 22, 2026, 01:24 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Closing as superseded by @shakkernerd's #180167, merged as cadafc0084e25aa63a91506d4378d1f6db7ea7d2. That change exercises the same category-header drag and additionally asserts the complete persisted sectionOrder payload. This test-only PR has no remaining change to land.

@steipete steipete closed this Oct 22, 2026
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant