openclaw - ✅(Solved) Fix [Bug]: 通过 Control UI 发送纯数字时,数字会被自动添加千位分隔符(如 123456789 → 123-456-789) [1 pull requests, 2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#74354Fetched 2026-04-30 06:25:05
View on GitHub
Comments
2
Participants
2
Timeline
4
Reactions
2
Author
Timeline (top)
commented ×2cross-referenced ×1labeled ×1

Fix Action

Fixed

PR fix notes

PR #74369: fix(control-ui): preserve numeric chat input in composer

Description (problem / solution / changelog)

Summary

  • Problem: In Control UI chat composer, pure numeric input could be auto-formatted by browser/OS input behaviors (for example 123456789 becoming grouped with separators), and then sent as modified text.
  • Why it matters: Numeric-only identifiers/arguments must be transmitted exactly; formatting changes can break IDs, URLs, and downstream commands.
  • What changed: Added explicit plain-text input attributes on the chat textarea (autocomplete="off", autocorrect="off", autocapitalize="off", spellcheck="false", inputmode="text"), plus regression tests for composer attributes and numeric payload preservation.
  • What did NOT change (scope boundary): No gateway sanitization changes, no message normalization logic changes, no slash-command/send pipeline refactor.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

  • Closes #74354
  • Related #74354
  • This PR fixes a bug or regression

Root Cause (if applicable)

  • Root cause: Composer textarea lacked explicit plain-text/autocorrect suppression attributes, so browser/OS input behavior could rewrite numeric-only drafts before chat.send.
  • Missing detection / guardrail: No regression test asserted composer input attributes or numeric-only payload pass-through.
  • Contributing context (if known): Current send path forwards draft as typed; once browser-level formatting occurs in textarea value, the modified value is sent.

Regression Test Plan (if applicable)

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file:
    • ui/src/ui/views/chat.test.ts
    • ui/src/ui/app-chat.test.ts
  • Scenario the test should lock in:
    • Composer renders with plain-text input attributes that discourage auto-formatting.
    • Numeric-only draft (123456789) is sent unchanged to chat.send.
  • Why this is the smallest reliable guardrail:
    • Bug trigger is at UI input/composer layer; unit tests at view + send boundary validate exact behavior without broader E2E cost.
  • Existing test that already covers this (if any):
    • None.
  • If no new test is added, why not:
    • N/A (new tests added).

User-visible / Behavior Changes

  • Control UI chat input now explicitly behaves as plain text to reduce browser/OS auto-formatting of numeric-only drafts.
  • Numeric-only messages are more reliably preserved as typed when sent.

Diagram (if applicable)

Before:
[user types 123456789] -> [browser/OS may auto-format draft] -> [chat.send sends modified value]

After:
[user types 123456789] -> [textarea plain-text attributes suppress auto-formatting] -> [chat.send sends original value]

## Changed files

- `ui/src/ui/app-chat.test.ts` (modified, +24/-0)
- `ui/src/ui/views/chat.test.ts` (modified, +14/-0)
- `ui/src/ui/views/chat.ts` (modified, +5/-0)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Control UI 自动将数字转换为千位分隔符格式

问题描述

通过 Control UI 发送纯数字时(如 123456789),数字会被自动转换为带连字符的千位分隔符格式(如 123-456-789)。

这导致:

  • 无法正确传递数字类型的 ID(如 GitHub 用户名)
  • 无法传递纯数字参数
  • 导致URL无法打开

预期行为

数字应该保持原样发送,不应自动格式化。

环境信息

  • OpenClaw 版本:2026.4.15
  • 操作系统:Windows
  • 渠道:Control UI (webchat)

Steps to reproduce

通过 Control UI 发送纯数字时(如 123456789),数字会被自动转换为带连字符的千位分隔符格式(如 123-456-789)。

Expected behavior

null

Actual behavior

null

OpenClaw version

2026.4.15

Operating system

Windows 10

Install method

No response

Model

minimax2.5

Provider / routing chain

minimax

Additional provider/model setup details

<img width="1680" height="957" alt="Image" src="https://github.com/user-attachments/assets/402a7461-b295-478c-aab5-fef1d3d917a5" />

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

Disable automatic formatting of numbers in the Control UI to prevent conversion of numeric IDs and parameters to thousand separator format.

Guidance

  • Investigate the Control UI settings to find an option to disable automatic formatting of numbers.
  • Check the OpenClaw version 2026.4.15 documentation for any configuration options related to number formatting.
  • Test sending numeric IDs and parameters through the Control UI with and without the formatting option enabled to verify the behavior.
  • Consider reaching out to the OpenClaw support team for assistance with configuring the Control UI settings.

Example

No code snippet is provided as the issue is related to the Control UI configuration.

Notes

The issue seems to be specific to the Control UI and OpenClaw version 2026.4.15, so the solution may not apply to other versions or interfaces.

Recommendation

Apply workaround: Disable automatic formatting of numbers in the Control UI, as it is causing issues with numeric IDs and parameters. This should prevent the conversion of numbers to thousand separator format and allow correct transmission of data.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

null

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: 通过 Control UI 发送纯数字时,数字会被自动添加千位分隔符(如 123456789 → 123-456-789) [1 pull requests, 2 comments, 2 participants]