summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCharles Cooper <[email protected]>2025-12-12 20:45:28 -0500
committerGitHub <[email protected]>2025-12-12 19:45:28 -0600
commitb6856bd593402fef816a4ed9f6abfd411f5f463d (patch)
tree5d5e9b12b81c117f30583ef8e4a622b2d01baed9
parent7cb5a77ba68de17ead5e4bbadf69c7720f0bab32 (diff)
downloadopencode-b6856bd593402fef816a4ed9f6abfd411f5f463d.tar.gz
opencode-b6856bd593402fef816a4ed9f6abfd411f5f463d.zip
fix: add --session flag to attach command (#5460)
Co-authored-by: Claude Opus 4.5 <[email protected]> Co-authored-by: Aiden Cline <[email protected]>
-rw-r--r--packages/opencode/src/cli/cmd/tui/attach.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/attach.ts b/packages/opencode/src/cli/cmd/tui/attach.ts
index 7da6507ea..5d1a4ded2 100644
--- a/packages/opencode/src/cli/cmd/tui/attach.ts
+++ b/packages/opencode/src/cli/cmd/tui/attach.ts
@@ -14,12 +14,17 @@ export const AttachCommand = cmd({
.option("dir", {
type: "string",
description: "directory to run in",
+ })
+ .option("session", {
+ alias: ["s"],
+ type: "string",
+ describe: "session id to continue",
}),
handler: async (args) => {
if (args.dir) process.chdir(args.dir)
await tui({
url: args.url,
- args: {},
+ args: { sessionID: args.session },
})
},
})