Check if request is from root token (local use).
(req: Request)
| 482 | |
| 483 | /** Check if request is from root token (local use). */ |
| 484 | function isRootRequest(req: Request): boolean { |
| 485 | const token = extractToken(req); |
| 486 | return token !== null && isRootToken(token); |
| 487 | } |
| 488 | |
| 489 | // Sidebar model router was here (sonnet vs opus by message intent). Ripped |
| 490 | // alongside the chat queue; the interactive PTY just runs whatever model |
no test coverage detected