Skip to content

fix(ui): keep plugin route bridge parameter private - #199553

Merged
steipete merged 1 commit into
mainfrom
fix/ci436945-deadcode
Nov 15, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci436945-deadcode

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the production unused-export check in scheduled CI 43694545374, which reports INTERNAL_PLUGIN_PATH_PARAM in the Control UI.

User Impact

No user-visible behavior changes. Plugin tab links and their startup pathname bridge keep the same behavior.

Why This Change Was Made

#199338 moved the query parser into the route-path owner. The bridge parameter now has no external production consumer, so keep it private and supply the literal query string in the existing behavior test. This removes a test-only export without adding an ignore, suppression, compatibility path, or test case. Diff: production +1/−1; tests +1/−2.

Evidence

  • The same production Knip UI export scan fails with exactly this finding before the change and passes with zero findings afterward.
  • Both route-path and plugin-tab test files pass, 58 tests total.
  • Focused default tsrs, lint, format, and diff checks pass. The initial external typecheck configuration could not locate Node types; qualifying its type roots resolved the setup error.
  • Independent local Codex autoreview of the complete local change against 932b13220bfdac6e4b191c831421e0e8772b9c3d, including both complete files, is clean through P2. Local ClawSweeper is unavailable; hosted review follows the repository route.

This is the scoped CI-fixer repair for the linked scheduled failure. Broad repository checks are left to PR CI.

@clawsweeper

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

@steipete
steipete marked this pull request as ready for review November 15, 2026 09:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 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-15T09:50:50.314711Z c0cea99 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.

@steipete
steipete enabled auto-merge (squash) November 15, 2026 09:54
@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 Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Makes the plugin pathname bridge constant private and uses its literal query key in the existing routing test.

Example: Opening /ui/reports through the startup pathname bridge.

  • Before: The bridge resolves the reports tab, but its constant is exported solely for a test.
  • After: The bridge resolves the same tab with the constant private to its production owner.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified maintenance fix supported by passing focused CI, with no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) This behavior-preserving export cleanup requires no shipped-entry-point demonstration; inspected screenshots show the earlier Connected apps placement change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored change repairs an unnecessary export without suppressing analysis, adding machinery, or changing a public plugin API.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, correct cleanup of a test-only export, with no actionable code findings; exact-head CI is still completing.

Priority: P3
Reviewed head: c0cea9986d1220d4013e3182e4ccbce26b23715e

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI route-path module converts plugin slug paths and bridged query parameters into plugin tab identities consumed by navigation and page loading.

flowchart LR
  A[Plugin slug URL] --> B[Router pathname bridge]
  B --> C[Route path owner]
  C --> D[Plugin tab identity]
  D --> E[Plugin page]
Loading

Technical review

Best possible solution:

Keep the bridge key private in the existing route-path owner while preserving the independent routing assertion.

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

Current-main references establish the test-only export; the PR reports a failing production export scan before the change and a clean scan afterward, without an independent run during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete fix: remove the unnecessary export and retain the existing behavioral test using an independent input literal.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 55029d41d506.

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

  • Pinned patch preserves behavior: The introduced production change removes only export; the test retains its assertion with the literal bridge query key. (ui/src/app-route-paths.ts:128, c0cea9986d12)
  • Current-main consumer audit: Current main has only two internal production references and the test import; there is no external production consumer requiring the export. (ui/src/app-route-paths.ts:182, 55029d41d506)
  • Prior ownership consolidation: improve(ui): move Connected apps into Settings #199338 moved the query parser into the route-path owner to remove an import cycle, leaving the constant without an external production consumer. (ui/src/app-route-paths.ts:175, 032227a96023)
  • Validation and inspection limits: Exact-head UI, production type, lint, architecture and security checks passed; some browser shards remain running. The linked scheduled dependency job failed, but its logs redirect to a blocked artifact host, so its exact diagnostic was not independently inspected. Older history traversal encountered a missing object; relevant feature and consolidation commits were available. (c0cea9986d12)

PR surface

Source 0, Tests -1. Total -1 across 2 files. Added test files: 0.

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

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: Removes an unused internal export 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:

  • P3: Removes an unused internal export 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 15, 2026, 5:04 AM ET / 10:04 UTC.

@steipete
steipete merged commit 8d04ce0 into main Nov 15, 2026
161 of 164 checks passed
@steipete
steipete deleted the fix/ci436945-deadcode branch November 15, 2026 10:10
@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