The open source coding agent.
TypeScript
Allow multiline prompts for github agent (#1225)
Andrew Joslin638ec7bc5023
diff --git a/sdks/github/src/index.ts b/sdks/github/src/index.tsindex fd6e08aa010..51ee4f704f1 100644--- a/sdks/github/src/index.ts+++ b/sdks/github/src/index.ts@@ -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()