Skip to content

Simplify new workspace quick-create and wire Use button to direct launch - #913

Merged
nwparker merged 10 commits into
mainfrom
nwparker/no-composer
Apr 21, 2026
Merged

nwparker merged 10 commits into
mainfrom
nwparker/no-composer

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • Rebuild the new workspace quick-create dialog around a compact shared composer card, with focused repo/agent comboboxes, autofocus flow, and a collapsible Advanced section for notes and setup decisions.
  • Wire the work-item row Use button to a new direct-launch flow that creates the workspace, activates it, starts the detected default agent, waits for it to become ready, and pastes the issue/PR URL as an unsubmitted draft — falling back to the modal when setup policy is ask or no agent is detected.
  • Stretch the repo and agent combobox dropdowns to match their trigger width so they align with the Workspace Name input, and add per-item "Set as default" right-click handling in the agent picker.

Test plan

  • Lint clean (pnpm -s run lint)
  • Verified quick-create dialog end-to-end via CDP: repo select → name → agent → create creates worktree with expected args
  • Verified Use button flow launches workspace, activates it, starts the agent, and reaches readiness
  • Visually confirmed dropdowns render full trigger width in quick-create dialog
  • Smoke-check Use fallback path when setupRunPolicy === 'ask' opens the composer modal

nwparker added 10 commits April 20, 2026 21:15
Skips the composer modal for the common case: creates the workspace,
activates it, launches the default agent, and pastes the work-item URL
into the agent's input as a reviewable draft. Falls back to the modal
when setupRunPolicy is 'ask' or no compatible agent is detected.
Repository and Agent rows in the quick-create dialog now span the full
dialog width like the Workspace Name input, and their dropdown popovers
inherit the trigger width so the entries align edge-to-edge with the
trigger instead of clipping to a fixed 288/320px.
@nwparker
nwparker merged commit 369ddb6 into main Apr 21, 2026
2 checks passed
MarcCG0 added a commit to MarcCG0/orca that referenced this pull request Oct 11, 2026
Cmd+N gets a Prompt field below Workspace Name. Type the task, submit, and
the worktree is created in the background; the agent launches with that
prompt already submitted once setup finishes, so there is nothing to
re-type into the agent tab.

The composer already carried `agentPrompt` state and a prompt-to-launch
path — only the removed "full" composer could reach it (stablyai#913). This
reconnects that path instead of adding a parallel one:

- `resolveQuickCreateLinkedWorkItemPrompt` becomes
  `resolveQuickCreateAgentPrompt` and takes the typed prompt. Unlinked
  creates auto-submit it; when a work item is linked, the prompt is
  prepended to the existing draft so untrusted provider prose stays
  reviewable.
- Prompt resolution moves into quick-submit-preparation, beside the note
  it already trims.
- quick-submit-action reuses the derived `workspaceSeedName` rather than
  recomputing the seed with a hardcoded empty prompt, so a blank name
  slugs the branch from the prompt.

Folder workspaces share the dialog and already auto-submitted the note as
the first agent message; a typed prompt now takes that role and the
note-only behavior is preserved when no prompt is typed. The note stays
the workspace card comment for git worktrees.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…nch (stablyai#913)

* Refine workspace composer controls

* Working repo autofocus

* after selects

* Simplify workspace quick create dialog

* Refine quick create form focus flow

* autofocus fix

* normal dialog

* base dialogs

* Wire Use button to launch workspace directly

Skips the composer modal for the common case: creates the workspace,
activates it, launches the default agent, and pastes the work-item URL
into the agent's input as a reviewable draft. Falls back to the modal
when setupRunPolicy is 'ask' or no compatible agent is detected.

* Stretch combobox dropdowns to trigger width

Repository and Agent rows in the quick-create dialog now span the full
dialog width like the Workspace Name input, and their dropdown popovers
inherit the trigger width so the entries align edge-to-edge with the
trigger instead of clipping to a fixed 288/320px.
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