Explorar o código

Allow multiline prompts for github agent (#1225)

Andrew Joslin hai 7 meses
pai
achega
638ec7bc50
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      sdks/github/src/index.ts

+ 2 - 2
sdks/github/src/index.ts

@@ -43,8 +43,8 @@ let state:
 
 
 async function run() {
 async function run() {
   try {
   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 userPrompt = match[1]
 
 
     const oidcToken = await generateGitHubToken()
     const oidcToken = await generateGitHubToken()