Repository navigation
test(ui): open worktree row details before following the owner link - #207547
Conversation
- #203716 moved the worktree owner Session link into the row's collapsed repository details. linked-session-navigation waited for the link to be visible and timed out on every run, alone or in shard order. - Open the row's details first, as a user does, then keep the click and href identity checks unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesThis PR opens the worktree row’s repository disclosure before following its owner Session link. Example: The browser test follows the owner of synthetic-owner-worktree.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this PR makes a minimal, correct repair to a browser test that no longer follows the intended worktree-row interaction; no introduced defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser test supplies synthetic Gateway records to the real worktrees page and verifies that owner links preserve session identity through navigation and reload. flowchart LR
A[Synthetic Gateway records] --> B[Worktrees page]
B --> C[Repository disclosure]
C --> D[Owner Session link]
D --> E[Chat navigation]
E --> F[Transcript and reload assertions]
Technical reviewBest possible solution: Retain this focused test repair and its existing navigation assertions. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically places the Session link inside a collapsed disclosure while the test waits for visibility; the PR reports both variants failing on the base, but no target code was executed during this review. Is this the best way to solve the issue? Opening the existing disclosure is the smallest complete repair because it follows the intended UI interaction and preserves the full session-identity contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4f8d4f5a36d7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 28, 2026, 9:16 AM ET / 14:16 UTC. |
…penclaw#207547) ## Problem `ui/src/e2e/linked-session-navigation.e2e.test.ts:76` fails on main in `checks-ui-e2e (6/10)`: both cases time out after 30 s waiting for the worktree owner "Session" link to be visible. Log signature (CI run 46147302963, shard 6): `locator.waitFor: Timeout 30000ms exceeded … waiting for locator('openclaw-worktrees-page').getByRole('link', { name: 'Session', exact: true }) to be visible`. The failure looked order-dependent, but it is not. The file fails alone on main 642acd5. openclaw#203716 (7561603) moved the owner link into the row's collapsed `<details class="worktree-row__details">` (`ui/src/pages/worktrees/worktrees-page.tsx:315-328`) and did not update this test. The CI failure screenshot shows the row collapsed with the link hidden. Main CI skips ui-e2e through changed-file selection, so the red shows only on PRs that select the shard. ## Solution The test now opens the row's repository details, as a user does, before it waits for the link. The click and href identity checks do not change. ## Impact - Test-only. No product change. - Users: no change. With openclaw#203716 the owner Session link is one disclosure click away. This PR keeps that design. Putting the link back outside the disclosure is a separate product decision. ## Evidence - Red on main: alone on 642acd5, 2/2 cases time out at the same locator. - Green on this branch: `linked-session-navigation.e2e` 2/2 and `worktrees.e2e` 9/9. - `pnpm check:changed`: typecheck, lint and format pass. The dead-export scan fails on 5 existing main exports that this PR does not touch. - Shard proof: the 109-file CI shard-6 set, run locally 3 times on this head. `linked-session-navigation.e2e` passed 2/2 in every run. Two runs passed 109/109. The third run, on a heavily loaded host, failed 3 unrelated files: two initial-roster load timeouts and an `openclaw-id-menu.e2e:178` geometry check, which is tracked separately. - PR CI: `checks-ui-e2e (1/2)` ran `linked-session-navigation.e2e`, and it passed 2/2. Co-authored-by: Ayaan Zaidi <[email protected]>
…ettles (#207510) ## Problem A one-shot command (`openclaw agent --local`, `agent exec`, `templates add`) closes its databases as soon as its own turn returns. Work the command admitted that runs detached from the turn (subagent completion, announcements back to the parent, cleanup flows) is cut off: its next database write fails with `Database maintenance resource admission is closed`, and the result is lost without a visible error. ## Solution One owner waits: the one-shot database owners wait for admitted root work to go idle before they close the databases. - `waitForGatewayRootWorkIdle` (process/gateway-work-admission.ts): resolves when no root work outside the caller is active. It is event-driven (root-work release listeners, no timer). Long-lived subscriptions never count, by the existing `isActiveRootWork` rule, so a process that hosts no Gateway cannot wait on listeners or loops. - `waitForLocalBackgroundWork` (cli/local-state-owner.ts) is the single call both one-shot owners use: `runWithLocalStateOwner` before it closes its resources, and `agent exec` before it cleans up its temporary state. - While it waits, the CLI prints `Waiting for N background tasks to finish. Press Ctrl-C to stop.` Ctrl-C stops the wait: through the CLI signal gate, or through the command's own signal bridge for `agent --local` and `agent exec`. ## User impact - One-shot commands that started detached work keep their databases open until it finishes, with one visible waiting line. - Commands that start no detached work exit as before, with no wait. - Gateway users: unchanged. The wait runs only in the one-shot owners. - This is part A of a split. Part B (subagent spawn in one-shot `agent --local`) builds on it. ## Accepted edge cases - **Ctrl-C** stops the wait, not the work. The databases then close under any work still running, which is what main does today for all detached work. - **Failure retries on timers** hold no root work during the delay, so a one-shot process can exit before a retry runs. The work stays persisted as pending; the next Gateway start recovers it. ## Evidence - New test `local-state-owner.test.ts` "keeps the command's databases open until detached work it admitted settles": red on main (the owner settles while the detached work is still held), green here. - `gateway-work-admission.idle.test.ts`: no work or only a subscription returns at once; detached work is waited for and reported once; an interrupt stops the wait. - Consumer tests of every changed module pass. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 440945f) Later same-path commits from the pinned scan (separate behavior unless named as folded/selected below): a3bd213 test(gateway): start the auth-removal Gateway under process custody like production (#207615). Later PR-number mentions: `6ec3cbf5614c` fix(agents): run sessions_spawn children in one-shot agent --local (#207557), `a3bd2136eec2` test(gateway): start the auth-removal Gateway under process custody like production (#207615) Later commit-SHA mentions: `27036be84d68` test(ui): open worktree row details before following the owner link (#207547), `a3bd2136eec2` test(gateway): start the auth-removal Gateway under process custody like production (#207615) Co-authored-by: RomneyDa <[email protected]>
…207547) ## Problem `ui/src/e2e/linked-session-navigation.e2e.test.ts:76` fails on main in `checks-ui-e2e (6/10)`: both cases time out after 30 s waiting for the worktree owner "Session" link to be visible. Log signature (CI run 46147302963, shard 6): `locator.waitFor: Timeout 30000ms exceeded … waiting for locator('openclaw-worktrees-page').getByRole('link', { name: 'Session', exact: true }) to be visible`. The failure looked order-dependent, but it is not. The file fails alone on main 440945f. #203716 (1a05dca) moved the owner link into the row's collapsed `<details class="worktree-row__details">` (`ui/src/pages/worktrees/worktrees-page.tsx:315-328`) and did not update this test. The CI failure screenshot shows the row collapsed with the link hidden. Main CI skips ui-e2e through changed-file selection, so the red shows only on PRs that select the shard. ## Solution The test now opens the row's repository details, as a user does, before it waits for the link. The click and href identity checks do not change. ## Impact - Test-only. No product change. - Users: no change. With #203716 the owner Session link is one disclosure click away. This PR keeps that design. Putting the link back outside the disclosure is a separate product decision. ## Evidence - Red on main: alone on 440945f, 2/2 cases time out at the same locator. - Green on this branch: `linked-session-navigation.e2e` 2/2 and `worktrees.e2e` 9/9. - `pnpm check:changed`: typecheck, lint and format pass. The dead-export scan fails on 5 existing main exports that this PR does not touch. - Shard proof: the 109-file CI shard-6 set, run locally 3 times on this head. `linked-session-navigation.e2e` passed 2/2 in every run. Two runs passed 109/109. The third run, on a heavily loaded host, failed 3 unrelated files: two initial-roster load timeouts and an `openclaw-id-menu.e2e:178` geometry check, which is tracked separately. - PR CI: `checks-ui-e2e (1/2)` ran `linked-session-navigation.e2e`, and it passed 2/2. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 27036be) Companion audit: #207883 adds worktree cleanup statuses, not delete-dialog path identity. #207398 optimizes scans, #207547 checks owner navigation, and #203819/#201422/#207982/#207579 touch styles, strings, or other fixtures; no prerequisite established. Co-authored-by: RomneyDa <[email protected]>
* fix(worktrees): identify the checkout before deletion Co-authored-by: vyctorbrzezowski <[email protected]> * fix: show the exact checkout before deleting a worktree Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 4b537414-6701-8ad6-bf14-7f1def12956c * fix: keep exact checkout identity in compact worktree rows Co-authored-by: vyctorbrzezowski <[email protected]> * fix: satisfy lint in the touched test * fix: satisfy lint in the Worktrees page * fix(ui): reuse Settings layout constraints for worktree rows --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> (cherry picked from commit 1a05dca) Companion audit: #207883 adds worktree cleanup statuses, not delete-dialog path identity. #207398 optimizes scans, #207547 checks owner navigation, and #203819/#201422/#207982/#207579 touch styles, strings, or other fixtures; no prerequisite established. Release adaptation: Use stable list records for repository labels, keep stable create and removal behavior, and show the exact checkout in both existing confirmation dialogs. Co-authored-by: RomneyDa <[email protected]>
…207547) ## Problem `ui/src/e2e/linked-session-navigation.e2e.test.ts:76` fails on main in `checks-ui-e2e (6/10)`: both cases time out after 30 s waiting for the worktree owner "Session" link to be visible. Log signature (CI run 46147302963, shard 6): `locator.waitFor: Timeout 30000ms exceeded … waiting for locator('openclaw-worktrees-page').getByRole('link', { name: 'Session', exact: true }) to be visible`. The failure looked order-dependent, but it is not. The file fails alone on main 440945f. #203716 (1a05dca) moved the owner link into the row's collapsed `<details class="worktree-row__details">` (`ui/src/pages/worktrees/worktrees-page.tsx:315-328`) and did not update this test. The CI failure screenshot shows the row collapsed with the link hidden. Main CI skips ui-e2e through changed-file selection, so the red shows only on PRs that select the shard. ## Solution The test now opens the row's repository details, as a user does, before it waits for the link. The click and href identity checks do not change. ## Impact - Test-only. No product change. - Users: no change. With #203716 the owner Session link is one disclosure click away. This PR keeps that design. Putting the link back outside the disclosure is a separate product decision. ## Evidence - Red on main: alone on 440945f, 2/2 cases time out at the same locator. - Green on this branch: `linked-session-navigation.e2e` 2/2 and `worktrees.e2e` 9/9. - `pnpm check:changed`: typecheck, lint and format pass. The dead-export scan fails on 5 existing main exports that this PR does not touch. - Shard proof: the 109-file CI shard-6 set, run locally 3 times on this head. `linked-session-navigation.e2e` passed 2/2 in every run. Two runs passed 109/109. The third run, on a heavily loaded host, failed 3 unrelated files: two initial-roster load timeouts and an `openclaw-id-menu.e2e:178` geometry check, which is tracked separately. - PR CI: `checks-ui-e2e (1/2)` ran `linked-session-navigation.e2e`, and it passed 2/2. Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Problem
ui/src/e2e/linked-session-navigation.e2e.test.ts:76fails on main inchecks-ui-e2e (6/10): both cases time out after 30 s waiting for the worktree owner "Session" link to be visible.Log signature (CI run 46147302963, shard 6):
locator.waitFor: Timeout 30000ms exceeded … waiting for locator('openclaw-worktrees-page').getByRole('link', { name: 'Session', exact: true }) to be visible.The failure looked order-dependent, but it is not. The file fails alone on main 440945f. #203716 (1a05dca) moved the owner link into the row's collapsed
<details class="worktree-row__details">(ui/src/pages/worktrees/worktrees-page.tsx:315-328) and did not update this test. The CI failure screenshot shows the row collapsed with the link hidden. Main CI skips ui-e2e through changed-file selection, so the red shows only on PRs that select the shard.Solution
The test now opens the row's repository details, as a user does, before it waits for the link. The click and href identity checks do not change.
Impact
Evidence
linked-session-navigation.e2e2/2 andworktrees.e2e9/9.pnpm check:changed: typecheck, lint and format pass. The dead-export scan fails on 5 existing main exports that this PR does not touch.checks-ui-e2e (6/10)on this PR.