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>
thinking-toggle-wip
Charles Cooper 2025-12-12 20:45:28 -05:00 committed by Aiden Cline
parent f1ceee1f2e
commit 5ee52d2f84
1 changed files with 6 additions and 1 deletions

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