Repository navigation
fix(ide): Put ~/.local/bin on the zsh PATH, verify Kiro CLI by its kiro-cli name - #966
Merged
Merged
Conversation
…ro-cli name install_uv meant to add ~/.local/bin to /etc/profile.d/workshop.sh, but its guard grep '.local/bin' matched the existing `alias code=".../.local/bin/code-editor-server"` line, so the export was never written. zsh (.zshrc sources workshop.sh) then has no ~/.local/bin: direnv, kiro-cli, claude and uv aren't found in IDE terminals once Code Editor is restarted after shell.sh switched the login shell to zsh. Until then the editor still carries the bash-derived PATH from its first start, which hid the gap. The guard now matches only an existing PATH export. install_kiro_cli checked ~/.local/bin/kiro, but the installer writes kiro-cli, so every bootstrap logged "Kiro CLI installation could not be verified".
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.
Problem
In IDE terminals (zsh),
direnv,kiro-cli,claudeanduvfrom~/.local/binaren't found once Code Editor restarts after the bootstrap:install_uvmeant to add~/.local/binto/etc/profile.d/workshop.sh, which.zshrcsources. Its guardgrep -q '.local/bin'matched the existingalias code="/home/ec2-user/.local/bin/code-editor-server"line, so the export was never written.The gap stays hidden as long as Code Editor runs from its first start: it starts while ec2-user's login shell is still bash and keeps the bash-derived PATH (
.bashrcadds~/.local/bin). Aftershell.shswitches the login shell to zsh, any restart of Code Editor (by a participant, or by a workshop that adds environment for it) takes zsh's PATH, which lacks~/.local/bin.Seen on a java-ai-agents test event on 22 Nov 2026: the extension host's PATH after a restart had
/usr/lib/maven/bin,~/binand~/.fzf/bin, but no~/.local/bin.Change
install_uv: the guard matches only an existing PATH export (^export PATH=.*\.local/bin).install_kiro_cli: verifies~/.local/bin/kiro-cli. The installer writeskiro-cli, notkiro, so every bootstrap logged "Kiro CLI installation could not be verified".No generated template changes: the IDE clones
mainand runstools.shat boot.Checks
workshop.shwith the maven PATH line and thealias code=line, the old guard skipped the export. The new guard writes it once and keeps a single line over two runs.bash -n infra/scripts/ide/tools.shpasses.