Since the server stopped trusting loopback callers, the built-in model proxy needs the session token like every other route, but the sidecar's own calls to it sent none. The Models key check read the proxy's 401 as a rejected key, so a working Anthropic key showed "Key found but not responding". Scheduled AI tasks and loops, the dream diary narrative and the profile calls failed the same way; the profile calls also built the port from address().toString(), and the scheduled tasks used the configured port, which the desktop app's port fallback can leave pointing at another Waggle server. self-request.ts now builds the address from the bound port and adds the session token; all these calls and command.ts use it, and the token is never sent to Ollama. An end-to-end test runs the key check through the real middleware and proxy with localhost trust off; it fails without the fix. UF-045 records the persona generator, which posts to a route that does not exist; it is left open.
1.6 KiB
1.6 KiB