2
0
Fork 0
forked from zynk/zynk

Strip opencode header from !ai responses. (0.38.3)

- Added strip_opencode_header(): removes the opencode header line (e.g. '> plan · big-pickle') and any trailing blank lines from AI responses before sending to IRC.
- Previous strip_before_double_space() approach failed because ANSI escape codes in the raw opencode output prevented strstr() from matching literal double spaces.
- New approach runs strip_formatting() first to clean up ANSI codes, then detects the '> ' prefix and strips the header line plus blank lines after it.
- Pipeline order: format strip -> header strip -> phrase strip.
- Version bumped to 0.38.3.
This commit is contained in:
Johannes Findeisen 2026-07-21 14:56:11 +02:00
commit 60a407fa2f
2 changed files with 33 additions and 16 deletions

View file

@ -1,3 +1,9 @@
2026.07.21 – Strip opencode header from !ai responses. (0.38.3)
- Added `strip_opencode_header()`: removes the opencode header line (e.g. `> plan · big-pickle`) and any trailing blank lines from AI responses before sending to IRC.
- Pipeline order: format strip → header strip → phrase strip, so ANSI codes are cleaned up first and the `> ` prefix is reliably detected.
- Version bumped to 0.38.3.
2026.07.21 – Full mode for !gitlog/!changelog, optional pull for !rebuild. (0.38.2)
- Added optional `full` keyword to `!gitlog` and `!changelog`: `!gitlog 5 full` shows full commit messages (author, date, body), `!changelog 5 full` shows the complete entry text including bullet points.