[Bug] Bash tool invocations render as text instead of executing intermittently

Open 💬 0 comments Opened Jul 4, 2026 by khannedy

Bug Description
Description:
During a long session, Bash tool invocations intermittently leaked into the assistant's message as raw text (e.g. a block starting with <invoke name="Bash">…) instead of being executed as a tool call. When this happens the command doesn't run, and the user has to re-prompt (e.g. type "submit" again) to trigger a fresh, valid tool call.

Frequency: Happened ~3 times in one session, each on the first attempt of a gh issue create --body-file issue.md command; the retry executed normally.

Expected: The tool call executes on the first attempt.
Actual: The invocation renders as text; nothing runs.

Environment: Claude Code CLI (terminal), model Opus 4.8, macOS.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.187
  • Feedback ID: 72bdcce0-3c4d-42db-a1e8-ae85dde9cfee

Errors

 submit

court
<invoke name="Bash">
<parameter name="command">cd /Users/khannedy/Developments/PZN/glamstitch-pos-frontend
gh issue create --repo pzn-labs/glamstitch-pos-frontend --title "Fitur: Aksi Hapus Pemegang Saham di Halaman Detail (DELETE /api/shareholders/:id)" --label "enhancement" --body-file issue.md
rm -f issue.md && echo "issue.md dihapus"</parameter>
<parameter name="description">Submit FE issue 1082 + cleanup</parameter>
</invoke>

✻ Baked for 6s

❯ submit

court
<invoke name="Bash">
<parameter name="command">cd /Users/khannedy/Developments/PZN/glamstitch-pos-frontend
gh issue create --repo pzn-labs/glamstitch-pos-frontend --title "Fitur: Aksi Hapus Pemegang Saham di Halaman Detail (DELETE /api/shareholders/:id)" --label "enhancement" --body-file issue.md
rm -f issue.md && echo "issue.md dihapus"</parameter>
<parameter name="description">Submit FE issue 1082 + cleanup</parameter>
</invoke>

✻ Sautéed for 5s

❯ submit

  Ran 1 shell command

Selesai.

- Issue dibuat: FE #1079 — Fitur: Aksi Hapus Pemegang Saham di Halaman Detail (label enhancement), counterpart BE #1082 (EQ6).
- issue.md dihapus otomatis.

Isi: tombol Hapus (danger, gated) di panel Aksi detail + ConfirmModal dengan peringatan bahwa hanya pemegang saham tanpa transaksi yang bisa dihapus (yang sudah bertransaksi → nonaktifkan saja), tangani 400 dari BE dengan pesan + saran; fungsi deleteShareholder.

Modul Ekuitas di FE: #1076 (menu+daftar), #1077 (tambah), #1078 (detail+row klik), #1079 (hapus). Semua ditahan sampai BE terkait CLOSED & live.

Working tree di main, tidak ada open PR. Loop 9226e1e7 (cek PR :07) tetap aktif.

View original on GitHub ↗