Skip to content

Linear: paste only URL as draft on workspace create#1530

Merged
nwparker merged 1 commit intomainfrom
nwparker/just-linear-URL
May 7, 2026
Merged

Linear: paste only URL as draft on workspace create#1530
nwparker merged 1 commit intomainfrom
nwparker/just-linear-URL

Conversation

@nwparker
Copy link
Copy Markdown
Contributor

@nwparker nwparker commented May 7, 2026

Problem

Creating a workspace via 'create from' with a GitHub issue/PR pastes just the URL into the agent's input as a draft (no auto-submit). But Linear pastes a full details block (ID, title, status, team, assignee, labels, URL, description) and auto-submits it.

Fix

handleSmartLinearIssueSelect (src/renderer/src/hooks/useComposerState.ts) was auto-filling the composer's note field with the multi-line details block. At launch, because Linear items use number === 0, the composer's isLinearTypedOnly branch fired and sent that note to the agent as a prompt — which submits.

Stop auto-filling the note. With an empty note, Linear falls into the same launch branch GitHub uses:

const quickDraftPrompt = linkedWorkItem && !isLinearTypedOnly ? linkedWorkItem.url : null

…which types only the URL into the agent's input as a draft (no Enter). Workspace name still auto-fills with the issue title (separate field, untouched).

Test plan

  • Open new-workspace composer, pick a Linear issue → name field auto-fills with title; agent input gets only the issue URL as a draft (no submit).
  • Pick a GitHub issue/PR → unchanged (URL drafted, no submit).
  • Manually typing a note before submit still works (and for hand-typed Linear identifiers without a URL, the existing typed-only fallback still sends the note).

Made with Orca 🐋

Selecting a Linear issue in the new-workspace composer auto-filled the
note with a multi-line details block (ID, title, status, team, assignee,
labels, URL, description). At launch, because Linear items use
number === 0, the composer's isLinearTypedOnly branch fired and sent
that whole block to the agent as a prompt — auto-submitting it instead
of drafting just the URL.

Stop auto-filling the note in handleSmartLinearIssueSelect. With an
empty note, the launch path falls into the same branch GitHub
issues/PRs use: quickDraftPrompt = linkedWorkItem.url, which types the
URL into the agent's input as a draft (no Enter). Workspace name still
auto-fills with the issue title.

Co-authored-by: Orca <help@stably.ai>
@nwparker nwparker merged commit ebc38b0 into main May 7, 2026
3 checks passed
@nwparker nwparker deleted the nwparker/just-linear-URL branch May 7, 2026 06:48
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