Skip to content

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
SSFSKIM merged 2 commits into
masterfrom
desk-locale-english
Oct 21, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 21, 2026

Copy link
Copy Markdown
Owner

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 in apps/desk-web now goes through that module:

Site Shows Was Now
views/grid/GridView.tsx "Counts as of …" while the grid reconnects or its sign-in lapsed toLocaleTimeString([], 2-digit) formatClock, e.g. 2:05 PM
views/machines/MachinesDialog.tsx the one-machine code's deadline, "paste this code … before …" toLocaleTimeString([], 2-digit) formatClock
views/key/labels.ts a key method's label, "Passkey, added …" (stored with the method's copy) toLocaleString([], …) formatDateTime, e.g. Oct 6, 2026, 2:05 PM
views/machines/ProvisioningKeys.tsx a key's "expires / expired / revoked …" and the code step's "until …" toLocaleDateString([], …) formatDate, e.g. Oct 6, 2026
views/composer/Composer.tsx "Compacted: 180,000 → 22,000 tokens" Number#toLocaleString() formatCount (new)
depth/view/session-info.ts the Info tab's context line, "36.8K of 1M (4%)" its own Intl.NumberFormat('en-US', compact) formatCompactCount (new)

The module now has count and compactCount in every locale's set (exported as formatCount and formatCompactCount). 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.ts outcomeOf → 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.tsx now 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-locale now covers apps/desk-web/src (suites exempt). There it also refuses every toLocaleString and Intl.NumberFormat, because the desk writes its counts through the module too. test/one-locale.test.ts lints fixtures at MAWS's paths and the desk's.

Tests

  • desk-web's vitest runs under the owner's Korean system locale (LC_ALL/LANG ko_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.
  • The new pins failed on master's sources ("Counts as of PM 02:05", "added 2026년 10월 6일 PM 02:05", "before PM 02:05", "expired 2025년 4월 1일") and pass now.
  • The whole desk-web project passes under the Korean locale: 91 files, 819 tests.
  • desk-web's vitest now loads 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

  • Gates: scripts/ci-gate.sh --gates static,unit,e2e:desk-web passed on head b40786f85 (this change merged with master at d777f36): run 39667439423. static, unit 1/4 to 4/4 and e2e:desk-web all succeeded.
  • Review: doperpowers:reviewer-low on c720123 found nothing blocking and no material findings. It confirmed that the sweep left no browser-locale output, that the clock's change from 02:05 PM to 2:05 PM conflicts with no e2e assertion, and that the flat-config order keeps the other rules. It also ran test/one-locale.test.ts against the real ESLint config.

After deploying, look at

  1. A project's depth column, Subagents tab, Done section (open it): "finished · 3m ago", "stopped · 1d ago".
  2. The grid while it reconnects (e.g. after a sleep): "Counts as of 2:05 PM."
  3. Machines → Provisioning keys: each key's "expires Jan 19, 2027" / "revoked …"; creating a key shows "until …".
  4. Machines → Enroll a machine, through to the code: "… before 2:05 PM:".
  5. The key dialog: a method added after the deploy is labelled "Passkey, added Oct 21, 2026, 9:40 PM". Labels made earlier keep the Korean text they were stored with.
  6. A session's composer after a compaction ("Compacted: … tokens") and the Info tab's context line. These were already English on a Korean browser and should read as before.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)

…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
SSFSKIM merged commit f182c9d into master Oct 21, 2026
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)
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.

1 participant