You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Record verified rewrite status and remaining gates
Add the upstream export coverage count, note the missing parity-closure
examples and protocol fuzz target, mark each completion gate as done,
partial, or not started, and reorder the next implementation work.
Copy file name to clipboardExpand all lines: docs/PURE_ZIG_REFACTOR.md
+46-23Lines changed: 46 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ the Zig standard library and launching an installed browser remain in scope.
19
19
20
20
## Current Rewrite Status
21
21
22
-
Status snapshot: 2026-07-31.
22
+
Status snapshot: 2026-08-03.
23
23
24
24
The external-browser core is now implemented in Zig on top of pinned Linsang.
25
25
The legacy wrapper, C API, compatibility files, and examples have been
@@ -31,12 +31,19 @@ deleted.
31
31
| Browser bridge | Bindings, typed arguments and replies, events, deferred replies, JavaScript evaluation, raw data, navigation, and multiple clients are implemented. |
32
32
| Content and lifecycle | HTML, directories, custom handlers, external URLs, runtime content replacement, default directories, favicons, directory monitoring, logging, and deterministic shutdown are implemented. |
33
33
| Browser integration | Default URL opening, browser discovery, explicit browser selection, typed launch controls, managed profiles, Chromium-family proxies, custom executables and argv, direct child tracking, replacement, and shutdown cleanup are implemented. |
34
-
| Current validation |`zig build test`, native builds, Windows x86_64 builds, macOS aarch64 builds, and Windows/macOS test-module cross-compilation pass. |
34
+
| Examples and fuzzing | Only the minimal example is retained. The parity-closure examples and the protocol fuzz target are not written. |
35
+
| Current validation |`zig build test` passes 17 Zig tests and the Node bridge test. All five release-gate targets build. The build graph contains no C. |
35
36
36
-
Remaining work is limited to browser window controls and geometry, portable
37
-
host high-contrast and parent-process detection, server-side runtimes, optional
38
-
native WebViews and handles, and the final parity validation gates. The
39
-
coverage ledger below is the authoritative method-level list.
37
+
`include/webui.h` at the pinned upstream commit exports 111 functions. The 16
38
+
`webui_interface_*` entries are permanently omitted with the C ABI, leaving 95
39
+
in scope; 79 are implemented or have an explicit Zig replacement and 16 remain.
40
+
Every upstream export appears in the ledger below, which is the authoritative
41
+
method-level list.
42
+
43
+
Remaining work is browser window controls and geometry, portable host
44
+
high-contrast and parent-process detection, server-side runtimes, optional
45
+
native WebViews and handles, the retained examples, and the final parity
46
+
validation gates.
40
47
41
48
## Original Baseline
42
49
@@ -321,6 +328,10 @@ implementations.
321
328
322
329
### Missing or Partial Backend Capabilities
323
330
331
+
These rows are the 16 remaining in-scope upstream exports. Every other export
332
+
appears in the replacement table below or in the omitted `webui_interface_*`
333
+
row.
334
+
324
335
| Upstream API | Current gap |
325
336
|---|---|
326
337
|`webui_focus()`, `webui_minimize()`, `webui_maximize()`, `webui_set_hide()`| Runtime browser window lifecycle controls are not implemented. |
0 commit comments