fix(webui): read usage deployment id from EVOSCIENTIST_USAGE_DEPLOYMENT_ID

Matches the backend split: usage attribution no longer shares
EVOSCIENTIST_DEPLOYMENT_ID with workspace scope partitioning.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
m4
2026-07-30 22:11:31 +08:00
parent fbf88fbf8a
commit c8e8305107
4 changed files with 8 additions and 3 deletions
+5
View File
@@ -22,6 +22,11 @@ EVOSCIENTIST_WORKSPACE_DIR=
# when the backend was started manually (no deploy sidecar); otherwise the
# sidecar value wins. Defaults to a uuid derived from the workspace root.
EVOSCIENTIST_DEPLOYMENT_ID=
# Usage-attribution deployment id, matching the backend's
# EVOSCIENTIST_USAGE_DEPLOYMENT_ID (stored in <data-dir>/deployment-id). This is
# intentionally separate from the scope deployment id above so the usage
# identity cannot repartition workspace scopes.
EVOSCIENTIST_USAGE_DEPLOYMENT_ID=
# Optional for local processes running as the same OS user: both sides share
# ~/.config/evoscientist/provider-admin-token automatically. Set this explicitly
# when the WebUI and backend run on different hosts, users, or containers.