Skip to content

[Bug]: keyless WebIQ search disables secrets runtime fast path #107154

Closed as not planned

Description

@galiniliev

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

A keyless, host-proxied WebIQ web-search configuration still disables the secrets runtime fast path on current main, forcing full web-tool/SecretRef preparation even though the container does not hold the provider credential.

Steps to reproduce

  1. Configure current main with tools.web.search.provider set to webiq.
  2. Configure plugins.entries.webiq.config.webSearch.omitAuth as true and do not configure an in-container WebIQ API key.
  3. Prepare the secrets runtime snapshot for startup.
  4. Observe the runtime falls back to full resolver preparation instead of the fast path.

Expected behavior

A host-proxied WebIQ search setup with omitAuth=true, no search credential fields, no legacy x_search, no active web-fetch surface, and no custom plugin load path should be allowed to use the secrets fast path.

Actual behavior

Current main treats any tools.web.search surface and any plugin webSearch config as requiring full secrets/web-tool resolution before checking whether the surface is credential-bearing.

OpenClaw version

current main at 9c2dc92

Operating system

Linux test environment; original cold-start profile source did not include a full OS build string.

Install method

pnpm source checkout

Model

NOT_ENOUGH_INFO

Provider / routing chain

OpenClaw -> host-proxied WebIQ web search

Additional provider/model setup details

The affected setup intentionally keeps the WebIQ credential outside the OpenClaw container. The container sends the request without an API key and a host-owned proxy injects the runtime-owned header at egress.

Logs

Observed local evidence was a patch-backed cold-start profile summary rather than raw profiler output. Current source proof before the fix:

src/secrets/runtime-fast-path.ts treated any tools.web.search or legacy tools.web.x_search key as a runtime web-tool surface, and treated any plugin config.webSearch key as a runtime web-tool surface. That made canUseSecretsRuntimeFastPath return false before SecretRef scanning could prove the keyless WebIQ shape had no credential-bearing values.

Focused proof added with this report:

node scripts/run-vitest.mjs src/secrets/runtime.fast-path.test.ts --reporter=verbose
Test Files 1 passed (1)
Tests 18 passed (18)

Screenshots, recordings, and evidence

No screenshots apply. Evidence is current-main source inspection plus the focused regression test above.

Impact and severity

Affected: deployments using host-proxied/keyless WebIQ search.
Severity: Medium startup performance regression.
Frequency: Every startup with this configuration, based on current source behavior.
Consequence: startup falls off the fast path and runs full secrets/web-tool preparation even though there is no in-container web-search credential to resolve.

Additional information

The fix should stay fail-closed: credential-bearing WebIQ config, custom providers, legacy x_search, active web fetch, and custom plugin load paths should continue to use the resolver path.

Activity

  1. added
    bug
    on Jul 14, 2026
  2. added
    maintainer
    on Jul 14, 2026
  3. clawsweeper commented on Jul 14, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work. Reviewed September 28, 2026, 6:56 PM ET / 22:56 UTC.

    Summary
    Current main and v2026.9.6 still route configured web search through full secrets preparation. The linked fix PR remains open, and its proposed shortcut needs a decision about plugin-owned credential semantics.

    Reproducibility: yes. for the branch choice: current-main source deterministically sends the supplied search configuration to full preparation. This read-only review did not measure the startup cost.

    Root-cause cluster
    Relationship: canonical
    Canonical: #107154
    Summary: The open PR explicitly proposes a fix for this issue, subject to the unresolved plugin-credential contract.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Maintainer decision needed

    Question Recommendation
    Should selected keyless web-search plugins gain a conditional, manifest-owned startup credential declaration, or continue through full secrets and web-tool preparation? Add conditional manifest metadata: Permit the fast path only for an exact declared keyless configuration while retaining SecretRef scans and equivalent provider metadata.

    Why: Current manifests establish provider ownership but not conditional credential semantics; choosing that cross-plugin contract and its safety boundary requires owner intent.

    Next step
    The protected issue has an open paired PR, and the credential-contract choice belongs to plugin and secrets owners.

    Review details

    Best possible solution:

    Define conditional credential eligibility in validated plugin metadata, preserve provider selection and diagnostics, and fail closed for ambiguous or credential-bearing configurations.

    Do we have a high-confidence way to reproduce the issue?

    Yes for the branch choice: current-main source deterministically sends the supplied search configuration to full preparation. This read-only review did not measure the startup cost.

    Is this the best way to solve the issue?

    No for a generic check of the plugin-private omitAuth field: it does not establish credential or metadata semantics. A validated conditional plugin contract is the safer route.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A keyless shortcut based on a plugin-private omitAuth field could skip provider selection or diagnostics, or incorrectly assume another plugin needs no OpenClaw-held credential.

    Codex review notes: model internal, reasoning high; reviewed against e5d45852792b.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P2: The reported effect is startup overhead for a limited host-proxied search setup, without evidence that startup or search fails.
    • impact:auth-provider: The affected startup decision controls web-provider and credential preparation.
    Evidence reviewed

    What I checked:

    Likely related people:

    • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • giodl73-repo: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  4. added
    P2
    impact:auth-provider
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    clawsweeper:linked-pr-open
    clawsweeper:no-new-fix-pr
    on Jul 14, 2026
  5. added
    clawsweeper:needs-product-decision
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:needs-maintainer-review
    and removed
    clawsweeper:needs-live-repro
    issue-rating: 🐚 platinum hermit
    on Jul 31, 2026
  6. added and removed
    clawsweeper:needs-maintainer-review
    on Aug 12, 2026
  7. added
    clawsweeper:needs-maintainer-review
    clawsweeper:fix-shape-clear
    and removed
    clawsweeper:fix-shape-clear
    clawsweeper:needs-maintainer-review
    on Aug 23, 2026
  8. giodl73-repo commented on Oct 20, 2026

    @giodl73-repo
    Contributor

    Tracking update: #107155 was closed unmerged by its author on October 17, at head ff85c33c553de8c87e9f5d3098764672cc76cd45. The earlier review's "open paired PR" description is now historical. No successor was named in the inspected closure timeline; this is not an exhaustive search or a conclusion that the optimization was accepted or rejected.

    The existing secrets/provider owner question remains relevant here: conditional manifest-owned credential metadata versus retaining full preparation. Core should not infer that contract from a plugin-private omitAuth predicate. Provider selection/diagnostics and fail-closed credential handling remain part of the decision.

    Keep this issue as the tracking home. Please record any intended successor or decision here before another implementation is started. Closure is not evidence of a current runtime fix, a measured startup regression, or permission to reopen/recreate the old candidate. No new source or runtime proof is claimed by this update.

  9. steipete commented on Oct 24, 2026

    @steipete
    Contributor

    Thanks for filing this. We're closing older issues that no longer look actionable on current main.

    The paired fix PR (#107155) was closed by its author, and the cost of the full secrets preparation path for keyless web search was never measured. If startup cost from this path matters in practice, please open a fresh issue with timings and a proposal for manifest-declared keyless providers.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugclawsweeper:linked-pr-openclawsweeper:needs-product-decisionclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:auth-providerissue-rating: 🦞 diamond lobstermaintainer

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions