- Co-Authored-By
- Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
fix(coder-lite): validate tokens against /api/v1/models instead of /api/v1/user
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
Cargo.lock -
modified
crates/coder-lite/Cargo.toml -
modified
crates/coder-lite/src/interactive.rs
Diff
3 files changed, +29 -16
Cargo.lock modified +1
crates/coder-lite/Cargo.toml modified +1
@@ -27,6 +27,7 @@ ratatui = { version = "0.29", default-features = false, features = ["crossterm"]
| 27 | 27 |
|
| 28 | 28 |
|
| 29 | 29 |
|
| 30 |
|
|
| 30 | 31 |
|
| 31 | 32 |
|
| 32 | 33 |
|
crates/coder-lite/src/interactive.rs modified +27 -16
@@ -27,7 +27,6 @@ use crossterm::{
| 27 | 27 |
|
| 28 | 28 |
|
| 29 | 29 |
|
| 30 |
|
|
| 31 | 30 |
|
| 32 | 31 |
|
| 33 | 32 |
|
@@ -219,11 +218,7 @@ async fn ensure_authenticated() -> Result<(), Box<dyn std::error::Error>> {
| 219 | 218 |
|
| 220 | 219 |
|
| 221 | 220 |
|
| 222 |
|
|
| 223 |
|
|
| 224 |
|
|
| 225 |
|
|
| 226 |
|
|
| 221 |
|
|
| 227 | 222 |
|
| 228 | 223 |
|
| 229 | 224 |
|
@@ -232,11 +227,7 @@ async fn ensure_authenticated() -> Result<(), Box<dyn std::error::Error>> {
| 232 | 227 |
|
| 233 | 228 |
|
| 234 | 229 |
|
| 235 |
|
|
| 236 |
|
|
| 237 |
|
|
| 238 |
|
|
| 239 |
|
|
| 230 |
|
|
| 240 | 231 |
|
| 241 | 232 |
|
| 242 | 233 |
|
@@ -257,9 +248,31 @@ async fn ensure_authenticated() -> Result<(), Box<dyn std::error::Error>> {
| 257 | 248 |
|
| 258 | 249 |
|
| 259 | 250 |
|
| 251 |
|
|
| 252 |
|
|
| 253 |
|
|
| 254 |
|
|
| 255 |
|
|
| 256 |
|
|
| 257 |
|
|
| 258 |
|
|
| 259 |
|
|
| 260 |
|
|
| 261 |
|
|
| 262 |
|
|
| 263 |
|
|
| 264 |
|
|
| 265 |
|
|
| 266 |
|
|
| 267 |
|
|
| 268 |
|
|
| 269 |
|
|
| 270 |
|
|
| 271 |
|
|
| 272 |
|
|
| 260 | 273 |
|
| 261 | 274 |
|
| 262 |
|
|
| 275 |
|
|
| 263 | 276 |
|
| 264 | 277 |
|
| 265 | 278 |
|
@@ -272,10 +285,8 @@ pub async fn do_login() -> Result<String, Box<dyn std::error::Error>> {
| 272 | 285 |
|
| 273 | 286 |
|
| 274 | 287 |
|
| 275 |
|
|
| 276 |
|
|
| 277 |
|
|
| 278 |
|
|
| 288 |
|
|
| 289 |
|
|
| 279 | 290 |
|
| 280 | 291 |
|
| 281 | 292 |
|