You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 55bf62b
Browse filesBrowse the repository at this point in the historyBrowse files
fix: reload connection config only while the registry is empty
The fingerprint-based reload replaced the process-global config map when the
project directory or a file changed, which could close another project's
connectors and drop in-memory credentials of a keyring-less `warehouse_add`.
Replace it with a structural rule: re-read the sources only while the registry
holds zero connections (the case the `warehouse_list` hint addresses). Once any
connection is loaded nothing is replaced or closed, so edits to an existing
file take effect after a restart. `setConfigs()` injections are not reloaded.
The hint says so.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: packages/opencode/src/altimate/tools/warehouse-list.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ export function noConnectionsMessage(): string {
20
20
` 2. ${localConfigPath()} (this project)`,
21
21
` 3. ${CONN_ENV_PREFIX}<NAME> environment variables, each holding one connection's config as JSON`,
22
22
"",
23
-
"Changes to these sources are picked up on the next call; no restart is needed. Example connections.json:",
23
+
"After adding the first connection, call warehouse_list again. Edits to an existing connections.json take effect after a restart. Example connections.json:",
0 commit comments