Skip to content

refactor(ui): remove unused English text from chat side panels - #201452

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/neat-shell-2
Nov 29, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/neat-shell-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #201187

What Problem This Solves

Translators are still asked to translate 35 English strings that the chat side panels no longer display. They cover side chat, subagents, processes, session files, changes and context.

User Impact

There is no visible change. The panels keep their current labels and behavior. Translated locales and translation memory are untouched.

Why This Change Was Made

Remove the unused English entries and the code that only ordered or tested those entries. Surviving strings keep their catalog order. Below, chat is ui/src/i18n/locales/en-chat-session-optional.ts; processes is ui/src/i18n/locales/en-processes.ts. “No reader” means the full key, suffix and leaf searches plus the runtime-key check found no lookup that displays that entry.

Removed Where it lived Why it's safe to remove
chat.rail.subtitle ("Ask about this session or its project") chat No reader
chat.rail.expand ("Expand side chat") chat No reader
chat.rail.close ("Close side chat") chat No reader
chat.rail.finished ("Finished {time}") chat No reader
chat.rail.health.on-track ("On track") chat No reader
chat.rail.health.grinding ("Working") chat No reader
chat.rail.health.stuck ("Stuck") chat No reader
chat.rail.health.waiting-on-user ("Waiting on you") chat No reader
chat.rail.health.wrapping-up ("Wrapping up") chat No reader
chat.rail.health.done ("Done") chat No reader
chat.rail.health.failed ("Failed") chat No reader
chat.taskSuggestions.started ("Task started") chat No reader
chat.subagentsPanel.desktopFilter.all ("All") chat Only active, waiting and done use desktopFilter.${group}; stopped uses chat.sessionDetails.stopped and failed uses common.failed. There is no all group.
chat.subagentsPanel.desktopFilterLabel ("Filter subagents") chat No reader
chat.subagentsPanel.desktopSearch ("Search subagents") chat No reader
chat.subagentsPanel.desktopCloseSearch ("Close search") chat Used only as a catalog-order anchor; the insertion point is preserved
chat.subagentsPanel.desktopNoResults ("No subagents match your search.") chat No reader
chat.subagentsPanel.desktopNoResultsDescription ("Try a different name or filter.") chat No reader
chat.subagentsPanel.refresh ("Refresh subagents") chat Used only as a catalog-order anchor; the insertion point is preserved
chat.processesPanel.openOutput ("Open output") processes No reader
chat.sessionDetails.contextFree ("Free space") chat The context panel uses contextFreeShort; only catalog ordering and tests named contextFree
chat.sessionDiff.jump ("Jump") chat No reader
chat.sessionDiff.fileCount ("{count} files") chat No reader
chat.sessionDiff.fileCountOne ("{count} file") chat No reader
chat.sessionDiff.disconnected ("Reconnect to view changes.") chat No reader
chat.workspaceConflict.description ("OpenClaw kept your local versions and applied the other …") chat No reader
chat.workspaceFiles.desktop.project ("Project") chat No reader
chat.workspaceFiles.dockRight ("Dock to the right") chat No reader
chat.workspaceFiles.dockBottom ("Dock to the bottom") chat No reader
chat.workspaceFiles.workspace ("Session") chat No reader
chat.workspaceFiles.refresh ("Refresh session workspace") chat No reader
chat.workspaceFiles.session ("Session") chat No reader
chat.workspaceFiles.changedCount ("{count} changed") chat No reader
chat.workspaceFiles.readCount ("{count} read") chat No reader
chat.workspaceFiles.artifactCount ("{count} artifacts") chat No reader
contextFree insertion after contextSystem scripts/lib/control-ui-i18n-catalog.ts Only inserted the deleted contextFree string
desktopCloseSearch insertion point scripts/lib/control-ui-i18n-catalog.ts Moved to the preceding surviving key, desktopFilter
refresh insertion point scripts/lib/control-ui-i18n-catalog.ts Moved to the preceding surviving key, noRunning
Removed-key order expectations test/scripts/control-ui-i18n.test.ts Asserted positions of the deleted keys; the surviving order is still tested
contextFree lookup assertion ui/src/i18n/optional-english-loading.test.ts Exercised the deleted string, not a displayed label

Evidence

  • Independent GPT-6.2 Astra review of the unchanged head fddaf3132c34 against main 42f8c5bcb9f5. The desktop filter constructs keys only for active, waiting and done. Stopped and failed use different namespaces. Comparing the complete ordered source catalog with main minus the 35 listed keys found no other value or order change; the canonical script and optional-English suites cover the registration and insertion boundaries. The keyless verifier and both suites passed on that integration.

Contributor: @vyctorbrzezowski

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 4 commits November 18, 2026 19:53
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 32359a08-da6f-86b4-81de-e0c5dbb4226b
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: S labels Nov 18, 2026
@clawsweeper clawsweeper Bot added 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. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes 35 unused English translation entries and updates catalog ordering and existing assertions.

Example: Generating translation work for chat side panels

  • Before: The source catalog includes the unused “Free space” entry.
  • After: That entry is omitted while the displayed “{tokens} free” label remains.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, narrowly scoped cleanup supported by source verification, existing contract tests, and a passing exact-head CI gate.
Proof confidence 🐚 platinum hermit (4/6) Unused-catalog cleanup has no visible UI behavior requiring shipped-entry-point proof; the reported focused suites support catalog completeness, ordering, and lazy registration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Translation generation continues to include English strings that the chat side panels no longer display.
Reason: The maintainer-authored direction reduces translation maintenance with a small deletion-focused patch and no new product contract.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides a focused, behavior-preserving cleanup of unused translation entries, with no actionable defect found.

Priority: P3
Reviewed head: fddaf3132c34a67220e289f675f5430dfe18d87b

Before merge

None.

Findings

None.

Agent review details

How this fits together

English locale fragments feed both runtime translation registration and the host-side catalog used for translation generation and verification.

flowchart LR
  A[English locale fragments] --> B[Runtime registration]
  B --> C[Panel translation lookups]
  A --> D[Ordered source catalog]
  D --> E[Translation generation]
  D --> F[Catalog verification]
Loading

Technical review

Best possible solution:

Remove the unused entries through the existing catalog owners while retaining displayed labels, lazy registration, and surviving translation order.

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

This is a cleanup rather than a reported runtime failure; source inspection confirms the removed entries lack consumers, including the relevant dynamic lookup paths.

Is this the best way to solve the issue?

The diff is the smallest complete cleanup: it deletes unused source entries and their obsolete assertions while preserving the existing composition owner and ordering contract.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Optional side-panel English entries keeps the original intent (f3bddd1: This commit moved optional presentation copy out of chat boot while retaining shared labels eagerly; it establishes the fragment's placement rather than the original introduction of every string.)
  • Subagent catalog ordering keeps the original intent (878e682: Cold-owner extraction deliberately reconstructed the original translation-memory order; the replacement anchors retain the relative order of surviving keys.)
  • Context inspector catalog and assertions keeps the original intent (803d761: Inspector-only copy followed its lazy panel while shared context labels and ordered composition remained intact; the displayed short free-space label survives.)
  • Process output label keeps the original intent (294cce9: The process-panel refinement added output-detail copy and navigation; removing its now-unreferenced openOutput entry preserves the current output controls.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduction and current main: The introduced diff removes unused entries, relocates two ordering anchors, and removes obsolete assertions; the corresponding production cleanup remains absent from fetched main. (scripts/lib/control-ui-i18n-catalog.ts:423, fddaf3132c34)
  • Dynamic consumers retain their keys: Subagent groups are active, waiting, done, stopped, and failed; stopped and failed use separate namespaces, so the removed desktopFilter.all entry is unreachable. (ui/src/pages/chat/components/chat-subagents-panel-desktop.tsx:26, fddaf3132c34)
  • Displayed context label survives: The context panel reads contextFreeShort; searches found no runtime consumer of the removed contextFree key, and the other dynamic context labels resolve through explicit surviving-key maps. (ui/src/pages/chat/components/chat-context-panel.tsx:343, fddaf3132c34)
  • Repository i18n ownership preserved: The scoped policy assigns ordered composition to the existing host catalog and leaves foreign translation refresh to its publisher; this PR preserves that ownership and does not modify translation memory. (ui/AGENTS.md:65, fddaf3132c34)
  • Validation and discussion: The public body reports passing i18n verification and both affected suites; the latest exact-head commit status reports the CI gate passed, and discussion contains no substantive objections. (fddaf3132c34)
  • Related contribution is distinct: fix: drop the generic hint under the agent name on new sessions #201187 removed the generic new-session hint; its inspected screenshots show that welcome-screen change and do not establish coverage of this catalog cleanup. (b7062c79b858)

Likely related people:

  • Vincent Koc: Raw commit 878e682 adds scripts/lib/control-ui-i18n-catalog.ts:304 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 878e682ecc32; files: scripts/lib/control-ui-i18n-catalog.ts)
  • Peter Steinberger: Raw commit f3bddd1 adds ui/src/i18n/locales/en-chat-session-optional.ts:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f3bddd177cf7; files: ui/src/i18n/locales/en-chat-session-optional.ts)
  • Vyctor H. Brzezowski: Raw commit 294cce9 adds ui/src/i18n/locales/en-processes.ts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 294cce90a1e4; files: ui/src/i18n/locales/en-processes.ts)

PR surface

Source -37, Tests -10, Other -2. Total -49 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 1 38 -37
Tests 2 0 10 -10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 18 20 -2
Total 5 19 68 -49

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:

No label changes.

Label justifications:

  • P3: This removes obsolete translation work without changing displayed controls or 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 18, 2026, 4:07 PM ET / 21:07 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 3beac0e into main Nov 29, 2026
19 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/neat-shell-2 branch November 29, 2026 06:50