Skip to content

refactor(parallel): share search request lifecycle - #128775

Merged
steipete merged 2 commits into
mainfrom
codex/cleanup3-parallel-provider-lifecycle-20260824
Aug 24, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/cleanup3-parallel-provider-lifecycle-20260824

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Parallel's paid web search and its free MCP-backed search maintained duplicate request normalization, cache ownership, cancellation, and result-shaping flows. Future fixes to session isolation or canceled searches could drift between the two providers despite their shared result contract.

Why This Change Was Made

Both provider-private runtimes now delegate their identical request/cache lifecycle to the existing Parallel normalization owner while keeping paid REST and free MCP transport, authentication, endpoint guards, response bounds, and provider-specific session limits in their existing owners. A single post-response cancellation fence prevents either transport from caching results after its caller has canceled.

User Impact

No user-visible behavior, public plugin contract, configuration, provider selection, credentials, or security policy changes. Paid and free Parallel searches retain their existing session isolation, cache partitioning, timeout, streamed-response bounds, MCP handshake, and cancellation behavior.

Evidence

  • Production: +86/-119 (net -33) across three plugin-private files; no tests, configuration, baselines, or public exports changed.
  • Focused paid REST, free MCP, and transport-boundary suite: 55/55 passed.
  • Intentional fault injection: removing the shared post-response cancellation fence made the existing real free-MCP cancellation/cache-isolation test fail because a canceled provider result was returned; restoring the fence returned the complete suite to 55/55 passing.
  • node_modules/.bin/oxfmt --check extensions/parallel/src/parallel-search-normalize.ts extensions/parallel/src/parallel-web-search-provider.runtime.ts extensions/parallel/src/parallel-free-web-search-provider.runtime.ts
  • node scripts/check-changed.mjs --dry-run -- extensions/parallel/src/parallel-search-normalize.ts extensions/parallel/src/parallel-web-search-provider.runtime.ts extensions/parallel/src/parallel-free-web-search-provider.runtime.ts
  • Two independent owner-boundary source reviews accepted the exact final diff; hosted exact-head checks and the repository-native Testbox prepare gate run before landing.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 24, 2026 15:15
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 24, 2026
@steipete
steipete merged commit a23e77b into main Aug 24, 2026
98 checks passed
@steipete
steipete deleted the codex/cleanup3-parallel-provider-lifecycle-20260824 branch August 24, 2026 15:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
* refactor(parallel): share search request lifecycle

* refactor(parallel): keep request helpers private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant