Skip to content

test(ui): stop shadowing node:path in context breakdown e2e - #198281

Merged
obviyus merged 1 commit into
mainfrom
fix-ui-e2e-context-breakdown-shadow
Nov 13, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix-ui-e2e-context-breakdown-shadow

Conversation

@obviyus

@obviyus obviyus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Problem

ui/src/e2e/session-context-breakdown.e2e.test.ts (from #198261) declares a path parameter that shadows the node:path import. oxlint reports eslint(no-shadow), so check-lint-core-4 fails on every PR whose merge ref includes current main. Pushes to main skip that lint shard, which is why main CI stays green.

Fix

Rename the helper parameter to filePath. No behavior change.

Evidence

  • pnpm exec oxlint ui/src/e2e/session-context-breakdown.e2e.test.ts on origin/main (eb1a592): 1 error (no-shadow).
  • Same command with this change: 0 errors.
  • oxfmt --check: clean.

@clawsweeper

clawsweeper Bot commented Nov 13, 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.

@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. P2 Normal backlog priority with limited blast radius. 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 Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Renames the workspace-file fixture parameter from path to filePath so it no longer shadows the node:path import.

Example: Lint ui/src/e2e/session-context-breakdown.e2e.test.ts.

  • Before: The path parameter shadows the node:path import and violates eslint/no-shadow.
  • After: The parameter is named filePath, while generated fixture objects retain their path property.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, behavior-preserving repair supported by current-main source and successful exact-head lint checks; remaining UI CI is still running.
Proof confidence 🐚 platinum hermit (4/6) This test-only rename needs no shipped-product demonstration; inspected screenshots belong to the earlier cost-display PR and do not prove this lint repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: PR validation fails because a browser-test fixture parameter shadows an imported module.
Reason: Restores the existing lint contract with a mechanical rename and no product-direction change.

Regression provenance

Regression provenance — verified: source commit eb1a592fc062 by Ayaan Zaidi; canonical PR #198261 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

Keep this PR: it fixes a current-main lint error with a behavior-preserving rename, and no actionable defects were found.

Priority: P2
Reviewed head: 5c437c06bc682e41ac813aa4ef5b1ccb14447bd7

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI browser-test suite builds workspace-file fixtures for context-breakdown scenarios; this change affects fixture naming and lint validation only.

flowchart LR
  A[Workspace file inputs] --> B[Fixture helper]
  B --> C[Context report fixture]
  C --> D[Browser test scenarios]
  E[Oxlint configuration] --> F[Test source validation]
  B --> F
Loading

Technical review

Best possible solution:

Keep the existing fixture helper and merge this parameter rename once required checks pass.

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

The current-main source contains the conflicting bindings and eslint/no-shadow is enabled as an error; the author reports red-before/green-after lint results, and the affected lint shard passes on this head.

Is this the best way to solve the issue?

This is the smallest complete fix: rename the local binding and preserve the fixture's public property names, values, callers, and assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Workspace-file fixture construction keeps the original intent (16bd3d5: Consolidate repeated fixture scaffolding while retaining owner-boundary tests; the rename preserves that structure and output.)
  • Screenshot path construction keeps the original intent (eb1a592: Capture the new session-total-cost popover using node:path; this PR retains that import and screenshot behavior.)

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit eb1a592 adds ui/src/e2e/session-context-breakdown.e2e.test.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eb1a592fc062; files: ui/src/e2e/session-context-breakdown.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit ff63be5 adds ui/src/e2e/session-context-breakdown.e2e.test.ts:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: ff63be54cf44; files: ui/src/e2e/session-context-breakdown.e2e.test.ts)

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 3 3 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 3 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs a current-main lint failure affecting PR validation without changing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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:

  • P2: Repairs a current-main lint failure affecting PR validation without changing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 November 13, 2026, 8:37 AM ET / 13:37 UTC.

@obviyus
obviyus merged commit 6eb8095 into main Nov 13, 2026
140 of 142 checks passed
@obviyus
obviyus deleted the fix-ui-e2e-context-breakdown-shadow branch November 13, 2026 13:44
obviyus added a commit to 555aaditya/openclaw that referenced this pull request Nov 13, 2026
huwei-xydt added a commit to huwei-xydt/openclaw-signal-quote-uuid that referenced this pull request Nov 13, 2026
huwei-xydt added a commit to huwei-xydt/openclaw-signal-quote-uuid that referenced this pull request Nov 13, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 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 P2 Normal backlog priority with limited blast radius. 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