This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Commit 49645f2
fix: auto-detect hosted_proxy mode when PAPERCLIP_HOSTED_MODE=true (#9)
* feat: use generic model alias for gateway-routed agents
Replaces hardcoded DEFAULT_GATEWAY_MODEL with GATEWAY_MODEL_ALIAS
("default"). The actual upstream model is now controlled server-side
via GATEWAY_DEFAULT_MODEL on the platform gateway — agents never need
to know what model is being served.
New instances get adapterConfig.model = "paperclip-gateway/default".
Existing instances need a one-time DB update.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update provision-members tests to match current ROLE_PERMISSIONS
PERMISSION_KEYS no longer includes company:delete, and member role
now has [agents:create, tasks:assign, tasks:assign_scope] instead of
[tasks:assign, joins:approve].
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: auto-detect hosted_proxy mode when PAPERCLIP_HOSTED_MODE=true
When PAPERCLIP_HOSTED_MODE=true is set, force deployment mode to
hosted_proxy regardless of what the config file or PAPERCLIP_DEPLOYMENT_MODE
env var says. This eliminates the dead end where a non-managed Docker image
boots in authenticated mode expecting an interactive onboard step.
Also marks authReady=true for hosted_proxy mode since auth is handled by
the platform proxy — the server shouldn't report auth as not ready.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: WOPR <wopr@localhost>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2fe363c commit 49645f2
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
256 | | - | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| |||
0 commit comments