From ebc38b06e0e0f4745f22ea51d1ebcce015dec6c8 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Wed, 6 May 2026 23:48:11 -0700 Subject: [PATCH] Linear: paste only URL as draft on workspace create (#1530) Co-authored-by: Orca --- src/renderer/src/hooks/useComposerState.ts | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/renderer/src/hooks/useComposerState.ts b/src/renderer/src/hooks/useComposerState.ts index d571a72dd4d..0dbc278c159 100644 --- a/src/renderer/src/hooks/useComposerState.ts +++ b/src/renderer/src/hooks/useComposerState.ts @@ -1179,20 +1179,11 @@ export function useComposerState(options: UseComposerStateOptions): UseComposerS setName(suggestedName) lastAutoNameRef.current = suggestedName } - const details = [ - `[${issue.identifier}] ${issue.title}`, - `Status: ${issue.state.name} · Team: ${issue.team.name}`, - issue.assignee ? `Assignee: ${issue.assignee.displayName}` : null, - issue.labels.length > 0 ? `Labels: ${issue.labels.join(', ')}` : null, - `URL: ${issue.url}`, - issue.description ? `\n${issue.description}` : null - ] - .filter(Boolean) - .join('\n') - if (!noteRef.current.trim() || noteRef.current === lastAutoNoteRef.current) { - setNote(details) - lastAutoNoteRef.current = details - } + // Why: match the GitHub issue/PR flow — paste only the URL as a draft + // into the agent's input (no auto-submit). The launch path already + // drafts `linkedWorkItem.url` when the note is empty; auto-filling the + // note here would flip Linear into the `isLinearTypedOnly` branch and + // auto-submit the full details block. }, [name] )