Commit eecaee5
committed
fix: preserve signup flags in classic mode
resolveMode classifies a TTY classic run as 'interactive', causing
buildSession to strip --auth-onboarding / --email / --accept-tos.
Classic mode is interactive-but-not-TUI: it uses terminal prompts,
not the Ink screens that own those decisions, and explicitly supports
direct signup via CLI flags (runDirectSignupIfRequested in default.ts).
Detect --classic / AMPLITUDE_WIZARD_CLASSIC=1 in buildSessionFromOptions
and omit executionMode so buildSession honors the flags.1 parent edd4df8 commit eecaee5
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
131 | | - | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
| |||
0 commit comments