fix: normalize plugin metadata across shared launch flows

This commit is contained in:
Tam Nhu Tran committed 2026-03-17 09:56:31 -04:00
1 parent 2cb5b4ebec
commit 1043a433f6
8 files changed
+431 -40

No files matched your search

+9
View File
@@ -9,6 +9,7 @@ import { ErrorManager } from './error-manager';
import { getWebSearchHookEnv } from './websearch-manager';
import { wireChildProcessSignals } from './signal-forwarder';
import { loadOrCreateUnifiedConfig } from '../config/unified-config-loader';
import SharedManager from '../management/shared-manager';
/**
* Strip ANTHROPIC_* env vars from an environment object.
@@ -122,6 +123,14 @@ export function execClaude(
// (Claude Code v2.1.39+ sets CLAUDECODE to detect nested sessions)
const env = stripClaudeCodeEnv(mergedEnv);
if (profileType !== 'account') {
try {
new SharedManager().normalizeSharedPluginMetadataPaths(env.CLAUDE_CONFIG_DIR);
} catch {
// Best-effort normalization should never block Claude launch.
}
}
// propagate key env vars to tmux session so agent team teammates
// (spawned via tmux split-window) inherit the correct config dir
if (process.env.TMUX && envVars) {