Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
fix(installer): stop passing the retired local search option
LeoXing8a755215233d
diff --git a/scripts/install.test.ts b/scripts/install.test.tsindex 8c51b4f7..186ccaa9 100644--- a/scripts/install.test.ts+++ b/scripts/install.test.ts@@ -560,7 +560,7 @@ describe("root install.sh", () => {const stackCalls = (await readFile(logPath, "utf8")).trim().split("\n");const planCall = stackCalls.find((line) => line.startsWith("plan "));expect(planCall).toBeDefined();- expect(planCall).toContain("--no-search");+ expect(planCall).not.toContain("search");expect(planCall).toContain("--prefer fastest");expect(planCall).toContain("--gpu 0");expect(planCall).toContain("--share-gpu");@@ -1003,7 +1003,7 @@ esacit("supports custom URL retry/force/skip and local-models-only flows", async () => {const root = await createTempRoot();await mkdir(path.join(root, "home"), { recursive: true });- const { scriptPath, logPath } = await createFakeStackScript(root, {});+ const { scriptPath } = await createFakeStackScript(root, {});const server = await startMockLingerServer(root, false);const standaloneDir = path.join(root, "standalone");await mkdir(standaloneDir, { recursive: true });@@ -1047,21 +1047,6 @@ esacexpect(skipResult.code).toBe(0);expect(skipResult.stdout).toContain("Continuing with local models only");expect(skipResult.stdout).toContain("./install.sh --connect --web-url");-- const withSearch = await runInstallScript(- ["--with-search", "--web-url", server.baseUrl],- {- scriptPath: standalonePath,- cwd: standaloneDir,- env: buildTestEnv(root, scriptPath),- input: ["n", "n"].join("\n") + "\n",- },- );- expect(withSearch.code).toBe(0);- const calls = (await readFile(logPath, "utf8")).trim().split("\n");- const lastPlan = calls.filter((line) => line.startsWith("plan ")).pop();- expect(lastPlan).toBeDefined();- expect(lastPlan).not.toContain("--no-search");});it("handles Compose port decline, owner retry, and explicit URL reset", async () => {@@ -1340,7 +1325,6 @@ describe("scripts/install/install.ps1 and release pin parity", () => {for (const flag of ["--web-url",- "--with-search","--update","--connect","--up",diff --git a/scripts/install/install.ps1 b/scripts/install/install.ps1index c38ce8f8..66489481 100644--- a/scripts/install/install.ps1+++ b/scripts/install/install.ps1@@ -333,7 +333,6 @@ function Show-Usage {"""Options:"" --web-url <url> Linger server URL (default: http://localhost:3000)"- " --with-search Include the local web search helper during planning"" --update Replan and update an already configured local model setup"" --connect Connect this computer to Linger without changing models"" --up Start already configured local models"@@ -1480,7 +1479,7 @@ function Resolve-ExistingStack([bool]$ForceUpdate, [bool]$AssumeYes) {Exit-Fail "Invalid choice: $choice"}-function Invoke-StepHardwareAndPlan([bool]$UpdateMode, [bool]$WithSearch, [bool]$AssumeYes) {+function Invoke-StepHardwareAndPlan([bool]$UpdateMode, [bool]$AssumeYes) {Write-OutLine ""Write-OutLine "[2/4] Checking hardware and model options"Write-OutLine " Preparing local model installer..."@@ -1588,7 +1587,6 @@ function Invoke-StepHardwareAndPlan([bool]$UpdateMode, [bool]$WithSearch, [bool]$null = $planArgs.Add('--out')$null = $planArgs.Add($planFile)if ($UpdateMode) { $null = $planArgs.Add('--update') }- if (-not $WithSearch) { $null = $planArgs.Add('--no-search') }$null = $planArgs.Add('--prefer')$null = $planArgs.Add([string](Get-ObjProp $selectedPick 'role' 'smartest'))if ($hasGpu) {@@ -1945,7 +1943,6 @@ $mode = 'guide'$modeFlag = ''$explicitOrigin = ''$assumeYes = $false-$withSearch = $false$forceUpdate = $false$purge = $false@@ -1958,8 +1955,6 @@ while ($i -lt $script:CliArgs.Count) {'-?' { Show-Usage; exit 0 }'--yes' { $assumeYes = $true }'-y' { $assumeYes = $true }- '--with-search' { $withSearch = $true }- '--no-search' { $withSearch = $false }'--update' { $forceUpdate = $true }'--purge' { $purge = $true }'--web-url' {@@ -2056,7 +2051,7 @@ try {$existing = Resolve-ExistingStack $forceUpdate $assumeYesif (-not $existing.Reuse) {- Invoke-StepHardwareAndPlan ([bool]$existing.Update) $withSearch $assumeYes+ Invoke-StepHardwareAndPlan ([bool]$existing.Update) $assumeYes}if ($localOnly) {diff --git a/scripts/install/install.sh b/scripts/install/install.shindex 6e8380f1..3d27e493 100755--- a/scripts/install/install.sh+++ b/scripts/install/install.sh@@ -33,7 +33,6 @@ MODE="guide"EXPLICIT_WEB_URL=""WEB_URL=""CONNECT_LINGER=1-WITH_SEARCH=0PURGE=0YES=0@@ -55,7 +54,6 @@ Guided setup for Linger local models and connecting this computer to Linger.Options:--web-url <origin> Linger server URL (default: http://localhost:3000)--connect Install and connect linger-computer only- --with-search Also install the local DuckDuckGo web-search helper--up Start installed local models and refresh linger-computer--status Show local model and linger-computer status--remove Uninstall local model services (keeps downloaded files)@@ -1033,9 +1031,6 @@ step_check_hardware_and_options() {HAS_ACCEPTED_STACK=0SHARED_GPU_APPROVED=0PLAN_ARGS=()- if (( WITH_SEARCH == 0 )); then- PLAN_ARGS+=("--no-search")- fiset +esh "$STACK_SCRIPT" status --json > "$WORK_DIR/status.json" 2>"$WORK_DIR/status.err"@@ -1511,10 +1506,6 @@ while (( $# > 0 )); doset_mode "connect"shift;;- --with-search)- WITH_SEARCH=1- shift- ;;--up)set_mode "up"shiftdiff --git a/scripts/install/install.tests.ps1 b/scripts/install/install.tests.ps1index 519537b7..e69e2dab 100644--- a/scripts/install/install.tests.ps1+++ b/scripts/install/install.tests.ps1@@ -703,7 +703,7 @@ exit 0$mComp.Server.Dispose()}- # 5. Model selection, multi-pick, share GPU, mem cap, --with-search, preflight fail, live apply + connect+ # 5. Model selection, multi-pick, share GPU, mem cap, preflight fail, live apply + connect$dZero = Join-Path $workRoot 't-zero'$fZero = New-FakeStack $dZero @{ Picks = @() }$mZero = Start-MockServer $dZero $false@@ -737,7 +737,7 @@ exit 0Assert-Exit $rGpuNo 0 'decline gpu share'Assert-Contains $rGpuNo.StdOut 'Installation cancelled.' 'decline gpu share msg'- $rPrefail = Invoke-Script @('--with-search', '--web-url', $mPre.Server.BaseUrl) $envPre "2`ny`nbadcap`n24G`ny`n"+ $rPrefail = Invoke-Script @('--web-url', $mPre.Server.BaseUrl) $envPre "2`ny`nbadcap`n24G`ny`n"Assert-Exit $rPrefail 1 'preflight fail exit 1'Assert-Contains $rPrefail.StdOut 'Please enter a size like 24G or 16384M' 'bad mem cap prompt'Assert-NotContains $rPrefail.StdOut '2 compute process(es) outside' 'preflight.gpu suppressed'@@ -749,7 +749,7 @@ exit 0Assert-Contains $planLog '--prefer fastest' 'fastest picked'Assert-Contains $planLog '--gpu 0 --share-gpu --gpu-memory 24G' 'gpu memory cap passed'Assert-Contains $planLog '--decision auto --aux embedding,reranker' 'helpers passed'- Assert-NotContains $planLog '--no-search' '--with-search omits --no-search'+ Assert-NotContains $planLog 'search' 'plan passes no search option'} finally {$mPre.Server.Dispose()}