Skip to content

fix(composer): collapse pasted text only when it would scroll - #3193

Merged
reachjalil merged 3 commits into
different-ai:devfrom
reachjalil:feature/paste-collapse-threshold
Jul 27, 2026
Merged

fix(composer): collapse pasted text only when it would scroll#3193
reachjalil merged 3 commits into
different-ai:devfrom
reachjalil:feature/paste-collapse-threshold

Conversation

@reachjalil

@reachjalil reachjalil commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • measure pasted text at the live composer width and maximum height
  • collapse it into the existing pasted-text chip only when the rendered content would scroll
  • keep standalone HTTP(S) URLs inline
  • render fitting or expanded pasted content as normal editable text without a highlight
  • support the same paste-chip flow in the welcome/chat-first and centered no-session composers
  • resolve pre-session paste chips back to their full text before creating or sending the task
  • update the existing unit and user-flow definitions for the new behavior

Why

The previous fixed 50-character cutoff ignored the composer width and available vertical space, so relatively short pastes could become attachment-like chips even when they fit. Inline pasted text also received a gray background that made it look different from typed text.

Checks

  • Not run on the latest commit; the branch was pushed immediately at the author's request

Manual verification

Not performed on the latest commit.

  1. Paste content that fits below the composer maximum height and confirm it stays inline without highlighting.
  2. Resize the composer and paste content that would exceed its maximum height; confirm one pasted-text chip appears.
  3. Expand the chip and confirm the full content is editable and styled like normal typed text.
  4. Paste a standalone long HTTP(S) URL and confirm it remains inline.
  5. Repeat the long-paste flow in the welcome/chat-first composer and in the centered composer shown with no selected session.
  6. Start a task from a collapsed pre-session paste and confirm the full pasted text reaches the created task.

Risk and gaps

  • Overflow is measured at paste time using the current composer width and CSS height cap.
  • Focused tests, app typecheck, and the updated coded Electron journey were not run on the latest commit.

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jul 27, 2026 3:46pm

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@reachjalil
reachjalil marked this pull request as ready for review July 27, 2026 15:47
@reachjalil
reachjalil merged commit ede90f6 into different-ai:dev Jul 27, 2026
6 of 10 checks passed
@reachjalil
reachjalil deleted the feature/paste-collapse-threshold branch July 27, 2026 15:48
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.

1 participant