Bladeren bron

fix(tui): show opencode2 continuation command (#37933)

Co-authored-by: Dax <mail@thdxr.com>
opencode-agent[bot] 3 weken geleden
bovenliggende
commit
3f4fb3f9db

+ 1 - 1
packages/tui/src/util/presentation.ts

@@ -32,7 +32,7 @@ export function sessionEpilogue(input: { title: string; sessionID?: string }) {
     ...wordmark("  "),
     "",
     `  ${weak("Session")}${bold}${input.title}${reset}`,
-    `  ${weak("Continue")}${bold}opencode -s ${input.sessionID}${reset}`,
+    `  ${weak("Continue")}${bold}opencode2 -s ${input.sessionID}${reset}`,
     "",
   ].join("\n")
 }

+ 1 - 1
packages/tui/test/app-lifecycle.test.tsx

@@ -121,7 +121,7 @@ test("session lifecycle updates the terminal title and prints the epilogue after
     await task
 
     expect(stdout).toContain("Renamed session")
-    expect(stdout).toContain("opencode -s dummy")
+    expect(stdout).toContain("opencode2 -s dummy")
   } finally {
     process.stdout.write = originalWrite
     if (!setup.renderer.isDestroyed) setup.renderer.destroy()

+ 1 - 1
packages/tui/test/util/presentation.test.ts

@@ -4,5 +4,5 @@ import { sessionEpilogue } from "../../src/util/presentation"
 test("formats session continuation summary", () => {
   const epilogue = sessionEpilogue({ title: "A session", sessionID: "ses_123" })
   expect(epilogue).toContain("A session")
-  expect(epilogue).toContain("opencode -s ses_123")
+  expect(epilogue).toContain("opencode2 -s ses_123")
 })