This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Commit 00045e6
fix(terminal): expand thinking tag stripping to cover commentary and tool_output
stripThinkingTags only removed <think> and <thinking> tags. Models
also leak <commentary>, <tool_output>, <analysis>, <reflection>, and
<inner_monologue> blocks. Expand the regex to strip all internal
reasoning tags when the setting is enabled.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c78e855 commit 00045e6
2 files changed
Lines changed: 41 additions & 6 deletions
File tree
- app/src
- main/java/com/zeroclaw/android/ui/screen/terminal
- test/java/com/zeroclaw/android/ui/screen/terminal
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
778 | 784 | | |
779 | 785 | | |
780 | | - | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
781 | 791 | | |
782 | 792 | | |
783 | 793 | | |
| |||
803 | 813 | | |
804 | 814 | | |
805 | 815 | | |
806 | | - | |
| 816 | + | |
807 | 817 | | |
808 | | - | |
809 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
810 | 821 | | |
811 | 822 | | |
812 | | - | |
| 823 | + | |
813 | 824 | | |
814 | 825 | | |
815 | 826 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
175 | 199 | | |
176 | 200 | | |
177 | 201 | | |
| |||
0 commit comments