Skip to content

Commit 22f8c22

Browse files
committed
default to thread mode
1 parent abc4b21 commit 22f8c22

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

bun.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opencode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"jsonc-parser": "3.3.1",
6161
"minimatch": "10.0.3",
6262
"open": "10.1.2",
63+
"opencode-ai": "0.0.0-dev-202510110425",
6364
"partial-json": "0.1.7",
6465
"remeda": "catalog:",
6566
"solid-js": "catalog:",

packages/opencode/src/cli/cmd/tui/tui.ts renamed to packages/opencode/src/cli/cmd/tui/spawn.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import { Instance } from "@/project/instance"
33
import path from "path"
44
import { Server } from "@/server/server"
55

6-
export const TuiCommand = cmd({
7-
command: "$0 [project]",
8-
describe: "start opencode tui",
6+
export const TuiSpawnCommand = cmd({
7+
command: "spawn [project]",
98
builder: (yargs) =>
109
yargs
1110
.positional("project", {

packages/opencode/src/cli/cmd/tui/tui-thread.ts renamed to packages/opencode/src/cli/cmd/tui/thread.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { cmd } from "@/cli/cmd/cmd"
22
import { tui } from "./app"
33

44
export const TuiThreadCommand = cmd({
5-
command: "thread [project]",
6-
describe: "start opencode tui threaded",
5+
command: "$0 [project]",
6+
describe: "start opencode tui",
77
builder: (yargs) =>
88
yargs
99
.positional("project", {

packages/opencode/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import { StatsCommand } from "./cli/cmd/stats"
1717
import { McpCommand } from "./cli/cmd/mcp"
1818
import { GithubCommand } from "./cli/cmd/github"
1919
import { ExportCommand } from "./cli/cmd/export"
20-
import { TuiCommand } from "./cli/cmd/tui/tui"
2120
import { AttachCommand } from "./cli/cmd/tui/attach"
22-
import { TuiThreadCommand } from "./cli/cmd/tui/tui-thread"
21+
import { TuiThreadCommand } from "./cli/cmd/tui/thread"
22+
import { TuiSpawnCommand } from "./cli/cmd/tui/spawn"
2323

2424
const cancel = new AbortController()
2525

@@ -70,7 +70,7 @@ const cli = yargs(hideBin(process.argv))
7070
.usage("\n" + UI.logo())
7171
.command(McpCommand)
7272
.command(TuiThreadCommand)
73-
.command(TuiCommand)
73+
.command(TuiSpawnCommand)
7474
.command(AttachCommand)
7575
.command(RunCommand)
7676
.command(GenerateCommand)

0 commit comments

Comments
 (0)