Skip to content

[Bug]: Config update fails due to incorrect redaction of maxTokens field #13210

@winstonsias

Description

@winstonsias

Summary

invalid config
models.providers.qwen-portal.models.0.maxTokens: Invalid input: expected number, received string

Root Cause

The backend redacts sensitive fields before returning config to the frontend. The maxTokens field is incorrectly identified as sensitive and its numeric value is replaced with the string OPENCLAW_REDACTED. When the frontend submits the config, validation fails because a string is provided where a number is expected.

Expected behavior

maxTokens should not be redacted and should retain its original numeric value.

Actual behavior

maxTokens value is replaced with "OPENCLAW_REDACTED", causing type validation to fail on config submission.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions