[PR #4860] [MERGED] feat(kernel): isolate type ser/de to platform #4964

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4860
Author: @CuriousCorrelation
Created: 3/8/2025
Status: Merged
Merged: 3/10/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/kernel-level-decode


📝 Commits (6)

  • f0da0ae feat(kernel): isolate type ser/de to platform
  • 66e8606 fix: remove console info log
  • a380c67 fix: extension subtitle calls to service
  • 60eb2be fix: map to nested object for better serde support
  • 19fea8f fix: proxy handling with relay changes
  • 8265f27 fix: check extension availability before execute fn

📊 Changes

21 files changed (+511 additions, -235 deletions)

View changed files

📝 packages/hoppscotch-agent/src-tauri/Cargo.lock (+1 -1)
📝 packages/hoppscotch-agent/src-tauri/tauri.conf.json (+1 -1)
📝 packages/hoppscotch-agent/vite.config.ts (+1 -1)
📝 packages/hoppscotch-common/src/components/settings/ExtensionSubtitle.vue (+11 -8)
📝 packages/hoppscotch-common/src/helpers/kernel/common/content.ts (+1 -84)
📝 packages/hoppscotch-common/src/helpers/network.ts (+0 -4)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts (+2 -3)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/store.ts (+5 -5)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts (+194 -19)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/store.ts (+36 -16)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts (+0 -5)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/proxy/index.ts (+154 -54)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/src/content.rs (+1 -1)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/src/interop.rs (+4 -1)
📝 packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock (+1 -1)
📝 packages/hoppscotch-desktop/src-tauri/Cargo.lock (+2 -2)
📝 packages/hoppscotch-kernel/src/index.ts (+3 -1)
📝 packages/hoppscotch-kernel/src/relay/impl/desktop/v/1.ts (+24 -20)
📝 packages/hoppscotch-kernel/src/relay/impl/web/v/1.ts (+0 -2)
📝 packages/hoppscotch-kernel/src/relay/v/1.ts (+66 -2)

...and 1 more files

📄 Description

This PR fixes some of the inconsistencies in extension detection + polling and form and multipart handling around ser/de.

Before After
image image
image image

Web App and Desktop App side by side

image

Notes to reviewers

To test this, enable extension or agent or native (desktop app) interceptor, use POST method and try sending a request with JSON body or multipart form data to any echo server.

Copy pasting the following in the URL section should do the trick:

curl --request POST \
  --url https://echo.hoppscotch.io/ \
  --header 'content-type: application/json' \
  --data '{ "test" : "test" }'

To test multipart requests, use this:

curl --request POST \
  --url 'https://echo.qubit.codes/?qp=1' \
  --header 'content-type: multipart/form-data' \
  --form test_file=@test_file

Remember to select and upload a small file before sending the request.


🔄 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/4860 **Author:** [@CuriousCorrelation](https://github.com/CuriousCorrelation) **Created:** 3/8/2025 **Status:** ✅ Merged **Merged:** 3/10/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/kernel-level-decode` --- ### 📝 Commits (6) - [`f0da0ae`](https://github.com/hoppscotch/hoppscotch/commit/f0da0aee2101e45a6754089137fccbfe198059fa) feat(kernel): isolate type ser/de to platform - [`66e8606`](https://github.com/hoppscotch/hoppscotch/commit/66e8606155c5b7363525274231aa918bfeee2359) fix: remove console info log - [`a380c67`](https://github.com/hoppscotch/hoppscotch/commit/a380c679a8f1bcbe803aaa7d3a630a7cf39c7559) fix: extension subtitle calls to service - [`60eb2be`](https://github.com/hoppscotch/hoppscotch/commit/60eb2beea0a3aa46027eb7011692c2b937ff296a) fix: map to nested object for better serde support - [`19fea8f`](https://github.com/hoppscotch/hoppscotch/commit/19fea8f66b15b94a3e20d89a33d1c6453e572656) fix: proxy handling with relay changes - [`8265f27`](https://github.com/hoppscotch/hoppscotch/commit/8265f27508bb243da206f060ff45a65168cba457) fix: check extension availability before execute fn ### 📊 Changes **21 files changed** (+511 additions, -235 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-agent/src-tauri/Cargo.lock` (+1 -1) 📝 `packages/hoppscotch-agent/src-tauri/tauri.conf.json` (+1 -1) 📝 `packages/hoppscotch-agent/vite.config.ts` (+1 -1) 📝 `packages/hoppscotch-common/src/components/settings/ExtensionSubtitle.vue` (+11 -8) 📝 `packages/hoppscotch-common/src/helpers/kernel/common/content.ts` (+1 -84) 📝 `packages/hoppscotch-common/src/helpers/network.ts` (+0 -4) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts` (+2 -3) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/store.ts` (+5 -5) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts` (+194 -19) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/store.ts` (+36 -16) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts` (+0 -5) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/proxy/index.ts` (+154 -54) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/src/content.rs` (+1 -1) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/src/interop.rs` (+4 -1) 📝 `packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock` (+1 -1) 📝 `packages/hoppscotch-desktop/src-tauri/Cargo.lock` (+2 -2) 📝 `packages/hoppscotch-kernel/src/index.ts` (+3 -1) 📝 `packages/hoppscotch-kernel/src/relay/impl/desktop/v/1.ts` (+24 -20) 📝 `packages/hoppscotch-kernel/src/relay/impl/web/v/1.ts` (+0 -2) 📝 `packages/hoppscotch-kernel/src/relay/v/1.ts` (+66 -2) _...and 1 more files_ </details> ### 📄 Description This PR fixes some of the inconsistencies in extension detection + polling and form and multipart handling around ser/de. | Before | After | | ------------- | ------------- | | ![image](https://github.com/user-attachments/assets/2163ec3e-dc6c-48c5-b377-ef0f085a43f7) | ![image](https://github.com/user-attachments/assets/c7c6a59d-1c12-4ea9-97bf-4c9ad0870641) | | ![image](https://github.com/user-attachments/assets/b7f52c25-8732-452b-8a32-b8665e10f5d8) | ![image](https://github.com/user-attachments/assets/9d359e29-09df-437a-801d-8ae5e4dae849) | Web App and Desktop App side by side ![image](https://github.com/user-attachments/assets/b88a6fc6-45e5-443b-898e-79e08687060a) #### Notes to reviewers To test this, enable extension or agent or native (desktop app) interceptor, use POST method and try sending a request with JSON body or multipart form data to any echo server. Copy pasting the following in the URL section should do the trick: ``` curl --request POST \ --url https://echo.hoppscotch.io/ \ --header 'content-type: application/json' \ --data '{ "test" : "test" }' ``` To test multipart requests, use this: ``` curl --request POST \ --url 'https://echo.qubit.codes/?qp=1' \ --header 'content-type: multipart/form-data' \ --form test_file=@test_file ``` Remember to select and upload a small file before sending the request. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:27:18 +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#4964
No description provided.