agent-orchestrator/packages
Prateek 7450e3d9ce fix: loadConfig() now sets configPath to prevent CLI crashes
Fixes HIGH SEVERITY bugbot issue: "loadConfig() never sets configPath, crashing all CLI commands"

The problem:
- loadConfig() returned config without setting configPath
- Only loadConfigWithPath() set configPath, but no CLI command used it
- When CLI commands called getSessionsDir(config.configPath, ...),
  it passed undefined to generateConfigHash()
- This caused realpathSync(undefined) to throw TypeError
- All CLI commands (spawn, session, status, review-check, start) crashed at runtime

The fix:
- Updated loadConfig() to set config.configPath before returning
- Now matches the behavior of loadConfigWithPath()
- All CLI commands can safely use config.configPath for hash generation

All tests pass.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-18 00:10:40 +05:30
..
agent-orchestrator feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
cli fix: agent hook metadata path and test directory leakage 2026-02-17 23:36:24 +05:30
core fix: loadConfig() now sets configPath to prevent CLI crashes 2026-02-18 00:10:40 +05:30
integration-tests fix: resolve all lint and typecheck errors 2026-02-17 22:29:46 +05:30
plugins fix: agent hook metadata path and test directory leakage 2026-02-17 23:36:24 +05:30
web fix: resolve all lint and typecheck errors 2026-02-17 22:29:46 +05:30