Repository navigation
fix(test): satisfy no-map-spread in exec approvals - #113303
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Current
mainfails the core lint gate atsrc/infra/exec-approvals-allow-always.test.ts:1296withoxc(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, jobcheck-lint.Why This Change Was Made
Replace the object spread inside
entries.mapwithObject.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
node scripts/run-vitest.mjs src/infra/exec-approvals-allow-always.test.ts— 129 passed.oxlint src/infra/exec-approvals-allow-always.test.ts— passed.node scripts/check-changed.mjs -- src/infra/exec-approvals-allow-always.test.ts— passed on Blacksmith Testbox, Actions run https://github.com/openclaw/openclaw/actions/runs/30085883255; test typecheck, formatting, and focused lint are green.$HOME/.claude/skills/autoreview/scripts/autoreview --mode branch --base origin/main— clean, no accepted/actionable findings.