Skip to content

Conversation

@markijbema
Copy link
Contributor

Summary

This PR fixes the UI display issue where newline placeholders were visible in the command execution display and multi-line commands were cluttering the pattern selector.

Changes

  • CommandExecution.tsx: Restore newlines/carriage returns that were protected during parsing for proper display
  • CommandExecution.tsx: Filter out commands containing newlines from the pattern selector to show only clean patterns (e.g., 'echo' instead of full multi-line text)
  • CommandExecution-display.spec.tsx: Add tests to verify placeholders are not visible and multi-line commands are filtered

Testing

✅ All 17 quote protection tests pass
✅ All 136 command validation tests pass
✅ All 3 new UI display tests pass
✅ All 388 chat and validation tests pass

Before

  • Placeholders like ___NEWLINE___ and ___CARRIAGE_RETURN___ were visible in the UI
  • Multi-line commands appeared in full in the pattern selector, making it cluttered

After

  • Commands display with proper newlines
  • Pattern selector shows only clean, single-line patterns like 'echo'
  • No placeholder text visible to users

- Restore newlines/carriage returns in CommandExecution display that were protected during parsing
- Filter out multi-line commands from pattern selector to show only clean patterns (e.g., 'echo' instead of full multi-line text)
- Add tests to verify placeholders are not visible in UI and multi-line commands are filtered from patterns
- Fixes issue where ___NEWLINE___ and ___CARRIAGE_RETURN___ placeholders were visible in UI
@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2025

⚠️ No Changeset found

Latest commit: 83ca02d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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