Skip to content

refactor(line): reuse outbound send options - #131675

Merged
steipete merged 1 commit into
mainfrom
codex/cleanup-line-send-options-28f4
Aug 28, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/cleanup-line-send-options-28f4

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Maintainer-requested cleanup of the LINE plugin's outbound delivery path. The same account/configuration options were repeated across text, batch, Flex, template, location, and quick-reply sends, making routine maintenance unnecessarily repetitive.

Why This Change Was Made

Keep one operation-local options object in the existing payload owner and reuse it for those sends. Media calls still construct their own objects by adding their existing media fields. The production callees only read these shared options; no new helper, public API, configuration, or fallback is introduced.

This is separate from the crash-reconciliation work in #124517, which overlaps these call sites and adds per-push state. Any such state must remain per-send when that work is reconciled; this cleanup only shares the options already invariant within the current payload operation.

User Impact

No user-visible behavior change. Recipient/account selection, native message shapes, delivery order, quick-reply placement, media safety, receipt collection, and partial-delivery behavior are unchanged.

Production LOC: +12/-69 (net -57). Tests: +0/-0.

Evidence

Validated commit e52a134357e865e7edb5cc938fa1ef33435ba12a on parent 871b18dff5039484e86c76d282699a8defcb1654:

  • All 89 tests pass across channel.sendPayload.test.ts, send.test.ts, row-overflow-delivery.loopback.test.ts, and channel.rich-messages.test.ts under extensions/line/src/, with one Vitest worker.
  • The loopback exercises the production LINE outbound adapter and HTTP transport against a local fake provider. It is not authenticated live LINE delivery; installed @line/[email protected] contracts were inspected separately.
  • Canonical owning-package types pass: node scripts/run-tsgo.mjs -p extensions/line/tsconfig.json.
  • Scoped configured lint, formatting, and git diff --check pass. The standard lint wrapper refreshed stale generated SDK declarations after the base update; no source or dependency workaround was needed.
  • Fresh isolated Codex autoreview reported no actionable findings; independent exact-commit source review approved the change after checking option mutability, runtime bindings, callers, siblings, history, and SDK types.

Focused test command:

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs extensions/line/src/channel.sendPayload.test.ts extensions/line/src/send.test.ts extensions/line/src/row-overflow-delivery.loopback.test.ts extensions/line/src/channel.rich-messages.test.ts

Scoped checks:

node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.extensions.json extensions/line/src/outbound.ts
node scripts/run-tsgo.mjs -p extensions/line/tsconfig.json
./node_modules/.bin/oxfmt --check extensions/line/src/outbound.ts
git diff --check

@clawsweeper

clawsweeper Bot commented Aug 28, 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 channel: line Channel integration: line size: S maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 08:45
@steipete steipete self-assigned this Aug 28, 2026
@steipete
steipete merged commit a483d83 into main Aug 28, 2026
171 checks passed
@steipete
steipete deleted the codex/cleanup-line-send-options-28f4 branch August 28, 2026 09:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: line Channel integration: line maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant