mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 11:07:42 +00:00
* Recover installed forge CLIs after launcher timeouts * Preserve healthy CLI timeouts and add native platform checks * Resolve Windows tree termination outside PATH * Use native absolute paths in the relative PATH fixture * Expect the absolute System32 taskkill in tree-kill tests --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
18 lines
651 B
TypeScript
18 lines
651 B
TypeScript
import { hydrateShellPath, mergePathSegments } from '../startup/hydrate-shell-path'
|
|
import { getPreflightWslTarget, type PreflightRuntimeContext } from './preflight-runtime-target'
|
|
|
|
export async function hydrateShellPathForAgentDetection(
|
|
context?: PreflightRuntimeContext,
|
|
force = false
|
|
): Promise<void> {
|
|
if (getPreflightWslTarget(context)) {
|
|
return
|
|
}
|
|
// Why: remote runtime servers may inherit a sparse daemon/SSH PATH even
|
|
// though the user's shell can run the agents.
|
|
const hydration = await (force ? hydrateShellPath({ force: true }) : hydrateShellPath())
|
|
if (hydration.ok) {
|
|
mergePathSegments(hydration.segments)
|
|
}
|
|
}
|