Skip to content

fix(desktop): prevent process text truncation#1214

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

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.

Co-authored-by: Thomas Petersen <thomasp@squareup.com>
Signed-off-by: Thomas Petersen <thomasp@squareup.com>
@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.

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