Skip to content

preserve large numeric job args#594

Draft
bgentry wants to merge 1 commit into
masterfrom
bg/fix-job-args-precision
Draft

preserve large numeric job args#594
bgentry wants to merge 1 commit into
masterfrom
bg/fix-job-args-precision

Conversation

@bgentry

@bgentry bgentry commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Job args can contain database identifiers larger than JavaScript's safe integer range. The previous API returned args as nested JSON, so browser JSON parsing could round those literals before the list and detail pages rendered them.

This changes job-shaped API responses to return args as JSON text and maps that value to argsRaw in the frontend. The list and detail views now render that text through a lossless sorter, preserving large number tokens while keeping object keys sorted for display and copied output.

Closes #593.

Job args can contain database identifiers that exceed JavaScript's safe integer
range. The API previously emitted args as nested JSON, so `response.json()`
converted large numeric literals to rounded `number` values before the UI could
render or copy them.

Return job args as JSON text from both the standard and Pro job serializers, and
map that field to `argsRaw` in the frontend model. Job list, job detail, and
workflow detail now render args through a lossless JSON text formatter that sorts
object keys while preserving number tokens as text.

Coverage exercises the wire contract for standard and Pro job responses, the
frontend fetch path for job and workflow responses, and the list/detail rendering
paths for the reported large integer scenario.
@bgentry bgentry changed the title [codex] preserve large numeric job args preserve large numeric job args Jun 12, 2026
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.

Bug: Frontend changing values before displaying to the user

1 participant