Repository navigation
refactor: organize renderer store and agent status modules - #43528
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
908279e to
4e49d01
Compare
4e49d01 to
b111acc
Compare
Main reorganised the renderer store and agent status modules and removed tests under its test policy (stablyai#43528). - test imports follow the moved modules - the detached restart test file is removed with main, and the one test of the held notice moves to the after-switch test file - the native chat recovery test expects whole mail again (stablyai#43380) and awaits the switch where it polled for one second
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
ELI5
Group the renderer store's loose files by the work they own, so status updates, conversations, projections, and retirement each have a clear home.
What Changed
Move 69 production modules and nine test/support files into record transitions, workspace layout, and concrete agent-status feature folders. Update consumers, mocks, and active runner resources to the new paths; replace three erased type-forwarding statements with imports from the defining owners.
Keep the initialized store, AppState composition, observer installation table, and agent-status slice composition in their existing owners. Preserve module caches, WeakMaps, initialization order, and the slice's five bare imports. Remove 16 test files and one orphan fixture under the repository's test policy, and remove low-value registrations from retained affected suites. The rebase preserves main's new orchestration graph-reply regression case and its production changes; only the previously reviewed scale-counting case is removed from that suite.
CI also exposed an unchanged cleanup assertion that counts the process-wide awake-clock heartbeat as a coordinator leak. Remove that test fixture’s timer-count assertion and its instrumentation under the repository test policy; retain fake-clock isolation, pending-work/recovery drains, and all existing mail test bodies. Preserve main's subsequent optional-clock/Date.now fallback as well.
A later hosted shard failed in a queued-quit test. Both the PR and pristine-main macOS controls pass its two cases; that does not establish the hosted failure as preexisting. Remove this entire parameterized test under the explicit policy against real sleeps and branching inside parameterized bodies. This loses its journal/history/restart-offer and dispatch-order assertions; no replacement coverage is claimed. Preserve the shared fixture and its three remaining test consumers unchanged.
Why
Continue the approved folder cleanup with one cohesive store batch. Direct owner imports make ownership explicit without compatibility barrels.
Linked Issue
Maintainer-directed cleanup; no separate issue.
Visual Proof
N/A — module placement and import routing change; no visual or interaction change is intended.
Testing
macOS: final
pnpm check:changed --base=50fa70b76ee0ef0facbfbe5d20936cfe4fa0cab3passes all 39 checks (164.8s), including node/web/CLI typechecks, lint/format, import boundaries, ratchets, and affected unit tests (163.9s). The immediate pre-push invocation confirms unchanged validated content. Focused graph/mail checks pass 3 files / 10 cases. Desktop and web builds passed for the layout before the rebases; independent carry audits verify its production outputs and preserve incoming main fixes. Exact-head hosted checks at b111acc gate merge.No new tests: this is a placement refactor, with mandatory cleanup of existing tests under the repository policy.
Risk
Level: Medium. The wide consumer fanout could miss a path or alter eager initialization. Independent source audits check module identity, import order, retained initialization, and native changes. No saved-data or wire-format changes. A plain revert restores the old layout.
AI Disclosure
Internal contributor; not applicable.
Review
Native Codex audits cover moved production bodies, direct defining-owner imports, test/support decisions, and carry from main. Cross-platform, SSH/remote, folder-workspace, mobile, and agent behavior stays in the existing bodies. Caches and singleton ownership stay intact; no new runtime work, permissions, network access, UI, or security boundary is introduced.
Agent skill upstream boundary
Notes
Planning and detailed review evidence remain local and ignored.
Checklist