Skip to content

fix(ui): remove context compact button - #130775

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/remove-context-compact-button
Aug 27, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/remove-context-compact-button

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The Control UI context-usage ring added a separate Compact action at high context pressure. That duplicated compaction status chrome and turned an informational usage indicator into an unexpected session mutation control.

Why This Change Was Made

Keep the context ring read-only. Remove the high-pressure action threshold, composer callback pipeline, action styles, obsolete translations, and stale docs while preserving the warning ring itself.

The existing /compact command, automatic compaction, compaction lifecycle status, and session checkpoint controls are unchanged.

User Impact

At high context pressure, the composer still warns through the context ring, but no adjacent Compact button appears. Operators who intentionally want manual compaction can still use /compact.

Evidence

  • Rebased onto current origin/main (0a633d836fb) and resolved the newer composer structure by preserving the read-only ring/popover.
  • Exact repo-pinned oxfmt 0.60.0 --check passed on all 13 touched files.
  • git diff --check passed.
  • node scripts/check-changed.mjs --dry-run -- <touched files> classified the expected UI, core-test, and docs lanes.
  • Mandatory autoreview passed on the full rebased branch with no accepted/actionable findings (0.99 patch-correct confidence).
  • Production LOC excluding formatter-only template indentation: +5/-120 (net -115); tests: +36/-15; docs: +1/-1. Raw production numstat is +86/-199.
  • A browser regression now requires fresh 95% usage to retain warning styling without rendering a context action.
  • Focused remote Vitest/E2E proof was attempted but blocked before tests: Blacksmith Testbox was not authenticated on this host, and two owned AWS Crabbox commands stalled in repository tooling after dependency installation. Both leases were released. Exact-head PR CI is required before landing.

Supersedes #130770, whose publication branch could not be updated without a force-push after rebasing onto current main.

OpenClaw-Publication: 37fcd8f7-5da2-4fe3-afcf-c77609e0ab33
OpenClaw-Publication: 8779879a-59ce-40a4-a6ea-26a4f468f1ca
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui labels Aug 27, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Aug 27, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 27, 2026 07:09
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Land-ready verification for 065b140acd23bb3744ff941157d999445bebb2c3:

  • Before: fresh context usage at 90%+ replaced the read-only ring with a Compact action. After: the warning ring and usage popover remain, with no mutation button. Explicit /compact, automatic compaction, lifecycle status, and checkpoint controls are unchanged.
  • Exact local checks:
    • /home/openclaw/.cache/pnpm/dlx/3d8116016a58fa1e506211ae66a2b79f03c217246786cfab87a10c0b99eb5010/1a04104fb37-1aff52/node_modules/.bin/oxfmt --check docs/web/control-ui.md ui/src/e2e/chat-flow.navigation-presentation.e2e.test.ts ui/src/e2e/chat-quota-pill-93041.e2e.test.ts ui/src/i18n/locales/en.ts ui/src/pages/chat/chat-composer-context.test.ts ui/src/pages/chat/chat-pane-render.ts ui/src/pages/chat/chat-pane-session-controls.ts ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/chat-view.ts ui/src/pages/chat/components/chat-composer-context.ts ui/src/pages/chat/components/chat-composer-types.ts ui/src/pages/chat/components/chat-composer.ts ui/src/styles/chat/layout.css
    • git diff --check origin/main...HEAD
    • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main — clean, 0.99 confidence.
  • Exact-head CI: run 33048597647 passed, including selected Control UI and UI E2E lanes.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 130775 passed with gates_mode=hosted_exact_or_recent_parent; prep and PR heads match.
  • Production LOC excluding formatter-only template indentation: +5/-120 (net -115); tests +36/-15; docs +1/-1.
  • Known proof gap: no local screenshot artifact. Blacksmith was unavailable on this host, and two owned AWS Crabbox attempts stalled before E2E after dependency installation; both leases were released. The checked-in fresh-95% browser regression passed in exact-head CI.
  • Latest ClawSweeper comment is still the review-started placeholder and has no Rank-up moves: list. Per landing policy, the late publisher is not a blocker.

@roboclaw-bot
roboclaw-bot merged commit fa16a4f into main Aug 27, 2026
164 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/remove-context-compact-button branch August 27, 2026 07:30
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
* fix(ui): remove context compact button

* fix(ui): remove context compact button

OpenClaw-Publication: 37fcd8f7-5da2-4fe3-afcf-c77609e0ab33

* fix(ui): remove context compact button

OpenClaw-Publication: 8779879a-59ce-40a4-a6ea-26a4f468f1ca

---------

Co-authored-by: roboclaw-bot <[email protected]>
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants