openclaw - 💡(How to fix) Fix [Bug]: repeated characters collapse when displayed in dashboard or tui [1 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#57964Fetched 2026-04-08 01:55:35
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×2renamed ×1

often when same symbol repeats in web dashboard or tui, its collapsed into a single symbol.

initially i thought it was a perplexity issue, but i've tried with 16bit for both model and kv-cache. also seen it happen with multiple models, if one refreshed the browser it will be displayed correctly.

if one reconnects to the tui, it's also displayed correctly again...

i think it didn't happen until maybe 14 days ago or so now... , i think it also happens to display it correctly while its streaming into the dashboard / tui, but then immediately after its done it collapses... and i think it only happens at the end of a word or number, or token...

i've tried to check that this issue isn't already recorded, but couldn't find it. sorry if its is a repeat.

Root Cause

often when same symbol repeats in web dashboard or tui, its collapsed into a single symbol.

initially i thought it was a perplexity issue, but i've tried with 16bit for both model and kv-cache. also seen it happen with multiple models, if one refreshed the browser it will be displayed correctly.

if one reconnects to the tui, it's also displayed correctly again...

i think it didn't happen until maybe 14 days ago or so now... , i think it also happens to display it correctly while its streaming into the dashboard / tui, but then immediately after its done it collapses... and i think it only happens at the end of a word or number, or token...

i've tried to check that this issue isn't already recorded, but couldn't find it. sorry if its is a repeat.

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

often when same symbol repeats in web dashboard or tui, its collapsed into a single symbol.

initially i thought it was a perplexity issue, but i've tried with 16bit for both model and kv-cache. also seen it happen with multiple models, if one refreshed the browser it will be displayed correctly.

if one reconnects to the tui, it's also displayed correctly again...

i think it didn't happen until maybe 14 days ago or so now... , i think it also happens to display it correctly while its streaming into the dashboard / tui, but then immediately after its done it collapses... and i think it only happens at the end of a word or number, or token...

i've tried to check that this issue isn't already recorded, but couldn't find it. sorry if its is a repeat.

Steps to reproduce

seems to happen very often for me, on both ollama and llama.cpp and across multiple agents.

just make it output repeated symbols and it should happen fairly often, but since its just a display thing... its almost irrelevant, just mildly confusing.

Expected behavior

not collapsing displayed repeated symbols while streaming.

Actual behavior

collapsing displayed repeated symbols at the end of a word or number.

OpenClaw version

2026.3.24+ and further back also

Operating system

fedora 43 kde plasma, but since it happens in the dashboard and over ssh in the tui, i seriously doubt its OS related.

Install method

npm i guess , followed either the ollama setup guide, and or the one from the openclaw site, maybe both... pretty old installs i must admit

Model

Qwen3.5-27b-bf16 and devstral-2 123b q6_k

Provider / routing chain

openclaw -> ollama or llama.cpp

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

maybe everyone... tho i guess it could be the age of my installs. since its basically a harmless issue, and it takes a bit of diagnostic to actually notice whats going on. most might just have shrugged it off.

Additional information

No response

extent analysis

Fix Plan

To address the issue of collapsing repeated symbols, we need to modify the display logic in the dashboard and TUI.

  • Update the rendering function to handle consecutive symbols correctly:
def render_symbols(symbols):
    rendered_symbols = []
    for symbol in symbols:
        if rendered_symbols and rendered_symbols[-1] == symbol:
            # Append a non-collapsing separator if the symbol is the same as the previous one
            rendered_symbols.append(symbol)
        else:
            rendered_symbols.append(symbol)
    return rendered_symbols
  • Modify the streaming output to use the updated rendering function:
def stream_output(symbols):
    rendered_symbols = render_symbols(symbols)
    # Output the rendered symbols to the dashboard or TUI
    output.render(rendered_symbols)
  • Ensure that the render_symbols function is called for each output update, including when the streaming is completed.

Verification

To verify that the fix worked, test the following scenarios:

  • Output repeated symbols using the stream_output function and verify that they are displayed correctly without collapsing.
  • Test the display with different models and providers to ensure the fix is not specific to a particular setup.
  • Verify that the issue is resolved in both the dashboard and TUI.

Extra Tips

  • Consider adding a configuration option to control the display behavior for repeated symbols, allowing users to choose between collapsing and non-collapsing displays.
  • Review the rendering logic for other potential issues that may cause display problems, such as handling of special characters or edge cases.

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

not collapsing displayed repeated symbols while streaming.

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 - 💡(How to fix) Fix [Bug]: repeated characters collapse when displayed in dashboard or tui [1 participants]