Skip to content

Fix/chat bubble copy padding - #69888

Closed
Eruditi wants to merge 22 commits into
openclaw:mainfrom
Eruditi:fix/chat-bubble-copy-padding
Closed

Eruditi wants to merge 22 commits into
openclaw:mainfrom
Eruditi:fix/chat-bubble-copy-padding

Conversation

@Eruditi

@Eruditi Eruditi commented Apr 22, 2026 •

Copy link
Copy Markdown

Summary

Describe the problem and fix in 2–5 bullets:

If this PR fixes a plugin beta-release blocker, title it fix(<plugin-id>): beta blocker - <summary> and link the matching Beta blocker: <plugin-name> - <summary> issue labeled beta-blocker. Contributors cannot label PRs, so the title is the PR-side signal for maintainers and automation.

  • Problem:
  • Why it matters:
  • What changed:
  • What did NOT change (scope boundary):

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 #
  • Related #
  • This PR fixes a bug or regression

Root Cause (if applicable)

For bug fixes or regressions, explain why this happened, not just what changed. Otherwise write N/A. If the cause is unclear, write Unknown.

  • Root cause:
  • Missing detection / guardrail:
  • Contributing context (if known):

Regression Test Plan (if applicable)

For bug fixes or regressions, name the smallest reliable test coverage that should catch this. Otherwise write N/A.

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file:
  • Scenario the test should lock in:
  • Why this is the smallest reliable guardrail:
  • Existing test that already covers this (if any):
  • If no new test is added, why not:

User-visible / Behavior Changes

List user-visible changes (including defaults/config).
If none, write None.

Diagram (if applicable)

For UI changes or non-trivial logic flows, include a small ASCII diagram reviewers can scan quickly. Otherwise write N/A.

Before:
[user action] -> [old state]

After:
[user action] -> [new state] -> [result]

Security Impact (required)

  • New permissions/capabilities? (Yes/No)
  • Secrets/tokens handling changed? (Yes/No)
  • New/changed network calls? (Yes/No)
  • Command/tool execution surface changed? (Yes/No)
  • Data access scope changed? (Yes/No)
  • If any Yes, explain risk + mitigation:

Repro + Verification

Environment

  • OS:
  • Runtime/container:
  • Model/provider:
  • Integration/channel (if any):
  • Relevant config (redacted):

Steps

Expected

Actual

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios:
  • Edge cases checked:
  • What you did not verify:

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.

Compatibility / Migration

  • Backward compatible? (Yes/No)
  • Config/env changes? (Yes/No)
  • Migration needed? (Yes/No)
  • If yes, exact upgrade steps:

Risks and Mitigations

List only real risks for this PR. Add/remove entries as needed. If none, write None.

  • Risk:
    • Mitigation:

Eruditi and others added 9 commits April 21, 2026 11:01
The Telegram extension was not passing the humanDelay configuration
to the buffered block dispatcher, which meant typing delay settings
were being ignored for Telegram messages.

Fixes openclaw#68945
Closes openclaw#69550

The chat-bubble element was missing the 'has-copy' CSS class when
copy/expand actions were present. This meant the padding-right: 70px
style (which reserves space for the action buttons) was never applied,
causing the action buttons to overlap with message text content.

This fix ensures the has-copy class is added to the bubble when
hasActions is true, so the reserved padding correctly prevents overlap.
@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram app: web-ui App: web-ui size: XS labels Apr 22, 2026
@greptile-apps

greptile-apps Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR makes two unrelated changes: it fixes a bug in grouped-render.ts where the has-copy CSS class was never applied to chat bubbles (because hasActions was declared after bubbleClasses was built), and it wires resolveHumanDelayConfig into the Telegram dispatcher's dispatcherOptions, with a corresponding test.

Confidence Score: 5/5

Safe to merge — both changes are straightforward and the logic is correct.

The grouped-render.ts fix correctly resolves the ordering bug so has-copy is now conditionally applied. The Telegram humanDelay wiring is simple and covered by a new test. No P0/P1 issues found.

No files require special attention.

Reviews (1): Last reviewed commit: "Merge branch 'openclaw:main' into fix/ch..." | Re-trigger Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8247a6f8c7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +125 to +127
vi.mock("openclaw/plugin-sdk/agent-runtime", () => ({
resolveHumanDelayConfig,
}));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve required agent-runtime exports in this mock

This mock now replaces openclaw/plugin-sdk/agent-runtime with only resolveHumanDelayConfig, but bot-message-dispatch.ts also imports reasoning-lane-coordinator.ts, which imports formatReasoningMessage from the same module. In reasoning-path tests (for example think-tag routing cases in this file), that export becomes missing and the call path can fail at runtime, so the suite no longer reliably exercises the existing reasoning behavior.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fc1f472557

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +125 to +127
vi.mock("openclaw/plugin-sdk/agent-runtime", () => ({
resolveHumanDelayConfig,
}));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep agent-runtime mock from dropping required exports

This mock replaces openclaw/plugin-sdk/agent-runtime with only resolveHumanDelayConfig, but bot-message-dispatch.ts imports reasoning-lane-coordinator.ts, which imports formatReasoningMessage from that same module. In reasoning-related cases, the missing export can break module evaluation/runtime in Vitest, so these tests may fail before exercising the dispatch logic you intend to validate. Use a partial mock (e.g., spreading vi.importActual(...)) so unrelated exports remain available.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3a15e19a36

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +125 to +127
vi.mock("openclaw/plugin-sdk/agent-runtime", () => ({
resolveHumanDelayConfig,
}));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use a partial mock for agent-runtime module

The new vi.mock("openclaw/plugin-sdk/agent-runtime", ...) replaces the whole module with only resolveHumanDelayConfig, which drops formatReasoningMessage that reasoning-lane-coordinator.ts imports. In this suite, reasoning/think-tag paths execute that coordinator, so formatReasoningMessage becomes missing at runtime and tests can fail before exercising dispatch behavior. Keep other exports by spreading vi.importActual(...) in the mock.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93055f43b2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +125 to +127
vi.mock("openclaw/plugin-sdk/agent-runtime", () => ({
resolveHumanDelayConfig,
}));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve agent-runtime exports in this test mock

This vi.mock replaces the entire openclaw/plugin-sdk/agent-runtime module with only resolveHumanDelayConfig, but bot-message-dispatch.ts statically imports reasoning-lane-coordinator.ts, which imports formatReasoningMessage from the same module. As a result, importing bot-message-dispatch.js in this suite can fail before tests execute reasoning/dispatch paths, so the new test setup can break the file rather than validating behavior. Use a partial mock that keeps the rest of the module exports intact.

Useful? React with 👍 / 👎.

@prtags

prtags Bot commented Apr 23, 2026

Copy link
Copy Markdown

Related work from PRtags group relieved-martin-3rs3

Title: Open PR duplicate: Telegram block-stream humanDelay

Number Title
#69022 Fix: apply humanDelay between Telegram streamed block replies (Resolves #68945)
#69879 Fix/telegram humandelay
#69888* Fix/chat bubble copy padding

* This PR

@prtags prtags Bot mentioned this pull request Apr 23, 2026
25 tasks
@clawsweeper

clawsweeper Bot commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

Closing this as duplicate or superseded after Codex automated review.

PR #69888 should close as superseded. It bundles two still-valid fixes that are already tracked by narrower open PRs: #69634 for the Control UI chat bubble has-copy padding issue and #69022 for Telegram block-stream humanDelay. Current main still lacks both fixes, so this is not implemented-on-main; the cleanup reason is that #69888 is the broader, non-canonical duplicate branch.

Best possible solution:

Close #69888 as superseded. Keep the Control UI chat bubble padding fix on #69634, and keep the Telegram block-stream humanDelay fix on #69022, which is narrower and already has maintainer-positive triage.

What I checked:

So I’m closing this here and keeping the remaining discussion on the canonical linked item.

Codex Review notes: model gpt-5.5, reasoning high; reviewed against 8bbb143ab87e.

@clawsweeper clawsweeper Bot closed this Apr 26, 2026
@Eruditi
Eruditi deleted the fix/chat-bubble-copy-padding branch April 27, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: telegram Channel integration: telegram size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant