mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-21 18:26:09 +00:00
fix(tui): show opencode2 continuation command (#37933)
Co-authored-by: Dax <mail@thdxr.com>
This commit is contained in:
co-authored by
Dax
parent
6702ce0d3f
commit
3f4fb3f9db
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user