Skip to content

fix(test): satisfy no-map-spread in exec approvals - #113303

Merged
steipete merged 1 commit into
mainfrom
fix/exec-approvals-no-map-spread
Jul 24, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/exec-approvals-no-map-spread

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Current main fails the core lint gate at src/infra/exec-approvals-allow-always.test.ts:1296 with oxc(no-map-spread), blocking merge gates for unrelated PRs.

Provenance: commit 1fc81c20548e3323c2f5ab05cd41338b5647c726, merged through PR #112946, introduced the failing expression. The failure is captured in CI run https://github.com/openclaw/openclaw/actions/runs/30085311660, job check-lint.

Why This Change Was Made

Replace the object spread inside entries.map with Object.assign({}, entry, { source: "allow-always" as const }). This preserves the fresh shallow copy, property order, entry values, and final source override while satisfying the lint rule. No assertions or test inputs change.

AI-assisted: yes. The mandated global Codex autoreview helper completed cleanly; no substitute helper was needed.

User Impact

No product or test behavior changes. The repair restores the shared lint/merge gate so unrelated PRs, including #113299, can proceed.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 24, 2026
@steipete steipete self-assigned this Jul 24, 2026
@steipete
steipete marked this pull request as ready for review July 24, 2026 10:28
@steipete
steipete merged commit b614661 into main Jul 24, 2026
165 of 167 checks passed
@steipete
steipete deleted the fix/exec-approvals-no-map-spread branch July 24, 2026 10:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 24, 2026
…omic-publication-20260724

* origin/main:
  refactor(memory-lancedb): remove dead legacy path scan (#113299)
  fix(test): satisfy no-map-spread in exec approvals (#113303)
  fix: keep OAuth refresh failures terminal [AI] (#112957)
  fix: reusable exec approvals apply to approved arguments (#112946)
  refactor(agents): split tool search internals (#113296)
  fix: keep inline eval approvals one-shot [AI] (#112956)
  refactor(normalization): reuse trimmed list helpers (#113295)
  fix(openai): fail fast on invalid TLS certificates (#111818)
  fix: recognize more shell wrappers [AI] (#112955)
  fix(i18n): correct Indonesian seconds labels
  chore(i18n): refresh native locales
  fix: block opaque exec dispatch wrappers (#112953)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant