Repository navigation
fix(hopper): keep installed apt dependencies at their versions during Linux setup - #6974
Merged
morluto merged 5 commits intoOct 24, 2026
Merged
Conversation
… Linux setup apt-get install upgrades every listed package that is already installed, so Linux setup could upgrade the system python3 and X11 libraries while installing Hopper. Runtime dependencies are now installed with --no-upgrade in a separate transaction before the Hopper archive, which may still upgrade. The setup approval plan lists both commands.
2 tasks done
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryDebian and Ubuntu setup now installs Hopper’s runtime dependencies with
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Verify Hopper archive] --> B[Install runtime dependencies with --no-upgrade]
B --> C{Failed or cancelled?}
C -->|Yes| D[Stop]
C -->|No| E[Install Hopper archive]
E --> F{Failed or cancelled?}
F -->|Yes| D
F -->|No| G[Check Python library and repair if needed]
Reviews (5) · Last reviewed commit: "Merge remote-tracking branch 'upstream/m..." · Reviewed by Greptile |
…dependency-upgrade # Conflicts: # src/domain/evidence.test.ts # src/domain/evidence.ts
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #6975.
On Debian and Ubuntu,
rea setupinstalled Hopper with oneapt-get install -y <hopper.deb> xvfb xauth python3 libx11-6 libxtst6transaction.apt-get installupgrades every listed package that is already installed, so approving Hopper setup could also upgrade the systempython3and X11 libraries. Runtime dependencies are now requested with--no-upgradein their own transaction, before the Hopper archive. This avoids explicitly naming already-installed dependencies as upgrade targets; apt can still upgrade packages when the Hopper archive or Python library repair requires a newer version.Problem and expected behavior
AGENTS.md: "Installers must not install or upgrade unrelated software." Hopper's runtime dependencies are disclosed and installed when missing, but packages that are already present belong to the user's system and should keep their versions. With the combined transaction, apt treats each listed package as an upgrade target.
Expected: missing dependencies are installed without explicitly requesting upgrades of already-installed runtime dependencies. The Hopper package may change version; version requirements of Hopper or the Python library repair can still require dependency upgrades.
Change and scope
src/application/LinuxHopper.ts,linuxPackageManagerCommandsfordeb: two transactions,apt-get install -y --no-upgrade <dependencies>thenapt-get install -y <archive>. The approval disclosure lists both, because it is built from the same commands. Cancellation between transactions is honored as before: the next command is not started.src/application/LinuxHopperPackageRuntime.test.ts: the expected command counts are derived fromlinuxPackageManagerCommands("deb", …)instead of assuming one install transaction.docs/installation.mdstates the rule.Not included: Arch's
pacman -S --neededstill updates an outdated dependency, and pacman has no equivalent flag; avoiding that would need a separate installed-package query.dnf installdoes not upgrade installed packages, so the Fedora path is unchanged. Both limits are stated in the docs.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contribution scope: not applicable. This is a fix inside the existing approved Linux setup flow.
Contract and boundary impact
linuxPackageManagerCommands, which builds both the executed commands and the approval disclosure.rea setup's plan on apt systems lists one more command.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): installation behavior as described; no package metadata change.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
src/application/LinuxHopper.test.ts, "keeps installed apt dependencies at their versions while Hopper may upgrade (root: %s)": the exact deb commands, with and withoutpkexec.src/application/LinuxHopperPackageRuntime.test.ts: the runtime, failure, cancellation and disclosure cases now take the deb transaction count from the command builder; their behavior assertions are unchanged.src/application/LinuxHopper.tsfrom upstream/main 3ce3117 and these tests, both new cases fail. The apt upgrade behavior itself is documented apt-get behavior (--no-upgrade: "do not upgrade packages; when used in conjunction with install, no-upgrade will prevent packages on the command line from being upgraded if they are already installed").For evidence-bearing changes:
Validation performed
Current head
00da2d2e6merges main03ed0c63dand resolves both Evidence conflicts using the implementation and regressions already merged in #7036. The PR diff is the original four Hopper/setup files. The complete file tree matches the locally tested resolution. No CI gate, assertion, timeout, or retry was weakened.Executed on macOS arm64 with pinned Node 24.22.1/npm 11.16.0:
npm run test:focused -- src/domain/evidence.test.ts src/domain/immutableJson.test.ts src/domain/analysisErrorProjection.test.ts src/domain/analysisSnapshot.test.ts tests/process-global/managedBundleReadGuards.test.ts tests/boundary/filesystem/directAnalysisSnapshotReplay.test.ts tests/boundary/filesystem/evidenceBundleFiles.test.ts tests/boundary/cli/managedMemberSummaryCli.test.ts src/application/LinuxHopper.test.ts src/application/LinuxHopperPackageRuntime.test.ts: 289 passed, 2 Windows-only cases skipped. Covers Hopper transactions and cancellation, the unchanged low-headroom regression, Evidence rebinding/error projection, replay, and compiled managed-summary CLI checks.npm run check: passed (typecheck, lint, module boundaries, architecture guards).npm run docs:check: passed, including 9 README consistency tests.Earlier source CI failed on release-history typing and a JavaScript lifetime worker exit; the latter was reproduced locally. Both were resolved by upstream fixes brought into the branch. The later low-headroom Evidence failure was also reproduced and repaired; that repair now lives on main through #7036. Static and source CI passed after the first refresh. Required CI is rerunning on the conflict-free current head.
Earlier author validation used Linux/WSL Ubuntu on Node 24.22.1. No real Hopper install or Debian/Ubuntu package transaction was performed for this refresh; Linux-specific package verification remains for Linux CI.
Compatibility, safety, and release
Author readiness
Human owner: @Adolanium
Before merge
type(scope): outcome.