Skip to content

v1.6.3 - Critical Config Fix

Choose a tag to compare

@jwesleye jwesleye released this 31 Dec 15:42
· 97 commits to main since this release

v1.6.3 - Critical Config Fix

This patch release fixes a critical bug in v1.6.2 that caused YAML parsing errors when loading configuration files.

Bug Fixed

  • YAML parsing error: Fixed "unacceptable character #x001b" error when loading .chatrc files
    • The default config template had improperly escaped ANSI color codes
    • YAML was interpreting escape sequences and creating actual ESC characters (#x001b)
    • Fixed by properly double-escaping backslashes in the config template
    • Config files are now valid YAML while still producing intended ANSI codes

Technical Details

  • Changed ANSI codes in default template from \033 to \\033
  • This ensures the file contains \033 which YAML parses as literal \033
  • The decode('unicode_escape') step then converts to actual ESC characters
  • All 331 tests passing

Recommendation

Users experiencing config loading errors should:

  1. Upgrade to v1.6.3: pip install --upgrade basic-agent-chat-loop
  2. Reset config if needed: chat_loop --reset-config

This release maintains full backward compatibility with properly formatted config files.