- Co-Authored-By
- Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
refactor(coder-lite): move the login flow inside the TUI
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
crates/coder-lite/src/interactive.rs
Diff
1 file changed, +89 -75
crates/coder-lite/src/interactive.rs modified +89 -75
@@ -60,8 +60,6 @@ pub async fn run_tui(options: SessionOptions) -> Result<(), Box<dyn std::error::
| 60 | 60 |
|
| 61 | 61 |
|
| 62 | 62 |
|
| 63 |
|
|
| 64 |
|
|
| 65 | 63 |
|
| 66 | 64 |
|
| 67 | 65 |
|
@@ -90,27 +88,39 @@ pub async fn run_tui(options: SessionOptions) -> Result<(), Box<dyn std::error::
| 90 | 88 |
|
| 91 | 89 |
|
| 92 | 90 |
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
| 91 |
|
|
| 100 | 92 |
|
| 101 | 93 |
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
| 113 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 120 |
|
|
| 121 |
|
|
| 122 |
|
|
| 123 |
|
|
| 114 | 124 |
|
| 115 | 125 |
|
| 116 | 126 |
|
@@ -169,8 +179,46 @@ pub async fn run_tui(options: SessionOptions) -> Result<(), Box<dyn std::error::
| 169 | 179 |
|
| 170 | 180 |
|
| 171 | 181 |
|
| 172 |
|
|
| 173 |
|
|
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| 185 |
|
|
| 186 |
|
|
| 187 |
|
|
| 188 |
|
|
| 189 |
|
|
| 190 |
|
|
| 191 |
|
|
| 192 |
|
|
| 193 |
|
|
| 194 |
|
|
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 202 |
|
|
| 203 |
|
|
| 204 |
|
|
| 205 |
|
|
| 206 |
|
|
| 207 |
|
|
| 208 |
|
|
| 209 |
|
|
| 210 |
|
|
| 211 |
|
|
| 212 |
|
|
| 213 |
|
|
| 214 |
|
|
| 215 |
|
|
| 216 |
|
|
| 217 |
|
|
| 218 |
|
|
| 219 |
|
|
| 220 |
|
|
| 221 |
|
|
| 174 | 222 |
|
| 175 | 223 |
|
| 176 | 224 |
|
@@ -192,60 +240,23 @@ pub async fn run_tui(options: SessionOptions) -> Result<(), Box<dyn std::error::
| 192 | 240 |
|
| 193 | 241 |
|
| 194 | 242 |
|
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 202 |
|
|
| 203 |
|
|
| 204 |
|
|
| 205 |
|
|
| 206 |
|
|
| 207 |
|
|
| 208 |
|
|
| 209 |
|
|
| 210 |
|
|
| 211 |
|
|
| 212 |
|
|
| 213 |
|
|
| 214 |
|
|
| 215 |
|
|
| 216 |
|
|
| 217 |
|
|
| 218 |
|
|
| 219 |
|
|
| 220 |
|
|
| 221 |
|
|
| 222 |
|
|
| 223 |
|
|
| 224 |
|
|
| 225 |
|
|
| 226 |
|
|
| 227 |
|
|
| 228 |
|
|
| 229 |
|
|
| 230 |
|
|
| 231 |
|
|
| 232 |
|
|
| 233 |
|
|
| 234 |
|
|
| 235 |
|
|
| 236 |
|
|
| 237 |
|
|
| 238 |
|
|
| 239 |
|
|
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
| 244 |
|
|
| 245 |
|
|
| 243 |
|
|
| 244 |
|
|
| 245 |
|
|
| 246 |
|
|
| 247 |
|
|
| 248 |
|
|
| 249 |
|
|
| 250 |
|
|
| 251 |
|
|
| 252 |
|
|
| 253 |
|
|
| 254 |
|
|
| 255 |
|
|
| 256 |
|
|
| 246 | 257 |
|
| 247 |
|
|
| 248 | 258 |
|
| 259 |
|
|
| 249 | 260 |
|
| 250 | 261 |
|
| 251 | 262 |
|
@@ -274,6 +285,9 @@ async fn validate_token(origin: &str, token: &Secret) -> Result<(), Box<dyn std:
| 274 | 285 |
|
| 275 | 286 |
|
| 276 | 287 |
|
| 288 |
|
|
| 289 |
|
|
| 290 |
|
|
| 277 | 291 |
|
| 278 | 292 |
|
| 279 | 293 |
|