Skip to content

The open source coding agent.

TypeScript

Add session share URL display to CLI output

Dax Raad671e91f20145
diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts
index 538e0c8551a..0ed49f6e975 100644
--- a/packages/opencode/src/index.ts
+++ b/packages/opencode/src/index.ts
@@ -110,6 +110,12 @@ cli
empty()
stderr(styles.TEXT_NORMAL_BOLD + "> ", message.join(" "))
empty()
+ stderr(
+ styles.TEXT_INFO_BOLD +
+ "~ https://dev.opencode.ai/s?id=" +
+ session.id.slice(-8),
+ )
+ empty()
function printEvent(color: string, type: string, title: string) {
stderr(