feat: improve auth login by adding context selection immediately after logging in

This commit is contained in:
Ralph Khreish
2025-10-15 16:33:37 +02:00
parent ff3bd7add8
commit fb68c9fe1f
2 changed files with 53 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import {
type AuthCredentials
} from '@tm/core/auth';
import * as ui from '../utils/ui.js';
import { ContextCommand } from './context.command.js';
/**
* Result type from auth command
@@ -351,6 +352,11 @@ export class AuthCommand extends Command {
chalk.gray(` Logged in as: ${credentials.email || credentials.userId}`)
);
// Post-auth: Set up workspace context
console.log(); // Add spacing
const contextCommand = new ContextCommand();
await contextCommand.setupContextInteractive();
return {
success: true,
action: 'login',