Skip to content

fix(assistants): improve error logging in chat to show actual error details - #537

Open
gokhanozdemir wants to merge 2 commits into
codemie-ai:mainfrom
gokhanozdemir:fix/499-assistant-chat-error-logging
Open

fix(assistants): improve error logging in chat to show actual error details#537
gokhanozdemir wants to merge 2 commits into
codemie-ai:mainfrom
gokhanozdemir:fix/499-assistant-chat-error-logging

Conversation

@gokhanozdemir

Copy link
Copy Markdown
Contributor

Summary

Improve error logging in the assistants chat command to serialize error objects properly instead of logging "[object Object]".

Motivation

The assistants chat command was logging error objects as '[object Object]' instead of serializing them properly, making it impossible to determine the real cause of failures. Users and maintainers couldn't debug issues effectively because the actual error details were lost.

Changes

  • Modified src/cli/commands/assistants/chat/index.ts to add detailed error logging
  • Added proper error serialization that captures message, name, code, and stack trace
  • Improved error handling in handleChatError function

Testing

  • Verified error logging now shows actual error details instead of [object Object]
  • Build, lint, and typecheck all pass
  • Followed Conventional Commits format for commit message

Breaking Changes

None

Related Issues

Fixes #499

@gokhanozdemir
gokhanozdemir force-pushed the fix/499-assistant-chat-error-logging branch from e1e7c8f to 38b9eb4 Compare September 5, 2026 17:08
…etails

Fixes codemie-ai#499 - Serialize error objects properly to capture message, name, code, and stack trace for debugging.
@gokhanozdemir
gokhanozdemir force-pushed the fix/499-assistant-chat-error-logging branch from 38b9eb4 to bbd923a Compare September 5, 2026 17:33
@gokhanozdemir
gokhanozdemir marked this pull request as ready for review September 5, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codemie assistants chat fails with misleading "Authentication expired" error despite valid, freshly-refreshed SSO session

1 participant