Skip to content

fix(ci): keep backup and chat search internals private - #189894

Merged
roboclaw-bot merged 1 commit into
mainfrom
main-ci/l186-deadcode
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
main-ci/l186-deadcode

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the backup and chat-search unused exports reported by check-dependencies in scheduled full CI 41252475393.

User Impact

No user-visible behavior change. Backup limits and chat-search highlighting continue to use their existing owners.

Why This Change Was Made

Remove four unused export modifiers introduced by 4fb684e294e2 and d5be7a6a4293 (#170434). The browser tests now exercise the existing production search watcher and state owner instead of importing private implementation details; their assertions remain intact.

Evidence

  • Fresh-main duplicate/owner check found no matching repair. Rebased cleanly onto f121a7f70da4; patch is identical to the accepted bcd893b02508 candidate.
  • Fresh-head focused proof: 8/8 real Chromium browser tests and 42/42 backup completeness cases pass.
  • Fresh-head pnpm deadcode:dependencies clears all four targeted findings but exits 1 on two unrelated unused exported types already present on the new main base: src/channels/plugins/types.plugin.ts: ChannelIdentityLinkAdapter and src/gateway/github-personal-oauth.ts: PersonalGitHubActionV2. The former was introduced and the latter lost its external consumer in 4674051ce50a (feat: link Discord accounts from personal profiles #188910); neither owner is changed here. The aggregate is not claimed green.
  • Fresh-head pnpm deadcode:exports also exits 1 solely for those same two unrelated exported types; its script scan is clean. All four targeted exports are absent from both findings lists. Both scripts passed on the original accepted candidate; unchanged unused-file inventory proof was also clean.
  • Parent validation: three scoped typechecks, lint, format, diff check, and the test-line ratchet pass. No allocations or baselines changed.
  • Local Codex autoreview, P0–P2, c633ec6376e1..bcd893b02508: complete-context scoped-clean, no findings. Full watcher, state owner, and browser tests were supplied. Review did not execute tests; the rebase is patch-identical.

Simplify pass: no production machinery added, no new tests or test seams. Both production files retain their existing line counts; test setup grows by 14 lines to use the real search owner. No rendering change. Exact-head PR CI supplies broad proof.

Requested by @steipete

Work sessions

Discussion, implementation and verification

Drop unused export modifiers after the backup owner cutover and migrate highlight tests to the existing production watcher and search state.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 1, 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 commands Command implementations size: S labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 00:23
@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. labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 1, 2026 00:39
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes four implementation symbols private and updates browser tests to use the existing transcript search owner.

Example: Search notice text for “the rollback”.

  • Before: The browser test invokes the highlighting implementation directly.
  • After: The browser test opens transcript search and sets its query, preserving the expected highlighted text.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, source-verified maintenance with preserved behavioral assertions; supplied validation is test-based and the CI gate is pending.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored cleanup is outside the ordinary contributor proof gate and changes no runtime behavior; reported focused browser and backup tests support it, while inspected screenshots belong to the earlier search feature.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Unused internal exports produce dependency-check findings.
Reason: Maintainer-authored direction is established, and the cleanup preserves production behavior while removing test-only access to implementation details.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is maintainer-authored and makes a focused, useful cleanup of internal exports. No actionable correctness or security finding was identified; the exact-head CI gate remains pending.

Priority: P3
Reviewed head: 5fc7390b1329b0060b5ec93dbab3f5ed34091339

Before merge

None.

Findings

None.

Agent review details

How this fits together

Backup verification consumes archive entries and enforces extraction budgets; transcript search consumes search state and registered text blocks to publish browser highlight ranges.

flowchart TD
  A[Backup archive entries] --> B[Backup verification spool]
  B --> C[Extraction budget checks]
  D[Transcript search state] --> E[Search highlight watcher]
  F[Registered text blocks] --> E
  E --> G[Browser highlight ranges]
Loading

Technical review

Best possible solution:

Retain this focused cleanup and complete the existing exact-head CI gate before landing.

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

Current-main source and repository-wide references establish the unnecessary exports; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch is the smallest complete fix: preserve the existing production owners, remove their unnecessary exports, and migrate tests to the production search interface.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Backup extraction constants keeps the original intent (a1d51ce: The streamed backup verifier shared extraction limits across verification and spooling; the current spool now owns the consuming budget operation.)
  • Chat search highlighting and browser tests keeps the original intent (d5be7a6: The formatted-text search repair introduced pane-owned highlighting, mutation updates, viewport clipping, and teardown; this PR retains that implementation and its assertions.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Holger Gruenhagen: Raw commit d5be7a6 adds ui/src/pages/chat/components/chat-search-highlight.ts:477 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d5be7a6a4293; files: ui/src/pages/chat/components/chat-search-highlight.ts)
  • RoboClaw: Raw commit 4fb684e adds src/commands/backup-verify-spool.ts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4fb684e294e2; files: src/commands/backup-verify-spool.ts)

PR surface

Source 0, Tests +14. Total +14 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 4 4 0
Tests 2 36 22 +14
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 40 26 +14

Labels

Label changes:

  • add P3: This is an internal export and test-boundary cleanup with no intended user-visible behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 an internal export and test-boundary cleanup with no intended user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 October 31, 2026, 8:40 PM ET / November 1, 2026, 00:40 UTC.

@roboclaw-bot
roboclaw-bot merged commit cde4bfe into main Nov 1, 2026
200 checks passed
@roboclaw-bot
roboclaw-bot deleted the main-ci/l186-deadcode branch November 1, 2026 00:49
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 1, 2026
…ed-backup-search-exports-20261101

* commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc':
  fix(ci): keep backup and chat search internals private (#189894)
  fix(codex): recover unused native threads without dropping history (#189900)
  fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855)
  perf(test): parse the Mantis resolver workflow once (#189801)
  fix(agents): revert default hard context admission (#189891)
  refactor(test): use canonical tracked temp paths (#189800)
  chore(ui): refresh control ui locales (#189898)
  improve: show gateway commit and build time on About
  refactor(test): share SDK export fixture JSON writes (#189799)
  fix: restore Files navigation from unavailable previews (#189879)
  refactor(test): share raw ratchet fixture writes (#189798)
  fix(ai): honor Model Studio compatible-mode output limits (#189870)
  fix: hold queued messages through inline edits (#189869)
  perf(test): reuse the baseline fixture Node resolver (#189790)
  test(qa): correlate handoff replies by run identity (#189885)
  fix(ui): normalize canonical Unicode in local search comparisons (#189874)
  fix(ui): explain unsupported browsers without module scripts (#189883)

# Conflicts:
#	ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
Drop unused export modifiers after the backup owner cutover and migrate highlight tests to the existing production watcher and search state.

Co-authored-by: steipete <[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 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. commands Command implementations size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant