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

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-05-06 23:48:11 -07:00
committed by GitHub
co-authored by Orca
parent 7b83b2dcdc
commit ebc38b06e0
+5 -14
View File
@@ -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]
)