Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/run/splash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function build(input: SplashWriterInput, kind: "entry" | "exit", ctx: Scrollback
lines,
body_left + label.length,
top + 1,
`opencode --mini -s ${meta.session_id}`,
`ocv --mini -s ${meta.session_id}`,
right,
undefined,
TextAttributes.BOLD,
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const args = hideBin(process.argv)

function show(out: string) {
const text = out.trimStart()
if (!text.startsWith("opencode ")) {
if (!text.startsWith("ocv ")) {
process.stderr.write(UI.logo() + EOL + EOL)
process.stderr.write(text + EOL)
return
Expand All @@ -45,7 +45,7 @@ function show(out: string) {

const cli = yargs(args)
.parserConfiguration({ "populate--": true })
.scriptName("opencode")
.scriptName("ocv")
.wrap(100)
.help("help", "show help")
.alias("help", "h")
Expand Down
2 changes: 1 addition & 1 deletion packages/tui/src/util/presentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}ocv -s ${input.sessionID}${reset}`,
"",
].join("\n")
}
2 changes: 1 addition & 1 deletion packages/tui/test/app-lifecycle.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ test("app.exit prints the session epilogue after scoped cleanup", async () => {
await task

expect(stdout).toContain("Demo session")
expect(stdout).toContain("opencode -s dummy")
expect(stdout).toContain("ocv -s dummy")
} finally {
process.stdout.write = originalWrite
if (!setup.renderer.isDestroyed) setup.renderer.destroy()
Expand Down
2 changes: 1 addition & 1 deletion packages/tui/test/util/presentation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("ocv -s ses_123")
})