Skip to content

fix(skills): stop marking persisted env vars missing on remote backends#3650

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-ec5223e1
Mar 29, 2026
Merged

fix(skills): stop marking persisted env vars missing on remote backends#3650
teknium1 merged 1 commit intomainfrom
hermes/hermes-ec5223e1

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Salvage of PR #3452 (kentimsit).

Removes the remote-backend short-circuit in skill_view() and _remaining_required_environment_names() that marked ALL required env vars as missing on Docker/SSH/Modal/Daytona/Singularity backends — even when the vars were already persisted in ~/.hermes/.env.

Skills now correctly show setup_needed=false when vars are available, regardless of backend.

81 skill tests pass.

Note: This fixes the readiness check only. The actual forwarding of env vars into remote containers is a separate mechanism (docker_forward_env config) that doesn't yet auto-populate from the skill passthrough registry — tracked as a future enhancement.

Fixes #3433. Closes #3452.

Co-Authored-By: kentimsit kentimsit@users.noreply.github.com

Removes the remote-backend short-circuit that marked ALL required env
vars as missing regardless of whether they were persisted in .env.
Skills now correctly show setup_needed=false when vars are available,
regardless of backend (docker, ssh, modal, daytona, singularity).

Also removes the unused backend parameter from
_remaining_required_environment_names() since the remote-backend
early return was the only consumer.

Fixes #3433.
@github-actions
Copy link
Copy Markdown

⚠️ Supply Chain Risk Detected

This PR contains patterns commonly associated with supply chain attacks. This does not mean the PR is malicious — but these patterns require careful human review before merging.

⚠️ WARNING: Install hook files modified

These files can execute code during package installation or interpreter startup.

Files:

hermes_cli/setup.py

Automated scan triggered by supply-chain-audit. If this is a false positive, a maintainer can approve after manual review.

@teknium1 teknium1 merged commit 1a032cc into main Mar 29, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants