fix(hooks): warn at session start when VGV CLI is missing or outdated#55
Open
fix(hooks): warn at session start when VGV CLI is missing or outdated#55
Conversation
Closes #53 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
RuiMiguel
approved these changes
Mar 23, 2026
Contributor
There was a problem hiding this comment.
LGTM
For the record, SessionStart hook is designed to provide context to Claude, not to display messages in the terminal. Despite the script is working, it will never be shown to the user, even if we redirect it to the stderr or stdout. At least this is added to the context, so Claude would be warned.
Maybe this is something that could be added to the README
RuiMiguel
reviewed
Mar 23, 2026
SessionStart hook output to stderr is not shown to the user or injected into Claude's context. Switch to stdout so Claude receives the warning and can proactively inform the user about missing or outdated VGV CLI.
Contributor
Author
|
I think it is ok to just pass it to Claude's context, and let it decided. |
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
SessionStarthook that checks VGV CLI version on session start and warns if missing or outdatedcheck_vgv_cli()fromvgv-cli-common.sh— no duplicated logicCloses #53
Test plan
🤖 Generated with Claude Code