Repository navigation
test(ui): stop shadowing node:path in context breakdown e2e - #198281
Conversation
Co-authored-by: obviyus <[email protected]>
|
🦞👀 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: needs maintainer review before merge. What this changesRenames 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.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 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 13, 2026, 8:37 AM ET / 13:37 UTC. |
Co-authored-by: obviyus <[email protected]>
Co-Authored-By: Claude Code <[email protected]>
Co-Authored-By: Claude Code <[email protected]>
…#198281) Co-authored-by: obviyus <[email protected]>
Problem
ui/src/e2e/session-context-breakdown.e2e.test.ts(from #198261) declares apathparameter that shadows thenode:pathimport.oxlintreportseslint(no-shadow), socheck-lint-core-4fails on every PR whose merge ref includes currentmain. Pushes tomainskip that lint shard, which is whymainCI stays green.Fix
Rename the helper parameter to
filePath. No behavior change.Evidence
pnpm exec oxlint ui/src/e2e/session-context-breakdown.e2e.test.tsonorigin/main(eb1a592): 1 error (no-shadow).oxfmt --check: clean.