mirror of https://github.com/garrytan/gstack.git
gstack-gbrain-detect, gbrain-local-status.ts, and gbrain-exec.ts all resolved GBRAIN_HOME/config.json when GBRAIN_HOME was set, but fell back to $HOME/.gbrain/config.json (nested) when unset. The real gbrain CLI always nests state under a .gbrain dir inside GBRAIN_HOME regardless — confirmed empirically, pointing GBRAIN_HOME straight at the .gbrain dir breaks the CLI with "No brain configured". Net effect for any relocated-GBRAIN_HOME setup: gstack-gbrain-detect always reported gbrain_config_exists:false and gbrain_local_status "missing-config" even with a fully working gbrain install, and buildGbrainEnv silently never seeded DATABASE_URL for spawned gbrain calls. Every /sync-gbrain and /setup-gbrain invocation hit this. Fix: always join GBRAIN_HOME (or the userHome fallback) with ".gbrain" before appending "config.json", in all three places. |
||
|---|---|---|
| .. | ||
| diagram-render | ||
| bin-context.ts | ||
| conductor-env-shim.ts | ||
| gbrain-exec.ts | ||
| gbrain-guards.ts | ||
| gbrain-local-status.ts | ||
| gbrain-sources.ts | ||
| gstack-decision-semantic.ts | ||
| gstack-decision.ts | ||
| gstack-memory-helpers.ts | ||
| is-conductor.ts | ||
| jsonl-store.ts | ||
| redact-audit-log.ts | ||
| redact-engine.ts | ||
| redact-patterns.ts | ||
| staging-guard.ts | ||
| worktree.ts | ||