Commit a3bd03c
feat(runtime-local): MONGO_DATABASE env var fallback for mongo store
Resolution precedence inside the bundled harness now reads:
per-request sessionStore.options.database
> MONGO_DATABASE env var
> MongoSessionStore's own default ("computeragent_sessions")
Keeps the database name out of client request bodies in the common
single-database deployment: server holds MONGO_URL + MONGO_DATABASE,
client just sends sessionStore: { kind: "mongo" }.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 04785c8 commit a3bd03c
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180909 | 180909 | | |
180910 | 180910 | | |
180911 | 180911 | | |
| 180912 | + | |
180912 | 180913 | | |
180913 | 180914 | | |
180914 | | - | |
| 180915 | + | |
180915 | 180916 | | |
180916 | 180917 | | |
180917 | 180918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | | - | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
0 commit comments