Skip to content

merge: sync upstream 89ce846 before native settings release - #27

Merged
1lck merged 12 commits into
mainfrom
codex/sync-upstream-native-settings
Nov 15, 2026
Merged

1lck merged 12 commits into
mainfrom
codex/sync-upstream-native-settings

Conversation

@1lck

@1lck 1lck commented Nov 15, 2026 •

Copy link
Copy Markdown

Follow-up to #26 during the same user-authorized release sync. Upstream advanced by nine commits while the desktop feature was being validated. Merge upstream main 89ce846 into fork main 0c36cc9, preserving every published pin and upstream ancestor. Merge this PR with a merge commit, never squash.

Includes safe List row lookup, cgo documentation, composition ownership/history ordering, Linux IME harness retirement coverage, startup-only package dependencies and their tests, recoverable Windows payload updates, and settling IME composition on focus loss. The merge is conflict-free and keeps upstream implementations.

The remaining Lithe #1821 items 1–5 still need their existing application workarounds. No new fork-only implementation or application workaround is introduced. Existing fork additions and their upstream tracking remain listed in #26 and the desktop pin PR's audit.

Local validation on the merged tree: Go 1.26.0 go test ./..., go vet ./..., Windows amd64 and arm64 cross-builds pass. Remote native checks will be collected before merge. The previously documented fork size-budget failure is not treated as a passing check and no budget is changed.

Final validation: all native, browser, text-input, Windows materials, cross-vet, test, benchmark, Darwin and aggregate CI checks on e2c60a0 pass. The nonblocking size report remains the same pre-existing 4,258,658-byte Darwin arm64 hello binary against the unchanged 3,840,000-byte budget; before/after evidence is in #26. The upstream Windows rollback helper assertion was stale; its test now covers the argument-preserving Launch helper on both failure paths, submitted upstream as vivaui#311. No production workaround was added.

t8y2 and others added 10 commits November 15, 2026 21:54
RowID(-1), which a caller passes as Selected() before anything is chosen,
and RowID(len), reached past the last row, went through Key and panicked
with the hint that belongs to out-of-range keys. Both now answer the zero
ID, as they already did before the first paint, and DisclosureID follows
the same rule. The panic tests assert the hint's wording, so they fail for
the reason they name.
The English build section gained the opt-in cgo paragraph with the flag;
the Chinese mirror still described only the default static build.
The reordering has no test that fails without it, so the reason it is
load-bearing belongs next to it. The nil previous that opens a new undo
unit is also reached by Paste and BreakUndoGroup+Insert, not only by a
save point.
A cached provider can hand back a different TextInput.Editor before the
next sync. applyTextEvent read the last published TextInput, so such an
event could land on the incoming editor while handoff and disable already
settle the installed one. Resolve the editor from activeEditor, keeping
activeText for the provider's state and CopyText, and pin it with a test
that swaps the published editor between events.
… guard

The retirement tests build a harness application without ibusTried, so a
deferred sync after present() dialed the host daemon; they passed only on
machines where no IBus address resolves. Pin the harness bus so the unit
tests never talk to a daemon, assert the settlement delivers exactly one
event, and cover the reset-time owner change the new guard protects. Say
next to the guard why retire() must precede apply().
The RPM requirements also named the XCB extensions and PangoFT2, which the
backend loads with an explicit fallback. A distribution that keeps a
provider out of its enabled repositories would then refuse an install the
app can run. Keep the startup set, declare the same set in the .deb and
PKGBUILD, and read RPMTAG_REQUIRENAME in the test instead of grepping the
whole file, so the assertion is about actual requirements.
The helper created its backup before the try and copied each payload file
after moving the installed one away, so a failure in either window could
leave the installation without its executable and no way back. Create the
backup inside the try, copy beside the destination before renaming both
steps into place, sweep backups a previous update could not remove, make
Restore best effort, and relaunch with the original arguments. The test
covers the stale backup and the directories the update leaves.
Windows does not promise WM_IME_ENDCOMPOSITION once another window takes
the keyboard, and the phase emission and the WM_CHAR gate depend on the
composition flags, so a lost focus could leave them set. The end message
and the focus-lost branch now settle through one helper, and the native
message-surface test skips a host without a graphics device instead of
failing it.
The Debian dependency order names the startup libraries before the
application's own, and libcairo2 is a named one in this case.
@1lck
1lck marked this pull request as ready for review November 15, 2026 16:32
@1lck
1lck merged commit 97fdbdd into main Nov 15, 2026
19 of 20 checks passed
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.

2 participants