Skip to content

refactor: organize renderer store and agent status modules - #43528

Merged
nwparker merged 3 commits into
mainfrom
module-layout-v2/store-agent-status-8abbc914
Nov 17, 2026
Merged

nwparker merged 3 commits into
mainfrom
module-layout-v2/store-agent-status-8abbc914

Conversation

@nwparker

@nwparker nwparker commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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=50fa70b76ee0ef0facbfbe5d20936cfe4fa0cab3 passes 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

  • Not applicable; no upstream skill-installer content is copied or translated.

Notes

Planning and detailed review evidence remain local and ignored.

Checklist

  • One cohesive store ownership batch
  • Explained changes and purpose
  • Stated risk and rollback
  • Visual proof is N/A with reason
  • Independently reviewed source and test policy
  • Considered cross-platform, SSH/remote, folder-workspace, mobile, and agent impact
  • Local validation complete; hosted CI required before merge

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request reorganizes agent-status, structured-session, and record-transition modules into new subdirectories and updates imports across store, renderer, runtime, and hook code. It also removes several tests and test fixtures, adds a conversation-capacity test and an agent-status status-field test, and updates CI routing, flaky-test baselines, shard timings, and static-analysis path lists.

Severity of issue fixed: Low

Merge Risk: Minimal · up to b111a

This PR reorganizes renderer store and agent-status modules and updates imports, with no intended behavior change. No concrete defect was found, and the spot-checked import paths resolve correctly. Some tests were removed, so confirm hosted CI passes before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "refactor: organize renderer store and agent status modules" matches the main change. The PR moves about 69 production modules into record-transitions, workspace-layout, and agent-status fea…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is detailed and follows most of the template: it has ELI5, What Changed, Why, Linked Issue (maintainer-directed, no issue), Visual Proof (N/A with reason), Testing, Risk (Medium, with …
Full details: Title check

Explanation

The title "refactor: organize renderer store and agent status modules" matches the main change. The PR moves about 69 production modules into record-transitions, workspace-layout, and agent-status feature subdirectories, and updates their consumers. The title does not mention the test deletions, which are a secondary part of the change.

Full details: Description check

Explanation

The description is detailed and follows most of the template: it has ELI5, What Changed, Why, Linked Issue (maintainer-directed, no issue), Visual Proof (N/A with reason), Testing, Risk (Medium, with rollback), AI Disclosure (marked not applicable for internal contributor), Agent skill upstream boundary (checked), and Checklist. The Testing section lists a macOS check run and focused tests, and says hosted CI is still required before merge. Gaps: the template's Testing checkboxes (manual testing, automated tests added or explained, anti-pattern check) are not ticked, and the Testing section says no new tests were added, though it gives an explanation. The Linked Issue section says there is no issue, which the template asks for only for outside contributors, so that is acceptable. The Notes and Review sections are present. The description also contains inconsistencies with the PR objectives: it cites base commit 50fa70b and head b111acc, while the objectives cite base c26929e and head 4e49d01. The Review section is also a bit vague. Overall the description is mostly complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 849afc38-0cdd-4bb8-9515-b10d601e2068
Commits

Reviewing files that changed from the base of the PR and between 4e49d01 and b111acc.

Files selected for processing: 283

  • .github/workflows/pr.yml
  • config/flaky-test-pattern-baseline.txt
  • config/scripts/ci/sharding/ci-shard-timings.json
  • config/scripts/ci/unit-selection/dependency-graph/ci-unit-files.mjs
  • config/scripts/static-analysis/ratchets/renderer-state/check-terminal-parking-ownership-ratchet.mjs
  • config/scripts/workflow/source-routing/pr-shell-contract-prefixes.mjs
  • src/main/native-chat/agent-session-wire/host/testing/structured-agent-session-queued-quit.test.ts
  • src/main/runtime/orchestration/terminal-authority/structured-sessions/structured-chat-coordinator-observation-clock.test-fixture.ts
  • src/renderer/src/components/activity/events/activity-event-builder.ts
  • src/renderer/src/components/cmd-j/palette-live-status.tsx
  • src/renderer/src/components/dashboard/snapshot/build-dashboard-snapshot.test.ts
  • src/renderer/src/components/dashboard/snapshot/dashboard-card-terminal-input.ts
  • src/renderer/src/components/native-chat/messages/agent-senders/native-chat-agent-sender.test-fixture.ts
  • src/renderer/src/components/native-chat/messages/rows/NativeChatAgentMessageCard.fixture.tsx
  • src/renderer/src/components/native-chat/pane/routing/native-chat-tab-directory.ts
  • src/renderer/src/components/native-chat/session/status/StructuredAgentSessionStatusBridge.tsx
  • src/renderer/src/components/native-chat/session/status/structured-agent-session-status-projection.ts
  • src/renderer/src/components/native-chat/session/status/structured-agent-session-tabs.ts
  • src/renderer/src/components/native-chat/session/status/structured-chat-sleep-startup.test.tsx
  • src/renderer/src/components/native-chat/session/terminal/read/use-native-chat-live-session-visibility.test.ts
  • src/renderer/src/components/native-chat/session/terminal/read/use-native-chat-live-session.test.ts
  • src/renderer/src/components/native-chat/session/terminal/send/use-native-chat-interactive-send.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault/scanning/ai-vault-session-refresh.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault/session-actions/ai-vault-original-pane-index.ts
  • src/renderer/src/components/right-sidebar/ai-vault/session-actions/ai-vault-original-pane.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault/session-actions/ai-vault-original-pane.ts
  • src/renderer/src/components/right-sidebar/source-control/panel/worktree-scope.tsx
  • src/renderer/src/components/right-sidebar/source-control/sync/use-git-status-turn-completion.ts
  • src/renderer/src/components/sidebar/workspace-actions/context-menu/workspace-lineage-menu-actions.ts
  • src/renderer/src/components/sidebar/workspace-actions/context-menu/worktree-context-menu-policy.ts
  • src/renderer/src/components/sidebar/workspace-actions/sleep/use-worktree-sleep-state.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/WorkerLineage.fixture.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/WorktreeCardAgents.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/WorktreeCardSubagents.fixture.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/title-derived-pane-agent-identity.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/use-worktree-activity-status.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/use-worktree-activity-statuses.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/use-worktree-agent-rows-subscriptions.test.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/useWorktreeAgentRows.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-row-orchestration.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-rows-projection.test.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-rows-projection.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-card-agent-ack-inputs.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-card-compact-agents.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-card-send-target-inputs.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-card-status-inputs.ts
  • src/renderer/src/components/sidebar/workspace-card/identity/WorktreeLineageToggle.fixture.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-workspace-unread-selector.ts
  • src/renderer/src/components/sidebar/worktree-card-slot-invalidation.ts
  • src/renderer/src/components/sidebar/worktree-card-slot-layout-invalidation.ts
  • src/renderer/src/components/sidebar/worktree-card-slot-targets.test.ts
  • src/renderer/src/components/sidebar/worktree-list/listing/use-agent-send-target.ts
  • src/renderer/src/components/sidebar/worktree-list/listing/visible-worktree-activity-inputs.ts
  • src/renderer/src/components/star-nag/StarNagAgentValueMomentObserver.tsx
  • src/renderer/src/components/status-bar/workspace-storage/decisions/workspace-space-decision-details.ts
  • src/renderer/src/components/status-bar/workspace-storage/decisions/workspace-space-decision-inputs.ts
  • src/renderer/src/components/status-bar/workspace-storage/manager/workspace-space-presentation.ts
  • src/renderer/src/components/tab-bar/model/tab-agent-types-by-tab-id.ts
  • src/renderer/src/components/tab-bar/terminal-tabs/terminal-tab-activity-status.ts
  • src/renderer/src/components/terminal-pane/account-restart/detached/claude-detached-pane-restart.test.ts
  • src/renderer/src/components/terminal-pane/input/keyboard/terminal-ctrl-enter.ts
  • src/renderer/src/components/terminal-pane/input/keyboard/terminal-windows-shift-enter.ts
  • src/renderer/src/components/terminal-pane/input/paste/terminal-agent-paste-bracketing.test.ts
  • src/renderer/src/components/terminal-pane/input/paste/terminal-agent-paste-bracketing.ts
  • src/renderer/src/components/terminal-pane/notifications/dispatch-terminal-notification.mute.test.ts
  • src/renderer/src/components/terminal-pane/notifications/unread-agent-session-membership.ts
  • src/renderer/src/components/terminal-pane/parking/output-watchers/parked-terminal-command-status.test.ts
  • src/renderer/src/components/terminal-pane/parking/retention/paired-runtime-parking-capabilities.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/foreground-process/pane-foreground-agent-tracker-contract.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/foreground-process/pane-foreground-agent-tracker.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/emulation/fish-color-scheme-child-stdin.node-pty.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/test-fixtures/pty-connection-test-store-fixtures.ts
  • src/renderer/src/components/terminal-pane/pty-connection/test-fixtures/pty-connection-test-store-state.ts
  • src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts
  • src/renderer/src/components/terminal-pane/titles/use-terminal-tab-agent-types.test.tsx
  • src/renderer/src/components/terminal-workspace-keydown.test.ts
  • src/renderer/src/components/terminal/provider-snapshots/terminal-provider-snapshot-bound-pty-ids.ts
  • src/renderer/src/components/terminal/tab-lifecycle/running-terminal-close-guard.test.ts
  • src/renderer/src/components/terminal/tab-lifecycle/terminal-tab-close-running-confirm.test.ts
  • src/renderer/src/components/terminal/workspace-mounting/split-group-mount.ts
  • src/renderer/src/components/workspace-cleanup/removal/use-workspace-cleanup-removal.agent-stop.test.tsx
  • src/renderer/src/components/worktree-jump/state/worktree-jump-palette-status-inputs.ts
  • src/renderer/src/hooks/agent-hook-completion-grok-notifications.test.ts
  • src/renderer/src/hooks/agent-hook-completion-notifications.test.ts
  • src/renderer/src/hooks/ipc-events-agent-status-store-test-fixtures.ts
  • src/renderer/src/hooks/ipc-events/agent-status-bridge-types.ts
  • src/renderer/src/hooks/ipc-events/agent-status-event-applicator.ts
  • src/renderer/src/hooks/ipc-events/agent-status-listeners.ts
  • src/renderer/src/hooks/ipc-events/agent-status-partial-updates.ts
  • src/renderer/src/hooks/ipc-events/agent-status-routing.ts
  • src/renderer/src/hooks/ipc-events/normalize-agent-status-event.ts
  • src/renderer/src/lib/agent-session/accounts/agent-account-restart-startup.test.ts
  • src/renderer/src/lib/agent-session/accounts/claude/claude-session-account-move.test.ts
  • src/renderer/src/lib/agent-session/hibernation/agent-hibernation-coordinator-test-fixture.ts
  • src/renderer/src/lib/agent-session/hibernation/agent-hibernation-planner.test.ts
  • src/renderer/src/lib/agent-session/hibernation/agent-hibernation-runtime-liveness-race.test.ts
  • src/renderer/src/lib/agent-session/history/title-sync/ai-vault-tab-title-placement-inputs.ts
  • src/renderer/src/lib/agent-session/history/title-sync/ai-vault-tab-title-sync-inputs.test.ts
  • src/renderer/src/lib/agent-session/history/title-sync/ai-vault-tab-title-sync-inputs.ts
  • src/renderer/src/lib/agent-session/history/title-sync/ai-vault-tab-title-test-fixture.ts
  • src/renderer/src/lib/agent-session/identity/pane-agent-conversations.ts
  • src/renderer/src/lib/agent-session/identity/pane-agent-session-id.ts
  • src/renderer/src/lib/agent-session/launch/structured-agent-session-launch-create-message.test-fixture.ts
  • src/renderer/src/lib/agent-session/messaging/running-agent-targets.test.ts
  • src/renderer/src/lib/agent-session/messaging/terminal/active-agent-note-send-test-harness.ts
  • src/renderer/src/lib/agent-session/resume/resume-sleeping-agent-session-provider-claim.test.ts
  • src/renderer/src/lib/agent-session/tab-identity/open-tab-occupant-agent.ts
  • src/renderer/src/lib/agent-session/tab-identity/tab-agent-status-index.ts
  • src/renderer/src/lib/agent-session/tab-identity/tab-agent.ts
  • src/renderer/src/lib/workspace/search/tabs/workspace-tab-agent-index.ts
  • src/renderer/src/lib/workspace/search/tabs/workspace-tab-agent-metadata.ts
  • src/renderer/src/lib/workspace/search/tabs/workspace-tab-palette-index.ts
  • src/renderer/src/lib/workspace/search/tabs/workspace-tab-search-types.ts
  • src/renderer/src/lib/workspace/tabs/worktree-tab-bucket-projection.ts
  • src/renderer/src/runtime/agent-orchestration/visible-agent-orchestration.ts
  • src/renderer/src/runtime/sync-runtime-graph/mobile-session-dirty-workspaces.ts
  • src/renderer/src/runtime/sync-runtime-graph/sync-runtime-graph-payload-partition.test.ts
  • src/renderer/src/runtime/sync-runtime-graph/testing/sync-runtime-graph-test-harness.ts
  • src/renderer/src/runtime/web-session-tabs-sync/agent-status/agent-status-patch.ts
  • src/renderer/src/runtime/web-session-tabs-sync/snapshots/presentation-record-drafts.ts
  • src/renderer/src/runtime/web-session-tabs-sync/snapshots/scoped-patch-annotation.ts
  • src/renderer/src/runtime/web-session-tabs-sync/testing/web-session-tabs-sync.test-fixture.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/record-transitions/keyed-record-change-reads.ts
  • src/renderer/src/store/record-transitions/keyed-record-index-keys.ts
  • src/renderer/src/store/record-transitions/keyed-record-transitions.ts
  • src/renderer/src/store/record-transitions/keyed-tab-row-changes.ts
  • src/renderer/src/store/record-transitions/keyed-tab-row-diff.ts
  • src/renderer/src/store/slices/agent-status/agent-conversation-capacity.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-entry-contracts.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-tool-assistant-fields.spec.ts
  • src/renderer/src/store/slices/agent-status/agent-status.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status.ts
  • src/renderer/src/store/slices/agent-status/contracts/agent-status-contract.ts
  • src/renderer/src/store/slices/agent-status/contracts/agent-status-slice-contract.ts
  • src/renderer/src/store/slices/agent-status/conversation/agent-conversation-acceptance.ts
  • src/renderer/src/store/slices/agent-status/conversation/agent-conversation-capacity-index.ts
  • src/renderer/src/store/slices/agent-status/conversation/agent-conversation-capacity.test.ts
  • src/renderer/src/store/slices/agent-status/conversation/agent-conversation-continuity.ts
  • src/renderer/src/store/slices/agent-status/conversation/agent-conversation-retention.ts
  • src/renderer/src/store/slices/agent-status/conversation/agent-pane-conversation.ts
  • src/renderer/src/store/slices/agent-status/hook-session-binding-renderer.test-fixture.ts
  • src/renderer/src/store/slices/agent-status/launch-config/agent-status-launch-actions.ts
  • src/renderer/src/store/slices/agent-status/launch-config/agent-status-launch-config.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-capacity-eviction.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-actions.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-entry-builder.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-entry-children.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-entry-contract.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-entry-main-agent.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-entry-timing.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-facts.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-map-leak.test.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-live-reducer.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-program-status-actions.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-provider-session-actions.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-provider-session.test.ts
  • src/renderer/src/store/slices/agent-status/live-status/agent-status-tool-assistant-fields.spec.ts
  • src/renderer/src/store/slices/agent-status/orchestration/agent-status-orchestration-actions.ts
  • src/renderer/src/store/slices/agent-status/orchestration/agent-status-orchestration-context.ts
  • src/renderer/src/store/slices/agent-status/pane-authority/agent-pane-authority.ts
  • src/renderer/src/store/slices/agent-status/pane-authority/agent-pane-execution-host.ts
  • src/renderer/src/store/slices/agent-status/pane-authority/agent-status-authority-actions.ts
  • src/renderer/src/store/slices/agent-status/pane-authority/agent-status-pane-key-tab-binding.ts
  • src/renderer/src/store/slices/agent-status/pane-authority/agent-status-pane-keyed-records.ts
  • src/renderer/src/store/slices/agent-status/pane-authority/pane-foreground-agent.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-row-display-index.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-row-display-model.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-capacity.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-capture.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-counts.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-publish-arrangement.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-publish-rows.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-publish-topology.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-reads.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-rows.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-state.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-terminal-types.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-topology.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-transitions.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-types.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection.ts
  • src/renderer/src/store/slices/agent-status/retirement/agent-status-cleanup-actions.ts
  • src/renderer/src/store/slices/agent-status/retirement/agent-status-connection-worktree-scope.ts
  • src/renderer/src/store/slices/agent-status/retirement/agent-status-drop-actions.ts
  • src/renderer/src/store/slices/agent-status/retirement/agent-status-drop-reducer.ts
  • src/renderer/src/store/slices/agent-status/retirement/agent-status-migration-unsupported-entries.ts
  • src/renderer/src/store/slices/agent-status/retirement/agent-status-process-retirement.ts
  • src/renderer/src/store/slices/agent-status/retirement/agent-status-worktree-drop-actions.ts
  • src/renderer/src/store/slices/agent-status/sleep-recovery/agent-status-manual-sleep-capture.test.ts
  • src/renderer/src/store/slices/agent-status/sleep-recovery/agent-status-nested-resume.spec.ts
  • src/renderer/src/store/slices/agent-status/sleep-recovery/agent-status-quit-capture.test.ts
  • src/renderer/src/store/slices/agent-status/sleep-recovery/agent-status-recovery-actions.ts
  • src/renderer/src/store/slices/agent-status/sleep-recovery/agent-status-recovery-collection.ts
  • src/renderer/src/store/slices/agent-status/sleep-recovery/agent-status-sleeping-records.ts
  • src/renderer/src/store/slices/agent-status/status-ownership/accepted-agent-statuses.ts
  • src/renderer/src/store/slices/agent-status/status-ownership/agent-status-batch-update.ts
  • src/renderer/src/store/slices/agent-status/status-ownership/agent-status-batch.test.ts
  • src/renderer/src/store/slices/agent-status/status-ownership/agent-status-freshness-scheduler.ts
  • src/renderer/src/store/slices/agent-status/status-ownership/agent-status-ownership-boundary.ts
  • src/renderer/src/store/slices/agent-status/status-ownership/agent-status-runtime.ts
  • src/renderer/src/store/slices/agent-status/structured-sessions/structured-chat-companion-writes.ts
  • src/renderer/src/store/slices/agent-status/structured-sessions/structured-chat-slept-at.ts
  • src/renderer/src/store/slices/agent-status/structured-sessions/structured-session-admission.test-fixture.ts
  • src/renderer/src/store/slices/agent-status/structured-sessions/structured-session-launch-directories.ts
  • src/renderer/src/store/slices/browser/pages/browser-page-state-actions.ts
  • src/renderer/src/store/slices/editor/file-ids/hydrated-editor-file-ids.ts
  • src/renderer/src/store/slices/editor/hydration/restored-editor-owner-in-place.ts
  • src/renderer/src/store/slices/editor/hydration/restored-editor-owner-transition.ts
  • src/renderer/src/store/slices/editor/markdown/markdown-preview-actions.ts
  • src/renderer/src/store/slices/editor/opening/open-file-mutations.ts
  • src/renderer/src/store/slices/runtime-status/create-runtime-status-slice.ts
  • src/renderer/src/store/slices/runtime-status/runtime-environment-status-retention.ts
  • src/renderer/src/store/slices/ssh/ssh-target-cleanup.ts
  • src/renderer/src/store/slices/tabs/collapse-emptied-kept-groups.ts
  • src/renderer/src/store/slices/tabs/kept-worktree-surface-pruning.ts
  • src/renderer/src/store/slices/tabs/rename-worktree-layout.ts
  • src/renderer/src/store/slices/tabs/tab-group-state.ts
  • src/renderer/src/store/slices/tabs/tabs-close-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-create-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-drag-preview-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-drop-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-focus-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-group-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-host-mirroring.ts
  • src/renderer/src/store/slices/tabs/tabs-label-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-move-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-reconciliation-batch.ts
  • src/renderer/src/store/slices/tabs/tabs-session-actions.ts
  • src/renderer/src/store/slices/tabs/tabs-split-ratio-actions.ts
  • src/renderer/src/store/slices/tabs/worktree-layout-lifecycle.ts
  • src/renderer/src/store/slices/tabs/worktree-terminal-tab-respawn.ts
  • src/renderer/src/store/slices/ui/ui-slice-activity-actions.ts
  • src/renderer/src/store/slices/workspace-attention/subject-attention-transitions.ts
  • src/renderer/src/store/slices/workspace-attention/workspace-attention-slice.ts
  • src/renderer/src/store/slices/workspace-attention/workspace-marker-host.ts
  • src/renderer/src/store/slices/workspace-attention/workspace-unread-explicit-read.test.ts
  • src/renderer/src/store/slices/workspace-cleanup/workspace-cleanup-slice-test-harness.ts
  • src/renderer/src/store/slices/worktrees/session/worktree-identity-rename-state.ts
  • src/renderer/src/store/slices/worktrees/session/worktree-slice-lookups.ts
  • src/renderer/src/store/slices/worktrees/teardown/record-key-omission.ts
  • src/renderer/src/store/slices/worktrees/teardown/worktree-purge-doomed-ids.ts
  • src/renderer/src/store/slices/worktrees/teardown/worktrees-always-force-delete.test.ts
  • src/renderer/src/store/slices/worktrees/worktrees-slice-test-harness.ts
  • src/renderer/src/store/terminals/hydration/workspace-terminal-hydration-patch.ts
  • src/renderer/src/store/terminals/hydration/workspace-terminal-hydration.ts
  • src/renderer/src/store/terminals/hydration/workspace-terminal-reconnect.ts
  • src/renderer/src/store/terminals/layout/terminal-layout-state.ts
  • src/renderer/src/store/terminals/ownership/terminal-tab-bucket-index.ts
  • src/renderer/src/store/terminals/ownership/terminal-tab-owner-index.ts
  • src/renderer/src/store/terminals/parking/terminal-parking-input-equality.ts
  • src/renderer/src/store/terminals/parking/terminal-parking-input-owner.ts
  • src/renderer/src/store/terminals/pty/terminal-pty-bindings.ts
  • src/renderer/src/store/terminals/pty/terminal-pty-identities.ts
  • src/renderer/src/store/terminals/pty/terminal-pty-release.ts
  • src/renderer/src/store/terminals/retirement/retired-terminal-tab-state-sweep.ts
  • src/renderer/src/store/terminals/retirement/terminal-orphan-cleanup.ts
  • src/renderer/src/store/terminals/retirement/terminal-tab-close.ts
  • src/renderer/src/store/terminals/sleep/sleeping-agent-record-index.ts
  • src/renderer/src/store/terminals/sleep/terminal-pane-hibernation.ts
  • src/renderer/src/store/terminals/sleep/terminal-shutdown-state.ts
  • src/renderer/src/store/terminals/sleep/terminal-shutdown.ts
  • src/renderer/src/store/terminals/tabs/creation/terminal-companion-record-operations.ts
  • src/renderer/src/store/terminals/tabs/creation/terminal-startup-queues.ts
  • src/renderer/src/store/terminals/tabs/creation/terminal-tab-agent-launch-pane.ts
  • src/renderer/src/store/terminals/tabs/creation/terminal-tab-creation.ts
  • src/renderer/src/store/terminals/tabs/creation/window-tab-start-in-main.ts
  • src/renderer/src/store/terminals/tabs/presentation/terminal-tab-appearance.ts
  • src/renderer/src/store/terminals/tabs/presentation/terminal-tab-presentation.ts
  • src/renderer/src/store/terminals/tabs/presentation/terminal-tab-title-batch.ts
  • src/renderer/src/store/terminals/tabs/terminal-tab-navigation.ts
  • src/renderer/src/store/terminals/terminal-actions.ts
  • src/renderer/src/store/testing/app-store-test-fixture.ts
  • src/renderer/src/store/types.ts
  • src/renderer/src/store/workspace-layout/frames/workspace-layout-frame-store-patch.ts
  • src/renderer/src/store/workspace-layout/seam-record-fields.ts
  • src/renderer/src/store/workspace-layout/tab-transition-subscription.ts
  • tests/e2e/nested-agent-idle-owner.unit.test.ts
  • tests/e2e/omp-retired-host-renderer.unit.test.ts
  • tests/e2e/paired-runtime-rejected-input-remount.unit.test.ts
  • tests/e2e/structured-attention-read-retirement.test-fixture.tsx
  • tests/tools/omp-remote-sidebar-rendered/fixture.tsx
Files with no reviewable changes: 31

  • .github/workflows/pr.yml
  • config/flaky-test-pattern-baseline.txt
  • config/scripts/ci/unit-selection/dependency-graph/ci-unit-files.mjs
  • config/scripts/workflow/source-routing/pr-shell-contract-prefixes.mjs
  • src/main/native-chat/agent-session-wire/host/testing/structured-agent-session-queued-quit.test.ts
  • src/renderer/src/components/native-chat/session/status/structured-chat-sleep-startup.test.tsx
  • src/renderer/src/components/native-chat/session/terminal/send/use-native-chat-interactive-send.test.tsx
  • src/renderer/src/components/terminal-pane/account-restart/detached/claude-detached-pane-restart.test.ts
  • src/renderer/src/components/terminal-pane/input/paste/terminal-agent-paste-bracketing.test.ts
  • src/renderer/src/components/terminal-pane/parking/output-watchers/parked-terminal-command-status.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/foreground-process/pane-foreground-agent-tracker.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/emulation/fish-color-scheme-child-stdin.node-pty.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts
  • src/renderer/src/hooks/agent-hook-completion-grok-notifications.test.ts
  • src/renderer/src/hooks/agent-hook-completion-notifications.test.ts
  • src/renderer/src/lib/agent-session/hibernation/agent-hibernation-runtime-liveness-race.test.ts
  • src/renderer/src/store/record-transitions/keyed-record-change-reads.ts
  • src/renderer/src/store/record-transitions/keyed-record-index-keys.ts
  • src/renderer/src/store/record-transitions/keyed-record-transitions.ts
  • src/renderer/src/store/record-transitions/keyed-tab-row-changes.ts
  • src/renderer/src/store/record-transitions/keyed-tab-row-diff.ts
  • src/renderer/src/store/slices/agent-status/agent-conversation-capacity.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-tool-assistant-fields.spec.ts
  • src/renderer/src/store/slices/agent-status/hook-session-binding-renderer.test-fixture.ts
  • src/renderer/src/store/slices/agent-status/projection/agent-status-projection-capture.ts
  • src/renderer/src/store/slices/agent-status/structured-sessions/structured-session-admission.test-fixture.ts
  • src/renderer/src/store/slices/worktrees/teardown/worktrees-always-force-delete.test.ts
  • tests/e2e/nested-agent-idle-owner.unit.test.ts
  • tests/e2e/omp-retired-host-renderer.unit.test.ts
  • tests/e2e/paired-runtime-rejected-input-remount.unit.test.ts
Files skipped from review as they are similar to previous changes: 8

  • src/renderer/src/components/tab-bar/terminal-tabs/terminal-tab-activity-status.ts
  • src/renderer/src/components/terminal-pane/input/paste/terminal-agent-paste-bracketing.ts
  • src/renderer/src/components/terminal-pane/pty-connection/test-fixtures/pty-connection-test-store-state.ts
  • src/renderer/src/lib/agent-session/identity/pane-agent-conversations.ts
  • src/renderer/src/lib/agent-session/tab-identity/open-tab-occupant-agent.ts
  • src/renderer/src/store/slices/agent-status/contracts/agent-status-slice-contract.ts
  • src/renderer/src/store/slices/agent-status/status-ownership/agent-status-batch-update.ts
  • src/renderer/src/store/types.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@nwparker
nwparker force-pushed the module-layout-v2/store-agent-status-8abbc914 branch from 908279e to 4e49d01 Compare November 17, 2026 09:10
@nwparker
nwparker force-pushed the module-layout-v2/store-agent-status-8abbc914 branch from 4e49d01 to b111acc Compare November 17, 2026 09:21
@nwparker
nwparker merged commit b03a4fe into main Nov 17, 2026
69 checks passed
llewellynvz added a commit to llewellynvz/orca that referenced this pull request Nov 17, 2026
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
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
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.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
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.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
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.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
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.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
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.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
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.
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