Skip to content

refactor(desktop): split oversized desktop, mobile and script modules - #47

Merged
nixuuu merged 12 commits into
devfrom
refactor/split-area-e
Nov 4, 2026
Merged

nixuuu merged 12 commits into
devfrom
refactor/split-area-e

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Code-quality phase 3, area E (docs/code-quality.md): desktop, mobile and root scripts. 12 size findings (max-lines/max-lines-per-function) → 0 by splitting modules along responsibilities and extracting helpers; behaviour-preserving moves only (IPC/preload security, packaging output, script CLIs unchanged). No size suppressions.

Checks: install, gen:check, typecheck, format:check, web + desktop shell builds, mobile lint/typecheck, bun test scripts/, two full check:tmp runs (833 pass / 0 fail), desktop integration ×5 (45/45).

@nixuuu
nixuuu merged commit 76c5e5d into dev Nov 4, 2026
2 of 3 checks passed
@nixuuu
nixuuu deleted the refactor/split-area-e branch November 4, 2026 11:43
nixuuu added a commit that referenced this pull request Nov 4, 2026
Phase 4 of the code-quality refactor (docs/code-quality.md); phases 1–3
are merged (#29, #39–#43, #46, #47–#52) and the whole repo passes `bun
run lint` and `bun run format:check`.

- CI: "Lint" (`bun run lint`: oxlint + anti-slop + size limits) and
"Formatting" (`bun run format:check`: oxfmt) right after the typecheck.
- Root `check` script runs them too.
- AGENTS.md: lint + format in the hand-over checklist and a short "Code
quality" section (boundary parsing over casts, `// SAFETY:` for
remaining assertions, 400/120 size limits never disabled, no repo-wide
`oxlint --fix`).
- docs/code-quality.md: status — all phases done.
nixuuu added a commit that referenced this pull request Nov 4, 2026
A linked-computer connection became callable before its `welcome` frame
was queued: if the status write was slow, a concurrent `ListThreads`
could send `remoteRequest` first, which the dialing peer rejects. The
responder now queues `welcome` before exposing readiness. A
deterministic regression test holds the status write to reproduce the
ordering; existing fallback assertions and timeouts are unchanged.

Verification: thread-mirrors ×30 (510 pass), the seven other
linked-computer files ×5 (350 pass), full check:tmp 830 pass / 0 fail;
install, gen:check, typecheck, lint, format:check, web build.
Note: the original CI failure (`a peer without thread_mirror … stops
listing when disconnected`, #47) didn't reproduce locally, so
attributing it to this race is likely but not proven.
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