mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5377] [bug]: Editing a Post-Request Script #2059
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2059
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @djneely on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5377
Originally assigned to: @jamesgeorge007, @CuriousCorrelation on GitHub.
Is there an existing issue for this?
Platform
Desktop App
Browser
Other (specify in additional info)
Operating System
macOS
Bug Description
When editing a Post-request script and I already have some code above the line I am working on, the editor starts acting very strange. After every character (or every other) you type, it auto-adds a space after each character you type. This makes it very difficult to edit your scripts. In order for the editor to 'act correctly' you have to remove all the lines below the line you are working on.
Deployment Type
Self-hosted (on-prem deployment)
Version
No response
@liyasthomas commented on GitHub (Sep 5, 2025):
@jamesgeorge007 can you look into this?
@jamesgeorge007 commented on GitHub (Sep 7, 2025):
This appears specific to the Desktop App. @CuriousCorrelation, please take a look.
@arrayxx commented on GitHub (Sep 24, 2025):
Not only the desktop app but the web version too
@jamesgeorge007 commented on GitHub (Sep 24, 2025):
Could you mention the browser in which this is reproducible? For instance, this issue is reproducible in Safari, and as a result, it's also observable in the Mac OS Desktop App, since it uses Safari's webview renderer. In the meantime, you can opt out of the experimental scripting sandbox via Settings > Experiments, falling back to the scripting editors based on CodeMirror instead of Monaco.
@djneely commented on GitHub (Sep 25, 2025):
Do you want a video of the desktop issue? You mention that you're able to reproduce so I'm assuming no, but happy to do so.
@thisisaman408 commented on GitHub (Oct 9, 2025):
is someone working on it? If not!, can I work on this issue?
@djneely commented on GitHub (Nov 12, 2025):
I did as this mentioned (turning off the 'Experimental Scripting Sandbox' and the issue is no longer on the Mac desktop app.
@AaronFortG commented on GitHub (Dec 11, 2025):
This happened to me as well on Google Chrome on a MacOS using the Web App ^^
@zhaoqiang1024 commented on GitHub (Feb 10, 2026):
The script is no longer executable after exiting the experimental script sandbox.
@jamesgeorge007 commented on GitHub (Feb 12, 2026):
Could you mention the snippet used alongside the steps to reproduce/ the behaviour observed in this scenario?
@abrouaux commented on GitHub (Feb 12, 2026):
Any use of the new hopp global variable instead of pw - basically anything new to the experimental box. I'm guessing the use of crypto too, etc.
for example.