diff --git a/src/relay/relay-agent-hook-runtime.ts b/src/relay/relay-agent-hook-runtime.ts index ac5c5bb8d8f..b022a669c1c 100644 --- a/src/relay/relay-agent-hook-runtime.ts +++ b/src/relay/relay-agent-hook-runtime.ts @@ -111,6 +111,9 @@ export class RelayAgentHookRuntime { const kind = explicitKind ?? 'pi' const hasLaunchCommand = typeof launchCommandHint === 'string' && launchCommandHint.trim().length > 0 + if (kind === 'omp' || !hasLaunchCommand) { + env.ORCA_OMP_FRESH_CONFIG = this.pluginOverlay.materializeOmpFreshConfig() + } if (kind === 'pi') { const sourceDir = resolvePiSourceAgentDir(context.env, context.shell, 'pi') const result = this.pluginOverlay.materializePi(overlayId, sourceDir, 'pi', { diff --git a/src/shared/agent-session-resume.ts b/src/shared/agent-session-resume.ts index 1a1be8200eb..56aa3952e00 100644 --- a/src/shared/agent-session-resume.ts +++ b/src/shared/agent-session-resume.ts @@ -205,8 +205,8 @@ export function extractAgentProviderSession( return id ? { key: 'conversation_id', id } : null } case 'opencode': - case 'mimo-code': - case 'opencode2': { + case 'opencode2': + case 'mimo-code': { const id = readSessionId(payload, ['sessionID']) return id ? { key: 'session_id', id } : null }