Right-click menu acceptance: 15 failed UI runs, and a date label that was always Chinese
Trying to make Windows UI automation physically click open the classic File Explorer submenu burned 47 minutes and 15 consecutive failures. Invoking the registered shell and COM handlers directly verified the whole contract—and uncovered a real bug where burial date labels were hardcoded in Chinese regardless of interface language.
Live screenshot from the Windows Server 2025 runner: Explorer opened only the modern top menu with Show more options at the bottom, blocking UI automation from entering the classic submenu.On this page
On Windows, Obituary integrates straight into File Explorer in two ways: classic right-click actions to assign 1-, 7-, or 30-day lifespans or bury immediately, and hidden desktop.ini entries showing burial dates right alongside filenames.
On 23 November we set out to verify the shipped 1.7.0 Windows archive end-to-end on clean GitHub runners without touching our dev desktops. The run delivered two surprises: trying to make UI automation click into Windows' classic context menu failed 15 times straight in 47 minutes—and once we switched approaches, acceptance caught a real bug where File Explorer date labels were always written in Chinese regardless of UI language.
Running explorer-acceptance.yml against the SHA-256-verified 1.7.0 amd64 zip across separate Chinese and English Obituary UI configurations, we first tried driving Explorer with real mouse clicks. Between 12:51 and 13:38, 17 commits produced 15 consecutive failures:
Attempt 1 could not enumerate the classic context menu at all.
Attempt 2 reached only Windows Server 2025's top-layer modern menu plus a Popup.
Attempt 3 returned NaN for the Popup bounding box, leaving nothing clickable.
Live screenshot from the Windows Server 2025 runner: Explorer opened only the modern top menu with Show more options at the bottom, blocking UI automation from entering the classic submenu.
Pivoting to the real registered shell and COM handlers
Run 16 turned green once we stopped fighting fragile mouse choreography and invoked the exact handlers Windows Explorer itself calls from the registry:
Single file and single directory: read the registered command template from the registry, substitute the path placeholder, and execute.
Multi-selection: launch the registered LocalServer32 COM server and pass a real Shell IDataObject into IDropTarget::Drop.
Both language passes exited 0 with an empty failures.json and zero fallback paths.
Real multi-select COM receipt on the Windows runner: mixed file-and-folder selection given a 30-day lifespan, 2 succeeded, 0 failed.
Every clause of the context-menu contract verified cleanly:
Labels and ordering: file, folder, and empty-space labels matched in both Chinese and English, with shared 1-, 7-, and 30-day submenus in order.
Lifespans and folder policies: single file (1d), single folder (7d), mixed multi-select (30d), and background folder-policy registration staying at consent: pending instead of auto-approving.
Spare, bury, resurrect: sparing removed the directory cleanly; right-click bury moved only the chosen folder while leaving the sibling file untouched; resurrect restored byte-for-byte.
Preserving existing desktop.ini and uninstall: pre-existing comments and InfoTip survived labeling and restored byte-for-byte on uninstall (parent attrs 16 → 17 → 16, INI attrs 32 → 38 → 32, third-party menu items untouched).
The real bug hiding in plain sight: Chinese labels for every user
Running the English UI pass immediately exposed a glaring contradiction between docs and code. Documentation across ten languages showed localized labels (name (11-13 burial), nombre (entierro el 13 de noviembre)), yet the actual code always wrote Chinese: 名字(11-13 下葬).
Rather than pretending to add ten software UI languages, we aligned both code and docs to Obituary's existing two-language software contract (the exact same contract used by context menus and notifications):
Simplified Chinese UI: 名字(11-13 下葬)
Every other locale: name (11-13 burial)
Updated the eight other-language docs and READMEs to describe reality honestly.
We also fixed upgrades and language switching: previously the sync stamp tracked only ledger size and mtime (%d %d), so switching UI language left old labels behind. Appending the interface language (%d %d %s) forces an automatic refresh whenever the language changes or a user upgrades from 1.7.0, without touching user-edited display names.
The three lines in commit fafefdb: bilingual label templates and adding UI language to the sync stamp so stale 1.7.0 labels refresh automatically.
Merged at 14:33 on 23 November with full CI green. What remains visually unverified stays explicit: physical mouse navigation of the classic submenu, relative visual order against third-party items, F2 edit-box text, and on-screen toast appearance.