mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-20 04:59:34 +01:00
`managed` is accepted from the client on POST/PATCH /api/webviews and GET /api/deepseek/web publishes the live port, so a saved managed record pointing at that port was enough to receive the dsh-auth cookie. Gate it on the same privileged-commands grant POST /api/deepseek/web requires, fail closed for an ownerless record in multi-user mode, and record the user whose request started the process so the supervisor only hands its cookie to that identity. A request from another owner restarts the server rather than reusing a cookie that is not theirs.
769 B
769 B
aicodeman
| aicodeman |
|---|
| patch |
The DeepSeek Harness web tab opens on the dashboard again instead of a blank 401 page. dsh web now gates its own index behind a one-time launch token it prints on boot; the supervisor reads that token out of the captured output, trades it for the session cookie once at startup, and the webview proxy presents the cookie on both the HTTP and WebSocket legs — scoped to the loopback authority it was minted for. The cookie is only presented to a tab whose owner holds the privileged-commands grant, and in multi-user mode only to the owner whose request started the process: managed is a client-supplied field and the live port is public, so the saved record alone is not an entitlement. A dsh without the gate keeps working unchanged.