[PR #5714] [MERGED] fix(common): prevent hang when highlighting large responses #5325

Closed
opened 2026-03-17 02:46:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5714
Author: @chhaviG22
Created: 12/19/2025
Status: Merged
Merged: 1/15/2026
Merged by: @jamesgeorge007

Base: nextHead: fix/large-response-highlight


📝 Commits (3)

  • 3e297ee Fix application hang when highlighting large response bodies
  • 36336eb fix: review points
  • b69499e chore: cleanup

📊 Changes

1 file changed (+31 additions, -8 deletions)

View changed files

📝 packages/hoppscotch-common/src/composables/codemirror.ts (+31 -8)

📄 Description

Closes #5713

This PR addresses the issue where the application becomes unresponsive when processing large response bodies (>10K lines, >1.4MB). Optimizations have been implemented to ensure smooth interaction and improved performance while handling larger payloads.

What's changed

  • Improved response highlighting logic for handling large payloads.
  • Added performance checks to prevent freezes during response rendering.

Status

  • Not Completed
  • Completed

Testing

Validated highlighting functionality with responses exceeding 10K lines and 1.4MB to ensure no hangs occur."

Notes to reviewers

Please review and let me know if any further optimizations are required.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5714 **Author:** [@chhaviG22](https://github.com/chhaviG22) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 1/15/2026 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `fix/large-response-highlight` --- ### 📝 Commits (3) - [`3e297ee`](https://github.com/hoppscotch/hoppscotch/commit/3e297eeeb388f16ccaeda5e6759b230974130d5e) Fix application hang when highlighting large response bodies - [`36336eb`](https://github.com/hoppscotch/hoppscotch/commit/36336eb2e819739d29d33df1b4a0bb3c2aeedcff) fix: review points - [`b69499e`](https://github.com/hoppscotch/hoppscotch/commit/b69499e747fffbb4f38797bb0cfd9b39a568215e) chore: cleanup ### 📊 Changes **1 file changed** (+31 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/composables/codemirror.ts` (+31 -8) </details> ### 📄 Description Closes #5713 This PR addresses the issue where the application becomes unresponsive when processing large response bodies (>10K lines, >1.4MB). Optimizations have been implemented to ensure smooth interaction and improved performance while handling larger payloads. ### What's changed - Improved response highlighting logic for handling large payloads. - Added performance checks to prevent freezes during response rendering. ### Status - [ ] Not Completed - [x] Completed ### Testing Validated highlighting functionality with responses exceeding 10K lines and 1.4MB to ensure no hangs occur." ### Notes to reviewers Please review and let me know if any further optimizations are required. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:46:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5325
No description provided.