From 1c57d3a7c49fbcef583ea086cedc3e42eba7bf03 Mon Sep 17 00:00:00 2001 From: Dani Date: Sat, 4 Oct 2025 23:23:36 -0400 Subject: [PATCH] Fix Windows console encoding in cc_status.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed emoji characters that cause UnicodeEncodeError on Windows. Script now works perfectly on all platforms! šŸ¤– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude/settings.local.json | 3 ++- cc_status.py | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 32a8e6a..68e8c24 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -3,7 +3,8 @@ "allow": [ "Bash(git init:*)", "Bash(git add:*)", - "Bash(git commit:*)" + "Bash(git commit:*)", + "Bash(python:*)" ], "deny": [], "ask": [] diff --git a/cc_status.py b/cc_status.py index ed5eb5c..3c5df05 100644 --- a/cc_status.py +++ b/cc_status.py @@ -20,63 +20,63 @@ def show_status(): memory = json.load(f) print("=" * 60) - print("🧠 CC'S CURRENT STATUS") + print("CC'S CURRENT STATUS") print("=" * 60) # Session info - print(f"\nšŸ“… Last Session: {memory.get('last_session', 'Unknown')}") - print(f"šŸ“Š Total Sessions: {memory.get('sessions_count', 0)}") + print(f"\nLast Session: {memory.get('last_session', 'Unknown')}") + print(f"Total Sessions: {memory.get('sessions_count', 0)}") # Current context - print(f"\nšŸ’­ Current Context:") + print(f"\nCurrent Context:") print(f" {memory.get('quick_context', 'No context set')}") # Active projects - print(f"\nšŸš€ Active Projects:") + print(f"\nActive Projects:") projects = memory.get('active_projects', []) if projects: for project in projects: project_info = memory.get('project_notes', {}).get(project, {}) status = project_info.get('status', 'unknown') - print(f" • {project} ({status})") + print(f" - {project} ({status})") else: print(" No active projects") # What's next - print(f"\nšŸ“ Next Up:") + print(f"\nNext Up:") next_items = memory.get('next_up', []) if next_items: for item in next_items: - print(f" • {item}") + print(f" - {item}") else: print(" Nothing scheduled") # Recent learnings - print(f"\n🧠 Recent Learnings:") + print(f"\nRecent Learnings:") learnings = memory.get('key_learnings', []) if learnings: for learning in learnings[-3:]: # Show last 3 - print(f" • {learning}") + print(f" - {learning}") else: print(" No learnings yet") # Recent sessions - print(f"\nšŸ“š Recent Sessions:") + print(f"\nRecent Sessions:") session_files = sorted(SESSIONS_DIR.glob('*.md'), reverse=True)[:3] if session_files: for session in session_files: - print(f" • {session.name}") + print(f" - {session.name}") else: print(" No sessions logged") # User preferences - print(f"\nšŸ‘¤ User Profile:") + print(f"\nUser Profile:") prefs = memory.get('user_preferences', {}) print(f" Skill Level: {prefs.get('skill_level', 'Unknown')}") print(f" Style: {prefs.get('style', 'Unknown')}") print("\n" + "=" * 60) - print("Ready to code! šŸ’ŖšŸ”„") + print("Ready to code!") print("=" * 60) if __name__ == "__main__":