fix(setup): link shared runtime libraries#2262
Open
fedster99 wants to merge 2 commits into
Open
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
fedster99
marked this pull request as ready for review
July 14, 2026 21:45
Contributor
|
@fedster99 Add tests that run a command requiring the installed sibling library across every affected host root, including Windows copy behavior. |
Address review: end-to-end coverage that gstack-learnings-log (which imports ../lib/jsonl-store.ts) actually executes from each installed runtime root — agents sidecar, Codex, Factory, OpenCode, and Kiro — built by the real setup shell code, in both symlink (IS_WINDOWS=0) and Windows copy (IS_WINDOWS=1) modes. A negative control proves the probe fails on the pre-fix bin-without-lib layout. Verified: all 10 positive cells fail against upstream/main's setup and pass with the fix. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author
|
Done in f412cf1 — added
Verified the tests detect the regression: against upstream/main's |
|
Unsubscribe
…On Tue, Jul 14, 2026, 2:10 PM trunk-io[bot] ***@***.***> wrote:
*trunk-io[bot]* left a comment (garrytan/gstack#2262)
<#2262 (comment)>
Merging to main in this repository is managed by Trunk.
- To merge this pull request, check the box to the left or comment /trunk
merge below.
After your PR is submitted to the merge queue, this comment will be
automatically updated with its status. If the PR fails, failure details
will also be posted here
—
Reply to this email directly, view it on GitHub
<#2262?email_source=notifications&email_token=BQ7R3F2YC664F3O434YSFBT5E2OU3A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOJXGQYDCNZZGE22M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-4974017915>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BQ7R3F2SGIWNYLU3IPAS63L5E2OU3AVCNFSNUABGKJSXA33TNF2G64TZHMYTCNZZGI3DIMRVHE5US43TOVSTWNBYHA3TANBYGAZTNILWAI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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.
What changed
lib/besidebin/in the shared agent sidecar and the Codex, Factory, OpenCode, and Kiro runtime roots.Why
Several scripts in
bin/import shared modules through../lib. Minimal runtime installs exposedbin/withoutlib/, so commands such asgstack-learnings-logfailed after a fresh Codex setup withCannot find module .../lib/jsonl-store.ts.Keeping the two directories together makes the generated runtime self-contained and prevents a later gstack upgrade from restoring the broken layout.
Impact
Fresh and upgraded installs can run logging, memory, redaction, and other shared-library-backed commands from their host-specific runtime root. Unix symlink and Windows copy behavior both continue to use
_link_or_copy.Validation
bash -n setupbun test test/setup-windows-fallback.test.ts: 8 passed./setup --host codex --no-prefixgstack-learnings-logandgstack-learnings-searchsmoke passed from that installed runtimeThe broader free-test command reached an unrelated environment-dependent timeout in
global-discover.test.ts; no changed setup/runtime test failed.