Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/hooks/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def main():

# Write back to file with formatting
with open(log_file, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)

# Announce notification via TTS only if --notify flag is set
# Skip TTS for the generic "Claude is waiting for your input" message
Expand Down
2 changes: 1 addition & 1 deletion .claude/hooks/post_tool_use.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main():

# Write back to file with formatting
with open(log_path, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)

sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion .claude/hooks/pre_compact.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def log_pre_compact(input_data):

# Write back to file with formatting
with open(log_file, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)


def backup_transcript(transcript_path, trigger):
Expand Down
2 changes: 1 addition & 1 deletion .claude/hooks/pre_tool_use.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def main():

# Write back to file with formatting
with open(log_path, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)

sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion .claude/hooks/session_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def log_session_start(input_data):

# Write back to file with formatting
with open(log_file, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)


def get_git_status():
Expand Down
4 changes: 2 additions & 2 deletions .claude/hooks/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def main():

# Write back to file with formatting
with open(log_path, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)

# Handle --chat switch
if args.chat and 'transcript_path' in input_data:
Expand All @@ -210,7 +210,7 @@ def main():
# Write to logs/chat.json
chat_file = os.path.join(log_dir, 'chat.json')
with open(chat_file, 'w') as f:
json.dump(chat_data, f, indent=2)
json.dump(chat_data, f, ensure_ascii=False, indent=2)
except Exception:
pass # Fail silently

Expand Down
4 changes: 2 additions & 2 deletions .claude/hooks/subagent_stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def main():

# Write back to file with formatting
with open(log_path, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)

# Handle --chat switch (same as stop.py)
if args.chat and 'transcript_path' in input_data:
Expand All @@ -132,7 +132,7 @@ def main():
# Write to logs/chat.json
chat_file = os.path.join(log_dir, 'chat.json')
with open(chat_file, 'w') as f:
json.dump(chat_data, f, indent=2)
json.dump(chat_data, f, ensure_ascii=False, indent=2)
except Exception:
pass # Fail silently

Expand Down
4 changes: 2 additions & 2 deletions .claude/hooks/user_prompt_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def log_user_prompt(session_id, input_data):

# Write back to file with formatting
with open(log_file, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)


# Legacy function removed - now handled by manage_session_data
Expand Down Expand Up @@ -111,7 +111,7 @@ def manage_session_data(session_id, prompt, name_agent=False):
# Save the updated session data
try:
with open(session_file, 'w') as f:
json.dump(session_data, f, indent=2)
json.dump(session_data, f, ensure_ascii=False, indent=2)
except Exception:
# Silently fail if we can't write the file
pass
Expand Down
2 changes: 1 addition & 1 deletion .claude/status_lines/status_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def log_status_line(input_data, status_line_output):

# Write back to file with formatting
with open(log_file, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)


def get_git_branch():
Expand Down
2 changes: 1 addition & 1 deletion .claude/status_lines/status_line_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def log_status_line(input_data, status_line_output, error_message=None):

# Write back to file with formatting
with open(log_file, 'w') as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)


def get_last_prompt(session_id):
Expand Down
2 changes: 1 addition & 1 deletion .claude/status_lines/status_line_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def log_status_line(input_data, status_line_output, error_message=None):

# Write back to file with formatting
with open(log_file, "w") as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)


def get_session_data(session_id):
Expand Down
2 changes: 1 addition & 1 deletion .claude/status_lines/status_line_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def log_status_line(input_data, status_line_output, error_message=None):

# Write back to file with formatting
with open(log_file, "w") as f:
json.dump(log_data, f, indent=2)
json.dump(log_data, f, ensure_ascii=False, indent=2)


def get_session_data(session_id):
Expand Down