Repository navigation
Split automation dispatch event handling - #17155
Merged
nwparker merged 23 commits intoAug 30, 2026
Merged
Conversation
Greptile SummaryThe PR splits automation dispatch handling into dedicated workspace, request-handling, and completion modules while retaining the React hook as the external subscription owner.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/renderer/src/hooks/automation-dispatch-handler.ts | Owns dispatch orchestration, reusable-session selection, fresh agent launch, result persistence, and focus restoration. |
| src/renderer/src/hooks/automation-dispatch-workspace.ts | Encapsulates workspace and host resolution, SSH readiness, prechecks, and per-run worktree creation. |
| src/renderer/src/hooks/automation-dispatch-completion.ts | Encapsulates output capture, status and exit observation, result settlement, cleanup, and terminal ownership finalization. |
| src/renderer/src/hooks/useAutomationDispatchEvents.ts | Retains sole ownership of the external dispatch subscription while delegating each request to the extracted handler. |
| config/max-lines-baseline.txt | Removes the now-split dispatch hook from the max-lines exception list. |
Sequence Diagram
sequenceDiagram
participant Hook as useAutomationDispatchEvents
participant Handler as Dispatch handler
participant Workspace as Workspace preparation
participant Agent as Agent session
participant Completion as Completion observer
participant API as Automations API
Hook->>Handler: dispatch request
Handler->>Workspace: resolve and prepare workspace
Workspace-->>Handler: worktree or terminal status
Handler->>Agent: reuse or launch session
Handler->>Completion: register output/status/exit observers
Handler->>API: mark dispatched
Agent-->>Completion: output, done, or exit
Completion->>API: mark completed or failed
Completion->>Completion: cleanup observers and terminal ownership
Reviews (2): Last reviewed commit: "Merge branch 'ra/max-lines-bottom-9-host..." | Re-trigger Greptile
This was referenced Aug 29, 2026
…om-3-mobile-browser
…-bottom-4-prune-resolved
…-bottom-5-pane-tree-ops
…bottom-6-mobile-troubleshoot
…lines-bottom-7-external-manager
…es-bottom-8-attach-services
…s-bottom-9-hosted-review-creation
…ax-lines-bottom-10-automation-dispatch-events
…0-automation-dispatch-events # Conflicts: # src/renderer/src/hooks/useAutomationDispatchEvents.ts
|
Too many files changed for review (111 files, 100 file limit). Bypass the limit by tagging |
nwparker
changed the base branch from
ra/max-lines-bottom-9-hosted-review-creation
to
main
August 30, 2026 03:12
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
* Split speech session lifecycle * Split terminal output scheduler pipeline * Split mobile browser pane modules * Prune resolved max-lines suppressions * Split pane tree equalization logic * Extract mobile troubleshoot screen styles * Split external automation manager * Split main window service attachments * Split hosted review creation checks * Split automation dispatch event handling * Fix F3-speech for stablyai#17123 * Fix F1-cycle for stablyai#17131
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
pnpm tcpnpm tc:webpnpm run check:code-quality:changedpnpm check:max-lines-ratchetpnpm test src/renderer/src/hooks/useAutomationDispatchEvents.test.tsStacked on #17152.