fix: add --session flag to attach command (#5460)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
Charles Cooper 2025-12-12 20:45:28 -05:00 committed by GitHub
parent 7cb5a77ba6
commit b6856bd593
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 },
})
},
})