Repository navigation
Conversation
garrytan#4308) `gstack-config set disabled_skills open-gstack-browser` removed the skill's own entry but left ~/.claude/skills/connect-chrome, the rewritten-copy alias setup installs, so /connect-chrome stayed in the skill list. gstack-relink cleaned only the entries named after the skill: its loop skips the symlinked connect-chrome source dir, and a checkout made without symlinks has no such dir at all. When open-gstack-browser is disabled, gstack-relink now also cleans connect-chrome and gstack-connect-chrome through the same ownership gate as every other entry, so a user's own skill with that name stays. setup already declines to write the alias for a disabled skill, and writes it back on its next run once the skill is enabled again. Add relink cases for both alias names and for a user's own connect-chrome skill, and a real-setup case that follows the alias through disable, setup, enable and setup. Fixes: garrytan#4308 Co-Authored-By: Claude Code <[email protected]>
The previous commit added a two-line cross-reference comment above setup's alias installer. Any edit to setup makes the paid-eval planner fall back to every gate case, which is out of proportion for a comment, so take it back out. The fix itself is in bin/gstack-relink, whose comment already names setup's _install_alias_skill_md. Co-Authored-By: Claude Code <[email protected]>
|
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 |
|
Thanks @szsunyuan. This is a clean fix for #4308, and the tests cover both the plain and the prefixed alias. We're picking it up: we'll bring the change onto current main ourselves and credit you when it lands. Nothing more is needed from you. |
|
Thank you for this. We're picking up the idea. A maintainer agent working through a batch of fixes (our tracking thread GSTA-801) will first reproduce the problem on current main. If it reproduces, the agent rebuilds the fix on main with you credited as co-author, because we don't merge outside branches directly, and we'll close this PR with a link when it lands. If it no longer reproduces, we'll close this and say what changed. |
|
Thank you. Your relink change and tests were rebuilt on current main and landed in #4682, with you credited as co-author. In review the alias cleanup was made to keep a user's own files, removing only the generated SKILL.md. Closing this in favour of that PR. |
Disabling
/open-gstack-browsernow takes its backwards-compat alias/connect-chromeoff too. Before,gstack-config set disabled_skills open-gstack-browserremoved the skill's own entry and left the alias in Claude Code's skill list.Why (in your own words)
setup installs
/connect-chromeas a second entry for/open-gstack-browser: a copy of that skill's SKILL.md withname:rewritten, written by_install_alias_skill_mdinto~/.claude/skills/connect-chrome(gstack-connect-chromewithskill_prefix).disabled_skillsreaches a Claude install throughbin/gstack-relink, which walks the checkout's skill directories and cleans the entries named after each disabled skill. The alias never comes up in that walk. The loop skips the symlinkedconnect-chromesource dir on purpose (#2201), and a checkout made without symlinks has no such dir at all. So the alias outlives the skill it points at, and/connect-chromestill loads a skill the user turned off.This addresses #4308, reported with reproduction steps by @dipbazz. The issue left one thing unchecked, whether the next full
./setupclears the alias. It does not (transcript below). setup's alias installer returns early for a disabled skill, which keeps a fresh install clean but removes nothing that is already there.Validation status: Full free CI passed on head
4398d0d18(35 checks passed, 21 skipped, none failed), including all eleven free-suite shards, typecheck, macOS named regressions, Windows setup and Windows smoke. The three new cases fail on unchanged main and pass with the fix. Locally, 199 focused checks pass on the final tree, and the full free suite ran once with every failing file rerun alone on this head and on unchanged main (below): none of the failures comes from this change. Required selected paid coverage and remaining shipping reviews are still pending; skipped fork jobs are not passes.Why this shape
gstack-config set disabled_skillsrunsgstack-relink, not setup, so the removal has to live in relink for the command to take effect when the user runs it. relink already has the function for the job._cleanup_skill_entryremoves an entry only when it can prove gstack owns it, and it already recognizes a copy whosename:line was rewritten to the entry's own name, which is what the alias is. The fix is two calls to it in the branch that handles a skill kept off.The two alias names are spelled out because a checkout without symlinks gives relink nothing to discover them from. setup and
bin/gstack-uninstallalready spell out the same names.Nine lines in one script, two cases in relink's owner test file, one case in the
disabled_skillssetup suite, and one changelog fragment. Fine to absorb into a wave.What it does
open-gstack-browseris kept off,gstack-relinkalso cleans~/.claude/skills/connect-chromeand~/.claude/skills/gstack-connect-chrome, through the same ownership gate as every other entry.connect-chromeis reported and left byte-identical, like any other entry gstack cannot prove is its own.test/relink.test.ts. One removes both alias names on a checkout with no symlinked alias dir, and checks that an enabled skill keeps its alias. The other keeps a user's ownconnect-chromeskill.disabled_skills (#1206)block oftest/setup-install-registry.test.ts. It runs the real./setupand follows the alias through disable, setup, enable and setup.What it deliberately does not do
setup. Its alias installer already skips a disabled skill and writes the alias back on its next run once the skill is enabled.gstack-relinkstill never creates this alias (connect-chrome and open-gstack-browser install with the same frontmatter name, so one silently shadows the other #2201 keeps that in setup), so after re-enabling,/connect-chromereturns with the next./setup, not with the config command. The first commit added a two-line comment tosetup; the second takes it out, because any edit tosetupswitches the paid-eval planner to its full fallback.disabled_skillsaccepts. Namingconnect-chromeitself is still refused on a checkout without symlinks (the reporter's second message, reproduced below) and still accepted with no effect on a checkout with them. With the alias following its skill, the only thing left for that name to do is hide the alias alone, which is a new option, not this bug.skill_prefixflip (gstack-connect-chromestays after a switch to flat names). It showed up while testing, it is the same on unchanged main, and it is separate from Disabling open-gstack-browser leaves its installed connect-chrome alias registered #4308.setup --status(Resolve prefixed sibling section links in setup --status #4190).VERSION, package-version, releasedCHANGELOG.md, README or ETHOS edits. Release notes are one entry-text-onlychangelog.d/fragment.Live evidence
Bun 1.4.4 on Linux,
LC_ALL=C, privateHOMEandGSTACK_HOME. No browser or live model was used. The transcripts come from the real./setupandgstack-config, run against a throwawayHOMEby the repo's install fixture (the real checkout files with stubbed binaries). The listings are filtered to the two names involved, and setup's own output is left out.Actual CLI before and after
Before, on main at
bc858ffc6:The last two commands are the step the issue left unchecked. A full
./setupleaves the alias in place too.After, on this branch:
A prefixed install where the user owns a skill named
connect-chrome, on this branch. gstack'sgstack-connect-chromegoes, and the user's skill stays byte-identical and is reported:The reporter's checkout shape, on this branch. The reporter is on Windows, where a checkout without symlink support has
connect-chromeas a plain file. A small install built that way on Linux gives the reporter's second message word for word, and disabling the skill then removes the alias:Failing-first regression
The three new cases were written before the fix and run against unchanged
bin/gstack-relink:The second relink case fails on main only at its last line. Nothing there looks at the alias name, so the user's skill is safe but also never reported. Its file-content assertions are the guard for this change. After the fix all three pass (3 pass, 24
expect()calls).Focused checks
Commands ran under the isolated environment above, on the final tree.
test/relink.test.ts(relink owner file, including the two new cases)test/setup-install-registry.test.ts(real./setup, including the new case)relink-disabled-router,retired-skills,crew-skills-on-capy,setup-alias-name-uniqueness,setup-link-ownership,plan-mode-preamble-render,uninstall-windows-copiestest/test-of-test-ratchet.test.ts,test/module-size-ratchet.test.ts,test/spawnsync-timeout-tripwire.test.ts,test/egress-receipt-wiring.test.tstest/changelog-fragments.test.tsEach run was
bun --no-env-file --no-load-bunfig test <files> --timeout=300000. Productbun run typecheckexits 0.bun run typecheck:testreports812 known diagnostics, none new.gstack-plain-title checkon the title, branch, commit subjects, fragment and this body printsPLAIN_TITLE: ok;gstack-prose-lint --gateon the fragment printsPROSE_LINT: ok;git diff --checkis clean;gstack-redact --repo-visibility publicon the exact outgoing patch reports zero findings.One earlier run of
test/setup-install-registry.test.tshad a failure in an existing case,a second checkout never silently replaces the global Claude install. The same case failed the same way on unchanged main, because this container'sclaudeCLI wrote its own policy files into the fixture's~/.claudebetween the two snapshots the case compares. It did not recur in the run counted above.Full free suite and base control
bun run testran once locally on the tree of the first commit, which differs from this head only by the two-linesetupcomment the second commit removes. All five shards reported failures, 345 failing tests in 91 files by the runner's count. That is 90 repo test files and oneprobe.test.tsthat a browser test generates. This container's Playwright browsers are Chromium build 1243, while the repo pins Playwright 1.65.0 (build 1254), so every browser launch fails here; 41 of the 90 files are underbrowse/test/. The other 49 are spread over /cso, iOS QA, Ubicloud runner and other suites. They were not diagnosed one by one, only compared with main. Neither test file this PR changes is among the 90.Every failing file was then rerun on its own, with the same flags, on this head (
4398d0d18) and on unchanged main atbc858ffc6:test/harness-register.test.ts,test/qa-browser-deadline-evidence.test.tsandtest/plan-count-timeout.test.ts. The last one failed 1 of 2 on the branch in the first rerun pass, which ran four files at a time, and passes 2 of 2 on both sides with nothing else running.browse/test/chromium-profile-isolation.test.tsfailed 6 on the branch and 5 on main in that first pass, and 5 on each side with nothing else running.Scope
mainatbc858ffc6:bin/gstack-relink,test/relink.test.ts,test/setup-install-registry.test.tsandchangelog.d/fix-4308-disabled-skill-alias.md. Two commits:d42a0d83a69b844d025b5e3c197085e849f7ff6d(the fix, its cases and the fragment) and4398d0d1852b2ecf4a63ae3b26ed07322536b31f(takes thesetupcomment back out)../setupandgstack-configbefore and after in a throwawayHOME, the reporter's checkout shape rebuilt on Linux, the failing-first runs of the three new cases, 199 focused passing checks, the full free suite with a per-file base control on unchanged main, both typechecks, and exact-patch lint and redaction scans.The free paid-coverage planner (
bun run eval:select --base upstream/main) selects two behavioral probes for this diff in the PR profile,gstack-upgrade-happy-pathandskillmd-setup-discovery, no quality judges, and defers nothing. Neither probe was run; neither receives pass credit here.Liveness proof (required for external contributors)
Checklist
GSTACK PRtyped live into a real surface).Test plan
disabled_skillswith the real./setupandgstack-config, and show that a later./setupkeeps it../setup, and returning once the skill is enabled and setup runs again.connect-chromeskill left byte-identical.disabled_skillssetup suite, the alias and ownership suites, ratchets and layout guards.4398d0d18: 35 passed, 21 skipped).Fork PRs do not receive upstream eval secrets. Skipped paid jobs are not passes; required maintainer-run coverage remains necessary before merge.
Fixes #4308.