Skip to content

fix(desktop): prevent process text truncation#1214

Open
thomaspblock wants to merge 1 commit into
mainfrom
fix-bot-activity-text-truncation
Open

fix(desktop): prevent process text truncation#1214
thomaspblock wants to merge 1 commit into
mainfrom
fix-bot-activity-text-truncation

Conversation

@thomaspblock

Copy link
Copy Markdown
Collaborator

Summary

  • Let inline bot/process activity use available composer toolbar width instead of a fixed max-w-40 cap
  • Add flex/truncation containment for both the main composer activity row and thread panel toolbar
  • Add Playwright screenshot coverage for main + thread process text ellipsizing

Validation

  • pnpm --dir desktop typecheck
  • pnpm --dir desktop check
  • pnpm --dir desktop exec playwright test process-text-screenshots.spec.ts --project=smoke

Screenshots

Posted in Buzz thread.

@thomaspblock thomaspblock marked this pull request as draft June 23, 2026 18:46
Comment on lines +1 to +12
import { expect, test, type Page } from "@playwright/test";

import { installMockBridge } from "../helpers/bridge";
import { waitForAnimations } from "../helpers/animations";

const SHOTS = "test-results/process-text";
const AGENT_PUBKEY = "ab".repeat(32);
const AGENT_NAME =
"Brain process status with a deliberately long operation label that should ellipsize cleanly";
const KIND_TYPING_INDICATOR = 20002;

async function waitForMockLiveSubscription(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@thomaspblock do we need the screenshot tests here for this one? It seems like it's adding code and test time, so I want to make sure it's useful.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is still a draft. Will add video/screenshot once I am sure it works.

Co-authored-by: Thomas Petersen <thomasp@squareup.com>
Signed-off-by: Thomas Petersen <thomasp@squareup.com>
@thomaspblock thomaspblock force-pushed the fix-bot-activity-text-truncation branch from 1f1043a to 72952d0 Compare June 26, 2026 23:58
@thomaspblock

Copy link
Copy Markdown
Collaborator Author

Process text truncation proof

The process/bot activity label now stays inside the composer activity row and ellipsizes cleanly in both surfaces.

Main composer

01-main-composer-process-text

Thread composer

02-thread-composer-process-text

thomaspblock added a commit that referenced this pull request Jun 27, 2026
@thomaspblock thomaspblock marked this pull request as ready for review June 27, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants