tao-shen Claude Opus 4.6 commited on
Commit
ca398b8
·
1 Parent(s): 274b48d

fix: strip markdown ** from God's chatroom messages

Browse files

God's Claude Code was wrapping [PROBLEM] and [FIX] text in markdown
bold markers (**), causing chatroom to display "Found issue: **. Fixed: **."
instead of the actual content. Now strips * from extracted text and
instructs skill to output plain text.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. scripts/conversation-loop.py +5 -5
scripts/conversation-loop.py CHANGED
@@ -604,9 +604,9 @@ $ARGUMENTS — The specific diagnosis/problem to fix
604
  3. Validate: python3 -c "import py_compile; py_compile.compile('scripts/conversation-loop.py', doraise=True)"
605
  4. Commit: git commit -m "god: <brief description>"
606
  5. Push: git push
607
- 6. End output with:
608
- [PROBLEM] <what the problem was>
609
- [FIX] <what you changed>
610
 
611
  ## Rules
612
  - ONLY modify scripts/conversation-loop.py
@@ -2655,8 +2655,8 @@ def do_god_turn():
2655
  problem_match = re.search(r'\[PROBLEM\]\s*(.+)', output)
2656
  fix_match = re.search(r'\[FIX\]\s*(.+)', output)
2657
 
2658
- problem_text = problem_match.group(1).strip() if problem_match else ""
2659
- fix_text = fix_match.group(1).strip() if fix_match else ""
2660
 
2661
  if problem_text and fix_text:
2662
  msg_en = f"Found issue: {problem_text}. Fixed: {fix_text}. System will restart shortly."
 
604
  3. Validate: python3 -c "import py_compile; py_compile.compile('scripts/conversation-loop.py', doraise=True)"
605
  4. Commit: git commit -m "god: <brief description>"
606
  5. Push: git push
607
+ 6. End output with (plain text, no markdown):
608
+ [PROBLEM] what the problem was
609
+ [FIX] what you changed
610
 
611
  ## Rules
612
  - ONLY modify scripts/conversation-loop.py
 
2655
  problem_match = re.search(r'\[PROBLEM\]\s*(.+)', output)
2656
  fix_match = re.search(r'\[FIX\]\s*(.+)', output)
2657
 
2658
+ problem_text = problem_match.group(1).strip().strip("*").strip() if problem_match else ""
2659
+ fix_text = fix_match.group(1).strip().strip("*").strip() if fix_match else ""
2660
 
2661
  if problem_text and fix_text:
2662
  msg_en = f"Found issue: {problem_text}. Fixed: {fix_text}. System will restart shortly."