Repository navigation
fix(native-chat): import Claude auth env vars from their moved module - #41312
Conversation
#40412 imported claude-accounts/environment, which moved to claude-accounts/runtime-auth/environment, so main no longer builds.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
Main doesn't build. A file imports a module from a path it moved away from. This points the import at the module's current location.
What Changed
usage-limit-account-usage.ts(added in #40412) importedCLAUDE_AUTH_ENV_VARSfromclaude-accounts/environment. That module now lives atclaude-accounts/runtime-auth/environment. The import now uses the new path; nothing else changes.Why
Since #40412 merged (
7a44471),pnpm devand the main build fail withUNRESOLVED_IMPORT ... Could not resolve '../../../claude-accounts/environment'. #40412's own checks ran against a base that still had the old path.Linked Issue
None. This repairs main after #40412.
Visual Proof
N/A: an import path fix with no visible change.
Testing
pnpm devon main failed with the unresolved import; this fixes that line.I checked every relative import in fix(native-chat): hold an automatic continue until the chat's account has usage again #40412's files against the tree on main; this was the only missing one.
pnpm check:changedpasses, and so do the focused tests insrc/main/runtime/agent-session/installation.I manually tested these changes locally
Automated tests added/updated, or explained why not below (no test: an import path)
Every added test fails without this change and avoids the test anti-patterns
Risk
None beyond the build: it is the same export from its current module. Back out with a plain revert.
Level: Low
AI Disclosure
Review
One-line import fix; no review loop.
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance. Not applicable to an import path.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)