Allow multiline prompts for github agent (#1225)

This commit is contained in:
Andrew Joslin 2025-07-22 18:30:51 -04:00 committed by Dax Raad
parent a30f613e09
commit ff2af54b0f

View file

@ -43,8 +43,8 @@ let state:
async function run() {
try {
const match = body.match(/^hey\s*opencode,?\s*(.*)$/)
if (!match?.[1]) throw new Error("Command must start with `hey opencode`")
const match = body.match(/^hey\s*opencode,/)
if (!match?.[1]) throw new Error("Command must start with `hey opencode,`")
const userPrompt = match[1]
const oidcToken = await generateGitHubToken()