Skip to content

fix: sync archived sessions and macOS locale - #87

Merged
wisdomqin merged 3 commits into
mainfrom
codex/fix-mobile-archived-sessions
Aug 19, 2026
Merged

fix: sync archived sessions and macOS locale#87
wisdomqin merged 3 commits into
mainfrom
codex/fix-mobile-archived-sessions

Conversation

@wisdomqin

Copy link
Copy Markdown
Contributor

What changed

  • Refresh the mobile session list from the workspace archive state, so sessions archived on Desktop disappear on phone after refresh.
  • Configure Electron native dialogs with the resolved DSH locale and package both Electron Chinese locale name variants.
  • On first launch, use the first macOS preferred system language when no explicit DSH language preference exists.

Root cause

The mobile page read archived IDs from session.list while the authoritative archive state is returned with workspace.list. The Desktop locale helper also treated a settings file without an explicit language as English, and Electron was not given a locale before native dialogs were created.

User impact

  • Desktop-archived sessions no longer remain visible on the phone after refresh.
  • Native file selection follows Chinese when DSH resolves to Chinese.
  • A fresh Mac installation follows the system preferred language instead of defaulting to English. Explicit user language choices still take precedence.

Validation

  • pnpm test: 17 files, 84 tests passed
  • pnpm typecheck
  • pnpm build
  • git diff --check

@wisdomqin
wisdomqin merged commit a0b2880 into main Aug 19, 2026
4 checks passed
@wisdomqin
wisdomqin deleted the codex/fix-mobile-archived-sessions branch August 19, 2026 03:11
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