Skip to content

Release v6.7.4: paste chips for large pasted text - #44

Merged
code-crusher merged 2 commits into
mainfrom
release/v6.7.4
Aug 4, 2026
Merged

Release v6.7.4: paste chips for large pasted text#44
code-crusher merged 2 commits into
mainfrom
release/v6.7.4

Conversation

@code-crusher

Copy link
Copy Markdown
Member

Release v6.7.4

Collapse large pastes (500+ chars) in the prompt input into a removable paste chip.

What changed

  • InputBox: pastes >= 500 characters render as a 📋 <first words> chip row above the prompt instead of flooding the input.
  • The chip records the cursor position at paste time; on submit the full text is merged back into the message at that position, separated from surrounding text by two blank lines.
  • Backspace with an empty prompt removes the most recent chip; Escape clears chips along with the prompt.
  • Version bumped to 6.7.4 and CHANGELOG updated.

Compatibility

No API or config changes. Behavior triggers only for pastes >= 500 characters.

@matterai-app

matterai-app Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary By MatterAI MatterAI logo

🔄 What Changed

  • Bumped project version to 6.7.4 in package.json.
  • Introduced paste chip management in InputBox.tsx for large text pastes (>=500 characters) to keep the terminal prompt clean.
  • Added helper functions formatPasteChipName and mergePasteChips to handle chip naming and re-insertion on submit or backspace.

🔍 Impact of the Change

  • Improves CLI user experience by preventing large multi-line pastes from cluttering the terminal prompt.
  • Streamlines prompt submission and editing workflows when handling large text chunks.

📁 Total Files Changed

Click to Expand
File ChangeLog
Version Bump package.json Updated package version to 6.7.4.
Paste Chips src/ui/components/InputBox.tsx Added support for collapsing large text pastes into UI chips with merge logic.

🧪 Test Added/Recommended

Recommended

  • Add unit tests for formatPasteChipName to verify truncation and whitespace normalization.
  • Add integration tests for mergePasteChips to ensure correct cursor positioning during text submission.

🔒 Security Vulnerabilities

  • None detected.

@matterai-app

matterai-app Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

✅ Reviewed the changes: Well-structured paste chip feature with proper state management, merge logic, and height calculation. One minor dead code issue found.

@code-crusher
code-crusher merged commit e35730d into main Aug 4, 2026
1 check passed
@code-crusher
code-crusher deleted the release/v6.7.4 branch August 4, 2026 20:37
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