Skip to content

refactor: extract terminal Cmd-click UI test coordinator - #70

Closed
teamleaderleo wants to merge 1 commit into
refactor/session-snapshot-writerfrom
refactor/terminal-cmdclick-uitest
Closed

teamleaderleo wants to merge 1 commit into
refactor/session-snapshot-writerfrom
refactor/terminal-cmdclick-uitest

Conversation

@teamleaderleo

Copy link
Copy Markdown
Owner

Problem

The terminal Cmd-click UI-test fixture was an ~800-line state machine embedded in AppDelegate, including fixture setup, terminal seeding, token geometry, command execution, polling, notifications, screenshots, and manifest writes.

Change

Extract it into TerminalCmdClickUITestCoordinator, with dedicated configuration and manifest-writer types. AppDelegate now composes the coordinator with weak closures for tab/window resolution, manager diagnostics, and terminal text setup. The exact environment names, manifest keys, and fixture timing behavior are preserved.

This PR is stacked on #67.

Validation

  • swiftc -D DEBUG -parse Sources/Debug/UITests/TerminalCmdClickUITestConfiguration.swift Sources/Debug/UITests/TerminalCmdClickUITestManifestWriter.swift Sources/Debug/UITests/TerminalCmdClickUITestCoordinator.swift Sources/AppDelegate.swift
  • git diff --check

A full xcodebuild was attempted but blocked before compilation because this fork worktree is missing vendor/bonsplit/Package.swift (uninitialized dependency).

@teamleaderleo

Copy link
Copy Markdown
Owner Author

Consolidated into the coherent upstream slices #78 (UI-test infrastructure), #79 (session lifecycle), #80 (window ownership), and #82 (terminal diagnostics). The original branch remains available for history.

@teamleaderleo
teamleaderleo deleted the refactor/terminal-cmdclick-uitest branch September 23, 2026 11:36
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