Skip to content

fix(cli): survive unavailable chat log directory - #1099

Closed
c8dhjp4tyv-bit wants to merge 9034 commits into
CodebuffAI:mainfrom
c8dhjp4tyv-bit:fix/cli-logger-startup-resilience
Closed

fix(cli): survive unavailable chat log directory#1099
c8dhjp4tyv-bit wants to merge 9034 commits into
CodebuffAI:mainfrom
c8dhjp4tyv-bit:fix/cli-logger-startup-resilience

Conversation

@c8dhjp4tyv-bit

Copy link
Copy Markdown

Summary

  • prevent logger initialization from crashing the CLI when the current chat directory cannot be created
  • keep file logging best-effort while preserving the existing development and production destinations
  • add regression coverage for both destinations and the unavailable-chat-directory path

Fixes #783

Validation

  • logger.test.ts: 3 passed
  • common typecheck: passed
  • SDK typecheck: passed
  • git diff --check: passed
  • full CLI test command: 2,111 passed; existing checkout/environment failures remain in unrelated Infisical, read-only config, and missing release-dependency tests

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:triaged Classified by the community triage bot pr:port-candidate Worth porting into the private source tree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't launch (ENOENT)

3 participants