Skip to content

fix: keep spawned-session tests independent of sidebar sort - #180666

Merged
steipete merged 1 commit into
mainfrom
solid2/w-fix-sidebar-session-identities
Oct 22, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-fix-sidebar-session-identities

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #172189

What Problem This Solves

The spawned-session sidebar tests time out after child sessions follow the selected sidebar sort. They identify the active and completed children by ordinal position, which no longer identifies those sessions reliably.

User Impact

No production behavior changes. The existing tests continue to verify active, completed, stale, and failed child states, nesting, personal pins, row actions, and navigation while allowing the sidebar to honor its selected sort.

Why This Change Was Made

Select the active and completed fixture sessions by their existing data-session-key, then reuse the completed row for its action menu and navigation checks. This removes the obsolete positional assumption without changing the assertions or sorting behavior.

Evidence

Check Result
Both original nests spawned sessions (personal pin: false/true) cases on clean protected main 3f2d28fa4f6ee41685bfe390e4867bce51091738 Both fail at line 174 waiting for the first child’s Active run icon; 65.24 s total
Both corrected cases, same production build Both pass; 2 passed / 9 skipped; 3.770 s and 3.565 s; 13.12 s total
Owning UI E2E typecheck Passed
Scoped lint and diff check Passed
Independent Codex review through P2 No actionable findings

The browser proof used the supported prebuilt-assets contract with a single clean build of the actual failing CI base. The relevant sidebar/test inputs match the failing PR, so the red proof attributes these failures to main. Only the two changed cases were run locally. Normal PR selection supplies broad validation; this test-only correction does not need ci:full.

Production LOC changed: 0. Test diff: +5 / −4 (one net line); no new test cases or runtime abstractions. No leases used.

@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

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 🔄 Running since 2026-10-22T13:45:56.737825Z 56248bb 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.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 13:50
@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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. clawsweeper:intake:needs-repro 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

This PR selects spawned sidebar sessions by their session keys instead of their positions.

Example: The sidebar sorts agent:main:verify-tests away from the second child position.

  • Before: The test checks the second child for the completed status, menu actions, and navigation.
  • After: Those checks consistently target agent:main:verify-tests wherever it appears.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, correct test repair supported by reported focused browser validation and independently verified source contracts.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored test-only correction changes no production owner; the body reports both corrected Chromium cases passing against unchanged production assets, while linked screenshots establish sorting context only.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Contributors encounter failing spawned-session browser checks after the sidebar correctly applies its selected sort.
Reason: The correction restores useful existing coverage without changing runtime behavior or weakening assertions.

Merge readiness

✅ Ready for maintainer review

This PR is a focused test repair that preserves the existing behavioral assertions while removing an obsolete ordering assumption; no actionable defects were found.

Priority: P3
Reviewed head: 56248bb6bf2f5675adc7c5f960825d8ea5f2b5fc

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI browser suite supplies synthetic Gateway session rows, renders the production sidebar, and checks child status, nesting, actions, and navigation.

flowchart LR
  A[Session fixtures] --> B[Simulated Gateway]
  B --> C[Production sidebar]
  C --> D[Sorted child rows]
  D --> E[Session key locators]
  E --> F[Behavior assertions]
Loading

Technical review

Best possible solution:

Use the existing session-key attributes for identity-dependent checks and retain separate coverage of sidebar ordering.

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

Source confirms that identity-dependent assertions use positions despite sorted children, and the PR reports matching red-before/green-after browser runs.

Is this the best way to solve the issue?

Selecting the existing fixture identities is the smallest complete correction and preserves the status, menu, nesting, pin, and navigation contracts.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Spawned-session status and navigation assertions keeps the original intent (a5ee503: The suite split preserved existing behavioral checks; it does not establish the original introduction of positional selection.)
  • Completed-child menu selection keeps the original intent (248966d: Provide direct child-session management through the existing menu owner; selecting the completed fixture by identity preserves that coverage.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e5da341 adds ui/src/e2e/session-management.sidebar.e2e.test.ts:137 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e5da34168d53; files: ui/src/e2e/session-management.sidebar.e2e.test.ts)
  • Holger Gruenhagen: Raw commit f4e3844 adds ui/src/components/app-sidebar-session-tree.ts:147 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f4e384450c45; files: ui/src/components/app-sidebar-session-tree.ts)

PR surface

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

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

Labels

Label changes:

  • add P3: This is a narrow browser-test correction with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrow browser-test correction with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • 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 22, 2026, 10:00 AM ET / 14:00 UTC.

@steipete
steipete merged commit 3cd9bdd into main Oct 22, 2026
92 checks passed
@steipete
steipete deleted the solid2/w-fix-sidebar-session-identities branch October 22, 2026 14:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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