Skip to content

New workspace create page#710

Merged
nwparker merged 5 commits intomainfrom
nwparker/orca-new-page
Apr 16, 2026
Merged

New workspace create page#710
nwparker merged 5 commits intomainfrom
nwparker/orca-new-page

Conversation

@nwparker
Copy link
Copy Markdown
Contributor

No description provided.

@nwparker nwparker force-pushed the nwparker/orca-new-page branch from a08d0c2 to 083a637 Compare April 16, 2026 09:08
@nwparker nwparker force-pushed the nwparker/orca-new-page branch from 8eaa0a3 to 3998214 Compare April 16, 2026 22:04
- widen activateAndRevealWorktree's issueCommand to accept direct
  command shape used by NewWorkspacePage, not just the main-process
  runner-script variant
- use a ref object in pty-connection tests to dodge TS narrowing the
  captured callback to never across the mock closure boundary
The auto-suffix loop in createLocalWorktree had no termination cap.
When tests (or a misconfigured env) mocked getBranchConflictKind /
getPRForBranch to always return a collision, the loop ran forever and
the vitest worker crashed with "Ineffective mark-compacts near heap
limit".

Cap the search at 100 suffixes, and if all fail, fall back to the
original specific error messages (branch already exists / PR already
owns the name) instead of a generic failure.

Update the two tests that asserted the old throw-on-first-conflict
behavior to verify the new auto-suffix path end-to-end.
@nwparker nwparker merged commit d2a53c8 into main Apr 16, 2026
1 check passed
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