-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
on-iceFeature/fix on hold — not in active developmentFeature/fix on hold — not in active development
Description
Problem
When running sentinel-test, modifying the environment with os.environ.pop("ANTHROPIC_API_KEY", None) causes the script to hang silently before any output.
Goal
- API key should be used by Haiku gating (litellm calls)
- API key should NOT be inherited by Claude CLI (so Claude uses subscription, not API)
What Was Tried
dotenv_values()instead ofload_dotenv()- Hangs silentlyos.environ.pop()afterload_dotenv()- Hangs silently- Passing
env=parameter towinpty.PtyProcess.spawn()- Hangs silently
Current State
sentinelworks (uses load_dotenv, keeps API key in env)sentinel-testreset to exact copy ofsentinel.py(works)- User selects "No" at Claude CLI API key prompt as workaround
Acceptance Criteria
-
sentinel-testlaunches without hanging - Claude CLI does not inherit
ANTHROPIC_API_KEY - Haiku gating still works via litellm
Notes
The hang occurs before any Python print statements execute, suggesting the issue is at import time or very early in module loading. Poetry with --directory flag may be relevant.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
on-iceFeature/fix on hold — not in active developmentFeature/fix on hold — not in active development