From 22a6c79c3c32770e3bbbc34cc94de1f168145fbf Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Thu, 16 Oct 2025 17:48:58 +0200 Subject: [PATCH] chore: apply requested coderabbit changes --- apps/cli/src/commands/auth.command.ts | 30 +++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/apps/cli/src/commands/auth.command.ts b/apps/cli/src/commands/auth.command.ts index f9553a04..e2878dd8 100644 --- a/apps/cli/src/commands/auth.command.ts +++ b/apps/cli/src/commands/auth.command.ts @@ -354,8 +354,34 @@ export class AuthCommand extends Command { // Post-auth: Set up workspace context console.log(); // Add spacing - const contextCommand = new ContextCommand(); - await contextCommand.setupContextInteractive(); + try { + const contextCommand = new ContextCommand(); + const contextResult = await contextCommand.setupContextInteractive(); + if (contextResult.success) { + if (contextResult.orgSelected && contextResult.briefSelected) { + console.log( + chalk.green('✓ Workspace context configured successfully') + ); + } else if (contextResult.orgSelected) { + console.log(chalk.green('✓ Organization selected')); + } + } else { + console.log( + chalk.yellow('⚠ Context setup was skipped or encountered issues') + ); + console.log( + chalk.gray(' You can set up context later with "tm context"') + ); + } + } catch (contextError) { + console.log(chalk.yellow('⚠ Context setup encountered an error')); + console.log( + chalk.gray(' You can set up context later with "tm context"') + ); + if (process.env.DEBUG) { + console.error(chalk.gray((contextError as Error).message)); + } + } return { success: true,