[Bug]: Web Studio JSON preview rounds large integers and replaces large exponents with null
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, json, typescript
- Domain
- frontend
Research direction
The bug lives in formatJsonContent in web-studio/src/features/workbench/resources/lib/json-format.ts, which parses and reserializes JSON through JavaScript numbers. Start by reading that function and reproducing the minimal example {"id":9007199254740993,"scale":1e400} with Node. Done means the default Preview keeps the original numeric text for large integers and large exponents while still adding indentation, and a normal value like 42 still formats as before.
Written by the indexing model from the issue text.
Description
Issue Origin
Observed in Web Studio’s production JSON preview formatter on the current main branch.
Bug Description
The default preview parses and reserializes JSON through JavaScript numbers. A valid large integer can display as a different ID, and a valid large exponent can appear as null. Source view keeps the original text.
Steps to Reproduce
- Open a JSON resource with the content below in Web Studio.
- Compare the default Preview view with Source.
- For an isolated reproduction, pass the same text to
formatJsonContentinweb-studio/src/features/workbench/resources/lib/json-format.ts.
Expected Behavior
Preview adds indentation while preserving 9007199254740993 and 1e400.
Actual Behavior
The formatter produces 9007199254740992 for the ID and null for the exponent. A normal ID such as 42 formats as expected.
Minimal Reproducible Example
{"id":9007199254740993,"scale":1e400}
OpenViking Version
Main branch formatter blob 60606becc14d13d05e709eccf6c227552f609fae.
Python Version
Not used in this frontend reproduction.
Operating System
Windows.
Model Backend
Other (not involved).
Additional Context
Reproduced by executing the exact TypeScript formatter with Node.js 24 on Windows. The current worker calls this formatter directly. The browser was not run for this reproduction.
- Dominant language
- Python
- Stars
- 42.6k
- Forks
- 3.6k
- Avg merge
- 15h 24m
- Merged PRs (30d)
- 547
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from volcengine/OpenViking
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
volcengine/OpenViking#8116 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: parse_memory_file_with_fields parses first MEMORY_FIELDS match instead of trailing trailer, silently corrupting metadataPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
volcengine/OpenViking#8113 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#7732 ·
Maintainers usually reply within 1 day
-
[Bug]: Task listing reads records one at a time; local Compile polls every 30 s regardless of poll_interval_msPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
volcengine/OpenViking#7622 ·
Maintainers usually reply within 1 day
All issues in volcengine/OpenViking
Similar issues
-
Failed chat turns are passed to the follow-up rewrite as completed historyPossibly taken @hskhyl claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/auto-ontology#683 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation task
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Implement parse_url and accept http URLs for Pear backendPossibly taken @muskan-creates352 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fedora-infra/anitya#2231 ·
Maintainers usually reply within 2 days
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
docling-project/docling-core#1067 ·
Maintainers usually reply within 3 days
-
correction metadata
Difficulty 1/5 Under an hour Newbie friendliness 85/100
acl-org/acl-anthology#11101 · 1 comment ·
Maintainers usually reply within 1 day