Repository navigation
refactor(line): remove dead card helpers - #117729
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 9:35 PM ET / August 2, 2026, 01:35 UTC. ClawSweeper reviewWhat this changesThe PR removes private, unused LINE rich-card helper implementations, runtime-barrel exports, a Flex type alias, and tests dedicated solely to those wrappers. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for protected-label human merge handling. The deletion is consistent with the private LINE plugin boundary and the inspected source shows no production caller for the removed helpers; no patch correctness finding remains. The contributor’s evidence is CI/test-only rather than after-fix real behavior proof, so a maintainer should decide whether to request a redacted LINE-path run or apply an explicit proof override. Likely related people: Vincent Koc (high confidence, introduced the current helper block) and steipete (medium confidence, recent contributor across the affected LINE files). Priority: P3 Review scores
Verification
How this fits togetherThe LINE channel plugin turns OpenClaw card commands and portable reply payloads into LINE template or Flex messages before sending them through the LINE transport. The bundled entrypoint consumes a narrow runtime API, while the plugin’s public API is exported separately through flowchart LR
A[OpenClaw command or reply payload] --> B[LINE plugin entrypoint]
B --> C[Card command and reply conversion]
C --> D[Supported template and Flex builders]
D --> E[LINE Messaging API payload]
E --> F[LINE chat delivery]
Decision needed
Why: The patch appears correct, but the external-PR proof gate is not met and the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource -262, Tests -104. Total -366 across 6 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused removal, then add a redacted after-fix LINE Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes unreachable private wrappers rather than fixing a reported user failure. The relevant verification is caller reachability plus preservation of the supported LINE conversion paths, both of which were inspected from source. Is this the best way to solve the issue? Yes: removing the unused private wrappers is the narrowest maintainable solution because the public AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 846a454d9219. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…elf-release * commit '10a390ed7fa88d09da0d4523c3ed1e3550ece5c6': (4646 commits) fix(release): allow larger npm plugin artifacts (openclaw#117745) refactor(macos): consolidate gateway process fixtures (openclaw#117740) fix(ui): preserve complete persisted log messages (openclaw#117666) fix(ui): decode artifact previews as UTF-8 (openclaw#117657) fix(control-ui): restore sandbox media previews (openclaw#117689) fix(plugins): link host declared as direct dependency (openclaw#117738) fix(macos): avoid self-named defaults suite (openclaw#117690) fix(inference): preserve run ownership and completion delivery (openclaw#117731) test(talk): align browser E2E tool completion test: consolidate OpenClaw E2E fixtures (openclaw#117701) fix(release): ignore bundle fields in npm locks (openclaw#117730) fix(meeting-bot): keep configured host options internal refactor(line): remove dead card helpers (openclaw#117729) perf(cli): attribute command startup stages (openclaw#117720) refactor(whatsapp): deduplicate reply delivery test fixtures (openclaw#117710) docs(changelog): note bounded WebRTC tool calls docs(changelog): note meeting audio bounds fix(meeting-bot): preserve node host SDK surface test(talk): split WebRTC tool lifecycle coverage fix(meeting-bot): break node host import cycle ... # Conflicts: # package.json # src/agents/model-auth.ts
What Problem This Solves
The LINE plugin carried private rich-card convenience builders that had no production callers. They expanded the runtime barrel, package output, and test surface even though supported LINE commands and reply delivery used different canonical builders.
Why This Change Was Made
This removes the zero-caller image-carousel, product/menu/confirmation, generic Flex-carousel, and notification helpers at the LINE plugin owner. The documented public
api.tscontract is unchanged, as are/cardbehavior and the canonical confirm/buttons/carouselReplyPayloadconversion path.Removed paths are the dead helper implementations, their internal barrel exports, the orphaned
FlexCarouselalias, and tests that existed only for those private wrappers. Production delta is +1/-263 (net -262); tests are +12/-116 (net -104); total is net -366.User Impact
No user-visible behavior changes. Existing LINE card commands, transport behavior, native SDK payloads, and supported reply-template families remain available and tested.
Evidence
pnpm check:changedon the final six-file diff: passed, including extension production/test typechecks, lint, dead-export scans, API baseline, plugin boundaries, runtime sidecar loaders, and import-cycle checks.--pack-dry-run: passed with the generated runtime/package metadata and bundled dependencies.pnpm build: passed, including Plugin SDK export verification and Control UI performance checks.git diff --check: clean.@line/bot-sdk11.2.0 types; no remaining behavior or contract finding.Contract evidence: plugin docs define
runtime-api.tsas internal-only andapi.tsas the external contract; the LINE entry point resolves onlysetLineRuntimefrom the runtime barrel. Full repository and tagged-release searches found no production reader for any deleted name.Maintainer Proof Decision
Maintainer proof override: the available proof is sufficient for this deletion-only cleanup. A credentialed live LINE send would exercise only the retained paths and cannot exercise the removed zero-caller helpers. The final branch instead ran every retained
/cardfamily and all supported confirm/buttons/carousel template families through the real@line/bot-sdkclient against a mock LINE API endpoint, covering authenticated push and reply requests, in addition to the complete LINE suite, package build/pack, changed gate, and full repository build above.