Commit 1c6e60f
authored
fix: loadAgentKey path mismatch on macOS (#73)
* fix: ensure_path checks rc file, not runtime PATH
When the user manually exports PATH before running install.sh via pipe,
the subprocess inherits that PATH. The old runtime check (case ":$PATH:")
would return early without modifying .zshrc, leaving future terminal
sessions without axme in PATH.
Now we only check the rc file for duplicates, which is the correct
persistent indicator.
* fix: add source hint after install and in README
- ensure_path now prints "source ~/.zshrc" hint after modifying rc file
- README install block includes source command
* fix: loadAgentKey uses scenarioAgentsStorePath instead of hardcoded path
On macOS os.UserConfigDir() returns ~/Library/Application Support,
but loadAgentKey hardcoded ~/.config. This caused "no API key found"
warning on macOS because save and load used different paths.
Now loadAgentKey uses loadScenarioAgentsStore() which uses the
canonical scenarioAgentsStorePath().1 parent f132449 commit 1c6e60f
1 file changed
Lines changed: 6 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
| 373 | + | |
387 | 374 | | |
388 | 375 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 376 | + | |
| 377 | + | |
396 | 378 | | |
397 | 379 | | |
398 | | - | |
| 380 | + | |
399 | 381 | | |
400 | | - | |
| 382 | + | |
401 | 383 | | |
402 | 384 | | |
403 | | - | |
| 385 | + | |
404 | 386 | | |
405 | 387 | | |
406 | 388 | | |
| |||
0 commit comments