Skip to content

refactor(ui): localize internal-only symbols - #100931

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-full-sweep-20260706-v10
Jul 6, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-full-sweep-20260706-v10

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The Control UI exposes ten symbols that have no consumers outside their defining modules. This unnecessarily broadens internal module APIs.

Fixes #100930

Why This Change Was Made

Whole-repository TypeScript search and the current codebase-memory graph both show only module-local callers. This change removes the stale export modifiers while preserving every runtime call path and higher-level exported contract.

User Impact

No behavior change. The Control UI keeps the same runtime behavior with a smaller internal API surface.

Evidence

  • node scripts/run-vitest.mjs ui/src/app/exec-approval.test.ts ui/src/lib/channels/index.test.ts ui/src/pages/chat/realtime-talk-conversation.test.ts ui/src/pages/tasks/data.test.ts - 39 tests passed.
  • oxfmt --check on all six changed files - passed.
  • pnpm check:changed through Crabbox Testbox tbx_01kwvw53044xxajgexfsakkd7n - passed.
  • Fresh Codex autoreview with gpt-5.5 high reasoning - no findings.
  • Full codebase-memory index: 273,857 nodes and 1,091,336 edges; current graph queries show no cross-file incoming edges for the localized runtime symbols.

@vincentkoc vincentkoc self-assigned this Jul 6, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 6, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof for 47ca410d7ca6f0053783a63c490ddbef53857cb2:

  • Focused Control UI suite: 4 files, 39 tests passed.
  • Formatting: oxfmt --check passed on all six changed files.
  • Exact-head changed gate: pnpm check:changed passed in Crabbox Testbox tbx_01kwvw53044xxajgexfsakkd7n (Actions run 28797740648).
  • Fresh Codex autoreview (gpt-5.5, high reasoning): no findings.
  • Full codebase-memory graph rebuilt on current main plus this PR; graph queries show no cross-file incoming edges for the localized runtime symbols.
  • Review artifacts validate with READY FOR /prepare-pr, zero findings, and no proof gaps.

@vincentkoc
vincentkoc marked this pull request as ready for review July 6, 2026 14:16
@vincentkoc
vincentkoc merged commit 5733fb0 into main Jul 6, 2026
122 of 124 checks passed
@vincentkoc
vincentkoc deleted the refactor/deadcode-full-sweep-20260706-v10 branch July 6, 2026 14:28
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 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 maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(ui): localize internal-only Control UI symbols

1 participant