Repository navigation
desk-web: every time and count in English through @shared/app/date-format; one-locale lint over desk-web's src; KaTeX advisory dropped - #111
Merged
Conversation
…rmat, the lint over desk-web's src, KaTeX's advisory dropped The desk's own times wrote the browser's locale while its stream and audit times came from MAWS's module, English since P4-W2L, so on the owner's Korean browser one page mixed the two. Each now goes through @shared/app/date-format: the grid's "Counts as of" and the enrollment code's deadline as formatClock, a key method's label as formatDateTime, a provisioning key's expiry, revocation and code step as formatDate, a compaction's token counts as formatCount (new), and the Info tab's context line as formatCompactCount (new; it wrote en-US by hand before). The module gains count and compactCount in every locale's set. The live desk's "finished · 3분 전" in the depth column's subagent list came from MAWS's renderer date-format, which wrote the system locale before W2-L and reached the desk through tools/agents/model/elapsed.ts; W2-L fixed it at that source, and no desk deploy from a master with W2-L has gone out. SubagentTree.test.tsx now pins it in English. maws-dates/one-locale covers apps/desk-web/src (its suites aside), where it also refuses every toLocaleString and Intl.NumberFormat, the desk writing its counts through the module too; test/one-locale.test.ts proves the rule at MAWS's and the desk's paths. desk-web's vitest runs under the owner's Korean system locale, as MAWS's renderer suites do, so each English expectation is read where a default-locale formatter writes Korean, and loads MAWS's happy-dom setup, which drops KaTeX's quirks-mode advisory (7 suites printed it under the gate's reporters, none now). Closes the tracker's two 2026-10-21 desk-lane rows. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 21, 2026
…Count, formatCompactCount) and the one-locale lint over desk-web Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 21, 2026
…oks) The one conflict: gate.yml keeps this branch's MEASURED_E2E line with presentations-drag beside master's new MAC_SHARED_E2E. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The desk's own times wrote the browser's locale, while its stream and audit times came from MAWS's
@shared/app/date-format, which has been English since P4-W2L. On the owner's Korean browser, one page showed both. Every date, time, relative time and count inapps/desk-webnow goes through that module:views/grid/GridView.tsxtoLocaleTimeString([], 2-digit)formatClock, e.g. 2:05 PMviews/machines/MachinesDialog.tsxtoLocaleTimeString([], 2-digit)formatClockviews/key/labels.tstoLocaleString([], …)formatDateTime, e.g. Oct 6, 2026, 2:05 PMviews/machines/ProvisioningKeys.tsxtoLocaleDateString([], …)formatDate, e.g. Oct 6, 2026views/composer/Composer.tsxNumber#toLocaleString()formatCount(new)depth/view/session-info.tsIntl.NumberFormat('en-US', compact)formatCompactCount(new)The module now has
countandcompactCountin every locale's set (exported asformatCountandformatCompactCount). No second module was created.The live "finished · 3분 전". This came from MAWS's renderer date-format. Before W2-L that module wrote the system locale, and it reached the desk through
tools/agents/model/elapsed.ts→subagents/shared.tsoutcomeOf→depth/view/SubagentTree.tsx. W2-L fixed it at that source. It still shows live only because no desk deploy has gone out from a master that has W2-L.SubagentTree.test.tsxnow pins it in English under a Korean locale.The rest of the sweep found nothing else to change. Every MAWS renderer module the desk imports either goes through the module or writes counts with an explicit
'en-US'(transcript/model/copy.ts,widgets/parts.tsx,tools/code/copy.ts). Those are MAWS's own modules, so they were left as they are.Lint
maws-dates/one-localenow coversapps/desk-web/src(suites exempt). There it also refuses everytoLocaleStringandIntl.NumberFormat, because the desk writes its counts through the module too.test/one-locale.test.tslints fixtures at MAWS's paths and the desk's.Tests
LC_ALL/LANGko_KR.UTF-8), as MAWS's renderer projects do. Each English expectation is therefore read where a default-locale formatter writes Korean. One case asserts that precondition.test/support/artifacts-dom-setup.ts. Run as the gate runs it, master's config printed KaTeX's quirks-mode advisory in 7 suites; this one prints none.Closes the tracker's two 2026-10-21 desk-lane rows.
Gates and review
scripts/ci-gate.sh --gates static,unit,e2e:desk-webpassed on headb40786f85(this change merged with master at d777f36): run 39667439423. static, unit 1/4 to 4/4 and e2e:desk-web all succeeded.doperpowers:reviewer-lowon c720123 found nothing blocking and no material findings. It confirmed that the sweep left no browser-locale output, that the clock's change from02:05 PMto2:05 PMconflicts with no e2e assertion, and that the flat-config order keeps the other rules. It also rantest/one-locale.test.tsagainst the real ESLint config.After deploying, look at
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)