Skip to content

fix(ci): unblock Activity unused-export checks - #199312

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-activity-helper-exports-20261114
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-activity-helper-exports-20261114

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes main's full-tree unused-export check after the Activity tool-feed removal in #199168 (a806af1be280ea36b593eee9ccaf9f8002371e00). It left two test-helper exports without external consumers.

Why

Delete scrollRemainder, whose final caller was removed from the Activity refresh E2E. Make createActivityGatewayStub module-private: inspectorGateway still uses it in the same file, while its final external caller was removed from the Activity page tests.

This completes the follow-up identified while landing #199304. No replacement helper, ignore rule, baseline relaxation or assertion change is needed.

User Impact

The unused-export gate passes again. Product behavior and existing Activity test coverage are unchanged. Test helpers shrink by six lines; production LOC delta is zero.

Evidence

Fresh branch from main 491c2944f56ad7d6d9a561a17dfffcd42cab49e3.

  • Before editing, the pinned full-tree Knip command exits 1 with exactly scrollRemainder and createActivityGatewayStub.
  • pnpm test ui/src/pages/activity/activity-page.test.ts ui/src/pages/activity/activity-page.presence.test.ts ui/src/pages/activity/activity-page.query-readiness.test.ts --maxWorkers=1: 20/20 passed across three files.
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/activity-polish.e2e.test.ts ui/src/e2e/activity-session-refresh.e2e.test.ts: 7/7 passed across two files.
  • The red/green export check is pnpm dlx --package [email protected] knip --config config/knip.all-exports.config.ts --no-progress --reporter compact --include exports,nsExports,types,nsTypes,enumMembers,namespaceMembers --no-config-hints.
  • The identical full-tree Knip command now exits 0 with no unused exports (2m14.8s).
  • Fresh independent Codex autoreview, P0–P2, reviewed the full local diff and both complete helper modules: scoped-clean, no actionable findings. Simplification retained only the unused-function deletion and export removal.
  • pnpm check:changed passes, including affected UI typechecks, formatting/lint, controller guards and all three unused-export scans. git diff --check passes.
  • Exact-head CI run 43653391408 passed all 25 jobs on 0dd04f7a12b924eb737a547ccdf42e56a46db83c, including all three UI shards and the UI E2E shard.
  • ClawSweeper's final review covers that same head and has zero findings and zero open items.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review November 14, 2026 23:28
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

Please review the two-file Activity test-helper cleanup at 0dd04f7a12b924eb737a547ccdf42e56a46db83c. Exact-parent Knip reproduces both unused exports; the identical command now passes. Twenty Activity page tests, seven refresh/polish E2Es, and pnpm check:changed pass. The gateway helper retains its same-module inspectorGateway caller.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T23:29:55.537249Z 0dd04f7 Draft marked ready
ℹ️ 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-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-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Deletes the unused scrollRemainder helper and makes createActivityGatewayStub module-private.

Example: Run the full-tree unused-export check after the Activity feed removal.

  • Before: Knip reports scrollRemainder and createActivityGatewayStub as unused exports.
  • After: Both unused exports are eliminated while inspectorGateway retains its internal stub.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified cleanup supported by reported red/green audit results and affected tests; exact-head CI remains in progress.
Proof confidence 🐚 platinum hermit (4/6) No shipped behavior changes; supplied Knip and focused-test results cover the cleanup, while inspected screenshots belong to the earlier Activity removal.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Contributors encounter unused-export gate failures caused by obsolete Activity test-helper exports.
Reason: The maintainer-directed cleanup restores an existing check without changing product behavior or retained test coverage.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR provides the smallest complete cleanup for the orphaned Activity exports, with no actionable patch defects found.

Priority: P3
Reviewed head: 0dd04f7a12b924eb737a547ccdf42e56a46db83c

Before merge

None.

Findings

None.

Agent review details

How this fits together

Activity test-support modules supply browser assertions and Gateway fixtures to UI tests; Knip audits their externally consumed exports.

flowchart LR
  A[Activity browser tests] --> B[Browser assertion helpers]
  C[Activity page tests] --> D[Inspector fixture]
  D --> E[Private Gateway stub]
  F[Full-tree Knip audit] --> B
  F --> D
Loading

Technical review

Best possible solution:

Remove the unused helper and narrow the remaining fixture's visibility while preserving its inspector caller.

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

Source confirms both orphaned exports and the retained internal caller; the author reports exact-parent red/green Knip results, which were not rerun during this read-only review.

Is this the best way to solve the issue?

Both hunks directly restore the unused-export invariant using existing owners, without replacement scaffolding, suppressions, or weakened assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Activity scroll assertion helper keeps the original intent (5dfd719: The earlier test consolidation shared repetitive assertions; the subsequent intentional feed removal eliminated this helper's final consumer.)
  • Activity Gateway test fixture keeps the original intent (c7d9291: The reconnect repair supplied shared Activity fixtures; making this function private preserves its remaining inspector use.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c7d9291 adds ui/src/pages/activity/activity-page.test-support.ts:100 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c7d92911be35; files: ui/src/pages/activity/activity-page.test-support.ts)

PR surface

Tests -6. Total -6 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 1 7 -6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 1 7 -6

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 P3: This is a narrow test-support cleanup restoring a static-analysis gate without changing shipped 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:

  • P3: This is a narrow test-support cleanup restoring a static-analysis gate without changing shipped 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 14, 2026, 6:32 PM ET / 23:32 UTC.

@steipete
steipete merged commit cad3890 into main Nov 14, 2026
157 of 159 checks passed
@steipete
steipete deleted the steipete/fix-activity-helper-exports-20261114 branch November 14, 2026 23:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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